Skip to content

Commit 9a56949

Browse files
authored
SVG Favicon (#84)
* init * fixes corner widget * use svg as mask icon for safari * use gui skull * remove mask favicon from safari * adds favicon to challenges * updates shortstack projects to copy favicons to dist * add favicon build action and update readme
1 parent 307b991 commit 9a56949

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+13365
-26
lines changed

.github/workflows/main.yml

+3
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555

5656
- name: Build Theme Switch
5757
run: cd theme-switch && npm install && npm run build
58+
59+
- name: Build SVG Favicon
60+
run: cd svg-favicon && npm install && npm run build
5861

5962
- name: Deploy to Firebase
6063
uses: w9jds/firebase-action@master

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,8 @@ and expand the diversity of our skills.**
6363
14. Theme Switch
6464
[`Demo`](https://gui-challenges.web.app/theme-switch/dist/)
6565
[`YouTube`](https://www.youtube.com/watch?v=kZiS1QStIWc)
66-
[`Article`](https://web.dev/building-a-theme-switch-component/)
66+
[`Article`](https://web.dev/building-a-theme-switch-component/)
67+
14. SVG Favicon
68+
[`Demo`](https://gui-challenges.web.app/svg-favicon/dist/)
69+
[`YouTube`](#)(coming soon)
70+
[`Article`](https://web.dev/building-an-adaptive-favicon/)(coming soon)

breadcrumbs/favicon.ico

15 KB
Binary file not shown.

breadcrumbs/favicon.svg

+28
Loading

breadcrumbs/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
<meta name="theme-color" content="deeppink" media="(prefers-color-scheme: light)">
1010
<meta name="theme-color" content="Canvas" media="(prefers-color-scheme: dark)">
1111
<meta name="description" content="🙂">
12+
<link rel="icon" href="/favicon.ico" sizes="any">
13+
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
1214
<meta name="color-scheme" content="dark light">
1315
<link rel="stylesheet" href="/style.css">
1416
<script type="module" src="/index.js"></script>

centering/app/favicon.ico

15 KB
Binary file not shown.

centering/app/favicon.svg

+28
Loading

centering/app/index.html

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
<meta name="theme-color" content="#ff69b4">
1010
<meta name="description" content="💀🤘">
1111

12+
<link rel="icon" href="favicon.ico" sizes="any">
13+
<link rel="icon" href="favicon.svg" type="image/svg+xml">
14+
1215
<link rel="preload" href="//unpkg.com/[email protected]/themes/prism-atom-dark.css" as="style" onload="this.rel='stylesheet'">
1316
<link rel="stylesheet" href="bundle.css">
1417
<script src="bundle.js" type="module" defer></script>

centering/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"prod:server": "browser-sync dist --no-open --no-notify --no-ghost-mode",
1616
"build:pre:js": "rollup -c --environment NODE_ENV:production",
1717
"build:pre:css": "postcss app/css/index.css -o dist/bundle.css --env production",
18-
"build:post:copy": "cp app/index.html dist/index.html",
18+
"build:post:copy": "cp app/{index.html,favicon.ico,favicon.svg} dist/",
1919
"build": "rm -rf dist && concurrently npm:build:pre:* && concurrently npm:build:post:*",
2020
"start": "concurrently --kill-others npm:dev:*",
2121
"production": "npm run build && npm run prod:server"

color-schemes/favicon.ico

15 KB
Binary file not shown.

color-schemes/favicon.svg

+28
Loading

color-schemes/index.html

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
<meta name="theme-color" content="#222">
1010
<meta name="description" content="🙂">
1111

12+
<link rel="icon" href="/favicon.ico" sizes="any">
13+
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
14+
1215
<link rel="stylesheet" href="/style.css">
1316
<script type="module" src="/index.js"></script>
1417
</head>

game-menu/favicon.ico

15 KB
Binary file not shown.

game-menu/favicon.svg

+28
Loading

game-menu/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
<meta name="theme-color" content="hsl(221 90% 98%)" media="(prefers-color-scheme: light)">
1010
<meta name="theme-color" content="Canvas" media="(prefers-color-scheme: dark)">
1111
<meta name="description" content="🙂">
12+
<link rel="icon" href="/favicon.ico" sizes="any">
13+
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
1214
<link rel="stylesheet" href="/style.css">
1315
<script type="module" src="/index.js"></script>
1416
</head>

media-scroller/favicon.ico

15 KB
Binary file not shown.

media-scroller/favicon.svg

+28
Loading

media-scroller/index.html

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
<meta name="description" content="🙂">
1111
<meta name="color-scheme" content="dark light">
1212

13+
<link rel="icon" href="/favicon.ico" sizes="any">
14+
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
15+
1316
<link rel="stylesheet" href="https://storage.googleapis.com/atoms-sandbox.google.com.a.appspot.com/blokk/blokk.css">
1417
<link rel="stylesheet" href="/style.css">
1518
<script type="module" src="/index.js"></script>

multi-select/favicon.ico

15 KB
Binary file not shown.

multi-select/favicon.svg

+28
Loading

multi-select/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
<meta name="theme-color" content="hsl(221 90% 98%)" media="(prefers-color-scheme: light)">
1010
<meta name="theme-color" content="Canvas" media="(prefers-color-scheme: dark)">
1111
<meta name="description" content="🙂">
12+
<link rel="icon" href="/favicon.ico" sizes="any">
13+
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
1214
<link rel="stylesheet" href="https://storage.googleapis.com/atoms-sandbox.google.com.a.appspot.com/blokk/blokk.css">
1315
<link rel="stylesheet" href="/style.css">
1416
<script type="module" src="/index.js"></script>

settings/favicon.ico

15 KB
Binary file not shown.

settings/favicon.svg

+28
Loading

0 commit comments

Comments
 (0)