feat: update favicon (#198)

This commit is contained in:
Ryan Yin 2024-11-18 15:12:21 +08:00 committed by GitHub
parent 9021679b53
commit 33c2b5fbf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 24 additions and 117 deletions

View File

@ -43,7 +43,18 @@ export const shared = defineConfig({
}, },
head: [ head: [
["link", { rel: "icon", href: "/favicon-32x32.png" }], ["link", { rel: "icon", href: "/favicon.svg" }],
["link", { rel: "shortcut icon", href: "/favicon.ico" }],
// Google Search and Android Chrome
["link", { rel: "icon", href: "/favicon-96x96.png", sizes: "96x96" }],
["link", { rel: "icon", href: "/web-app-manifest-192x192.png", sizes: "192x192" }],
["link", { rel: "icon", href: "/web-app-manifest-512x512.png", sizes: "512x512" }],
// For Apple iPhone/iPad
["link", { rel: "apple-touch-icon", href: "/apple-touch-icon.png", sizes: "180x180" }],
// site.manifest
["link", { rel: "manifest", href: "/site.webmanifest" }],
["meta", { name: "theme-color", content: "#5f67ee" }], ["meta", { name: "theme-color", content: "#5f67ee" }],
["meta", { name: "og:type", content: "website" }], ["meta", { name: "og:type", content: "website" }],
["meta", { name: "og:site_name", content: "NixOS & Flakes Book" }], ["meta", { name: "og:site_name", content: "NixOS & Flakes Book" }],

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
</browserconfig>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

3
docs/public/favicon.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

View File

@ -1,100 +0,0 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="512.000000pt" height="512.000000pt" viewBox="0 0 512.000000 512.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.14, written by Peter Selinger 2001-2017
</metadata>
<g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M1256 4748 c-9 -18 -28 -51 -42 -73 -13 -22 -27 -47 -31 -55 -4 -8
-16 -31 -29 -50 l-22 -36 24 -39 c12 -22 35 -62 49 -90 15 -27 33 -57 39 -65
7 -8 25 -40 40 -70 16 -30 34 -62 41 -70 7 -8 15 -22 18 -30 4 -8 20 -37 36
-65 33 -55 81 -143 81 -147 0 -2 -149 -3 -330 -2 l-331 1 -17 -26 c-10 -14
-23 -37 -30 -51 -7 -14 -23 -43 -35 -65 -112 -192 -157 -274 -157 -285 0 -5
-4 -10 -9 -10 -8 0 -22 -31 -25 -55 -1 -9 2457 -17 2476 -8 7 4 -10 39 -51
108 -10 17 -27 46 -38 65 -11 19 -34 58 -51 86 -18 28 -32 56 -32 63 0 6 -4
11 -10 11 -5 0 -10 4 -10 9 0 5 -18 39 -40 75 -22 36 -40 69 -40 74 0 5 -152
9 -337 9 -186 1 -341 2 -344 2 -8 1 -79 119 -79 132 0 5 -4 9 -8 9 -4 0 -15
15 -23 33 -22 44 -53 100 -139 247 -41 69 -82 141 -92 160 -10 19 -44 80 -77
135 l-58 100 -150 3 -150 3 -17 -33z"/>
<path d="M2332 4742 c10 -20 25 -46 31 -57 68 -114 107 -186 107 -195 0 -5 4
-10 9 -10 5 0 13 -10 17 -22 4 -13 10 -25 13 -28 3 -3 67 -111 141 -240 73
-129 136 -237 139 -240 3 -3 7 -12 9 -20 2 -8 9 -22 16 -30 13 -14 38 -57 82
-140 11 -19 22 -37 25 -40 3 -3 21 -34 40 -70 19 -36 37 -67 40 -70 3 -3 9
-12 13 -20 4 -8 12 -24 19 -35 7 -11 39 -68 72 -125 33 -58 63 -106 67 -108 4
-2 8 -12 8 -23 0 -10 4 -19 8 -19 4 0 18 -19 30 -42 12 -24 30 -56 40 -73 77
-131 92 -156 92 -160 0 -1 19 -34 42 -71 23 -38 55 -94 72 -124 69 -123 91
-160 99 -160 4 0 12 10 17 23 5 12 24 47 42 79 236 409 231 398 216 416 -9 9
-32 48 -52 86 -21 37 -55 97 -77 132 -21 36 -39 66 -39 68 0 2 -36 66 -81 141
l-80 138 45 78 c26 43 46 83 46 88 0 5 4 11 8 13 10 4 92 146 92 159 0 5 5 9
10 9 6 0 10 4 10 9 0 5 52 98 116 206 141 242 156 272 144 280 -5 3 -27 38
-50 78 -22 39 -51 90 -64 112 l-23 40 -145 3 -144 3 -65 -113 c-35 -62 -67
-114 -71 -116 -5 -2 -8 -8 -8 -13 0 -8 -25 -54 -75 -137 -64 -106 -85 -145
-85 -153 0 -5 -5 -9 -11 -9 -5 0 -8 -4 -5 -9 4 -5 0 -11 -6 -14 -12 -3 -38 36
-113 168 -12 22 -33 58 -45 80 -13 22 -33 58 -46 81 -12 22 -34 59 -48 82 -14
23 -26 46 -26 51 0 5 -3 11 -7 13 -5 2 -17 21 -28 43 l-21 40 -291 2 -291 2
20 -37z"/>
<path d="M4331 3846 c-12 -18 -21 -38 -21 -44 0 -6 -4 -12 -8 -14 -4 -1 -59
-93 -122 -203 -63 -110 -120 -206 -127 -213 -7 -7 -13 -18 -13 -23 0 -5 -18
-38 -40 -74 -22 -36 -40 -69 -40 -74 0 -5 -7 -14 -15 -21 -8 -7 -12 -16 -9
-21 3 -5 0 -9 -5 -9 -6 0 -11 -7 -11 -15 0 -8 -4 -15 -10 -15 -5 0 -9 -3 -8
-7 1 -5 -7 -23 -18 -41 -10 -18 -56 -96 -101 -174 -46 -77 -83 -143 -83 -148
0 -4 -7 -13 -15 -20 -8 -7 -13 -16 -10 -20 3 -5 2 -10 -3 -12 -7 -3 -140 -230
-257 -438 -14 -25 -36 -63 -49 -85 -25 -41 -50 -84 -82 -145 -11 -19 -22 -37
-25 -40 -4 -3 -19 -30 -35 -60 -15 -30 -31 -57 -34 -60 -6 -5 -80 -136 -80
-142 0 -7 571 -1 578 6 4 4 20 32 37 61 82 146 150 262 163 278 8 9 12 17 8
17 -4 0 2 12 13 26 12 15 21 32 21 40 0 7 4 14 8 16 5 2 26 33 46 71 28 49 43
67 59 68 12 1 227 0 477 0 l455 -2 74 128 73 128 -27 50 c-16 28 -34 57 -41
66 -8 9 -11 19 -7 22 3 4 1 7 -5 7 -7 0 -12 7 -12 15 0 8 -4 15 -10 15 -5 0
-10 9 -10 20 0 11 -4 20 -10 20 -5 0 -10 7 -10 15 0 19 31 17 -345 19 -311 2
-320 2 -317 21 2 11 8 25 12 30 4 6 31 51 60 100 139 239 187 321 193 335 4 8
18 32 31 54 l24 38 -48 82 c-26 44 -64 110 -86 146 -21 36 -45 76 -54 90 -8
15 -33 58 -55 98 -22 39 -43 72 -47 72 -3 0 -16 -15 -27 -34z"/>
<path d="M1870 3403 c0 -4 -97 -8 -215 -8 -206 1 -216 0 -229 -20 -7 -11 -13
-24 -14 -28 0 -5 -11 -23 -24 -40 -14 -18 -38 -57 -54 -87 -17 -30 -57 -100
-89 -155 -32 -55 -69 -120 -83 -145 -14 -25 -34 -58 -45 -75 -11 -16 -21 -31
-22 -33 -2 -1 -217 -2 -478 -2 l-477 0 -15 -32 c-8 -18 -19 -40 -24 -48 -6 -8
-31 -50 -56 -93 l-46 -78 60 -107 c33 -59 66 -115 74 -126 13 -18 33 -19 340
-20 288 -1 327 -3 321 -16 -3 -8 -9 -23 -11 -32 -3 -10 -9 -18 -14 -18 -5 0
-9 -4 -9 -10 0 -8 -41 -81 -90 -160 -37 -60 -70 -121 -70 -130 0 -5 -4 -10 -8
-10 -10 0 -37 -50 -34 -62 1 -5 -2 -8 -8 -8 -5 0 -10 -6 -10 -14 0 -8 -3 -16
-7 -18 -5 -1 -20 -26 -35 -53 -23 -45 -25 -52 -12 -70 8 -10 49 -79 92 -153
42 -73 86 -148 96 -165 11 -18 24 -41 31 -52 36 -64 58 -95 66 -95 5 0 9 5 9
10 0 6 20 43 44 83 23 39 60 104 81 142 22 39 41 72 44 75 4 3 13 19 21 35 8
17 17 32 20 35 4 4 18 29 64 115 6 11 14 22 17 25 3 3 8 10 10 15 3 8 85 151
129 225 30 50 127 221 143 250 11 19 28 47 38 62 11 14 19 30 19 36 0 5 9 21
20 34 10 14 16 28 13 32 -3 3 -1 6 5 6 7 0 12 7 12 15 0 8 5 15 10 15 6 0 10
5 10 11 0 9 44 88 97 174 7 11 17 32 24 48 6 15 15 27 20 27 5 0 9 4 9 9 0 5
50 96 112 203 61 106 120 209 131 228 43 78 71 125 77 130 7 7 60 106 60 113
0 3 -24 5 -52 3 -29 -1 -61 2 -70 6 -10 5 -18 5 -18 1z"/>
<path d="M1543 2482 c-16 -38 -57 -106 -66 -110 -4 -2 -5 -8 -1 -13 3 -5 0 -9
-5 -9 -6 0 -11 -5 -11 -10 0 -6 -42 -83 -94 -172 l-95 -162 20 -27 c10 -15 19
-29 19 -32 0 -3 38 -72 85 -153 47 -81 85 -149 85 -150 0 -2 27 -49 60 -104
34 -55 63 -106 66 -114 3 -7 -20 -56 -51 -107 -32 -52 -58 -99 -59 -106 -1 -7
-9 -20 -18 -30 -8 -10 -29 -43 -46 -73 -16 -30 -45 -81 -64 -113 -160 -275
-228 -396 -228 -405 0 -5 25 -52 55 -103 31 -52 62 -105 70 -119 14 -25 16
-25 158 -28 l145 -3 46 76 c25 42 46 78 46 81 0 2 11 23 26 45 14 22 34 57 46
77 58 104 171 292 173 290 3 -3 161 -274 200 -343 12 -22 32 -56 43 -75 11
-19 34 -60 50 -90 l31 -55 290 -3 c254 -2 291 0 291 13 0 8 -4 15 -9 15 -5 0
-14 12 -20 28 -6 15 -15 34 -21 42 -5 8 -40 67 -76 130 -37 63 -80 138 -96
165 -16 28 -32 58 -35 67 -3 10 -9 18 -14 18 -5 0 -9 4 -9 10 0 5 -45 86 -100
180 -55 95 -100 174 -100 176 0 2 -11 21 -23 42 -13 20 -35 57 -49 82 -14 25
-52 90 -85 145 -33 55 -73 125 -90 155 -41 75 -141 247 -169 292 -13 21 -24
40 -24 43 0 4 -104 185 -130 225 -17 27 -72 124 -102 179 -16 30 -38 67 -49
82 -10 15 -19 31 -19 36 0 6 -8 17 -18 26 -17 15 -19 15 -29 -11z"/>
<path d="M2110 1665 c0 -6 23 -48 30 -55 3 -3 11 -16 18 -29 41 -72 57 -99 73
-126 11 -16 25 -41 32 -55 7 -14 25 -44 40 -67 15 -24 27 -47 27 -53 0 -5 5
-10 11 -10 5 0 7 -4 4 -10 -3 -5 -3 -10 2 -10 4 0 17 -18 27 -40 l19 -40 286
-1 c157 0 309 0 336 0 28 1 55 -2 61 -6 12 -10 134 -221 134 -234 0 -5 5 -9
10 -9 6 0 10 -4 10 -10 0 -10 173 -315 192 -337 6 -7 7 -13 2 -13 -5 0 -4 -4
1 -8 6 -4 36 -52 67 -107 l57 -101 146 1 147 0 69 118 c38 65 69 123 69 128 0
11 -65 132 -92 171 -10 14 -18 28 -18 31 0 3 -36 66 -80 141 -44 76 -80 139
-80 142 0 2 -11 22 -25 44 -14 22 -25 42 -25 45 0 3 138 5 308 5 169 0 319 0
335 0 15 0 27 5 27 12 0 6 6 19 14 27 7 9 30 47 50 85 20 38 40 74 44 80 5 6
22 36 38 66 16 30 31 57 35 60 3 3 16 28 30 55 13 28 27 52 30 55 7 6 29 47
29 54 0 3 -560 6 -1245 6 -685 0 -1245 -2 -1245 -5z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 6.7 KiB

View File

@ -1,16 +1,18 @@
{ {
"name": "", "name": "NixOS&Flakes",
"short_name": "", "short_name": "NixOS&Flakes",
"icons": [ "icons": [
{ {
"src": "/android-chrome-192x192.png", "src": "/web-app-manifest-192x192.png",
"sizes": "192x192", "sizes": "192x192",
"type": "image/png" "type": "image/png",
"purpose": "maskable"
}, },
{ {
"src": "/android-chrome-512x512.png", "src": "/web-app-manifest-512x512.png",
"sizes": "512x512", "sizes": "512x512",
"type": "image/png" "type": "image/png",
"purpose": "maskable"
} }
], ],
"theme_color": "#ffffff", "theme_color": "#ffffff",

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 KiB