Skip to content

Commit

Permalink
Add logo.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 30, 2020
1 parent 88cffbc commit 6d76cae
Show file tree
Hide file tree
Showing 11 changed files with 71 additions and 6 deletions.
7 changes: 4 additions & 3 deletions create.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const imgPath = path.join(__dirname, 'img');
for await (const dirent of dir) {
const extname = path.extname(dirent.name || '');
if (/(svg|jpg|png)/.test(extname)) {
data.push(`<span class="${extname.replace(/^\./, '')}" data-ext="${extname}" data-name="${dirent.name}"><img src="${dirent.name}" width="88" alt="${(dirent.name).replace(/.(svg|jpg|png)$/, '')}" /></span>`);
data.push(`<span class="${extname.replace(/^\./, '')}" data-ext="${extname}" data-name="${dirent.name}"><img src="${dirent.name}" width="88" alt="${(dirent.name).replace(/.(svg|jpg|png)$/, '')}" /><i>${dirent.name}</i></span>`);
}
}

Expand All @@ -34,7 +34,7 @@ const imgPath = path.join(__dirname, 'img');
margin: 5px 5px;
padding: 5px;
}
span::before, span::after {
span::before, span i {
text-align: left;
display: block;
font-size: 12px;
Expand All @@ -46,9 +46,10 @@ const imgPath = path.join(__dirname, 'img');
content: attr(data-ext);
margin-bottom: 5px;
}
span::after {
span i {
content: attr(data-name);
margin-top: 5px;
font-style: initial;
}
span.svg { border: 1px solid var(--svg-color); }
span.svg::before {
Expand Down
10 changes: 10 additions & 0 deletions img/airbnb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions img/bitcoin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions img/blogger.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions img/gitea.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions img/google_drive.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions img/index.html

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions img/instagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions img/medium.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions img/opensource.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions img/pocket.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6d76cae

Please sign in to comment.