Ajout du dossier public, ajout de l'icône du site, modification de la configuration pour compiler le site dans le dossier dist.

This commit is contained in:
Madeorsk 2024-09-07 15:18:30 +02:00
parent 705fa5bf39
commit 232277679d
17 changed files with 82 additions and 2 deletions

2
.gitignore vendored
View file

@ -6,4 +6,4 @@
node_modules/ node_modules/
# Website # Website
public/ dist/

View file

@ -13,6 +13,14 @@
<link rel="me" href="https://aleph.land/@Madeorsk" /> <link rel="me" href="https://aleph.land/@Madeorsk" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5BBAD5" />
<meta name="msapplication-TileColor" content="#141414" />
<meta name="theme-color" content="#F9F9F9" />
<title>Madeorsk</title> <title>Madeorsk</title>
<link rel="stylesheet" type="text/css" href="./less/madeorsk.less" /> <link rel="stylesheet" type="text/css" href="./less/madeorsk.less" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8 KiB

BIN
public/apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

9
public/browserconfig.xml Normal file
View file

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

BIN
public/favicon-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 562 B

BIN
public/favicon-32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 747 B

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
public/mstile-144x144.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
public/mstile-150x150.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
public/mstile-310x150.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
public/mstile-310x310.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

BIN
public/mstile-70x70.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -0,0 +1,45 @@
<?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="700.000000pt" height="700.000000pt" viewBox="0 0 700.000000 700.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.14, written by Peter Selinger 2001-2017
</metadata>
<g transform="translate(0.000000,700.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M0 3500 l0 -3500 3500 0 3500 0 0 3500 0 3500 -3500 0 -3500 0 0
-3500z m2117 1856 l361 -209 -411 -239 c-227 -131 -415 -238 -419 -238 -5 0
-8 216 -8 481 l0 480 58 -33 c32 -18 221 -127 419 -242z m3243 -206 c0 -264
-3 -480 -7 -480 -5 0 -193 107 -420 238 l-411 238 416 242 c230 133 418 242
420 242 1 0 2 -216 2 -480z m-2842 -790 l-3 -240 -413 239 c-401 232 -413 240
-390 254 12 9 199 117 413 241 l390 225 3 -239 c1 -132 1 -348 0 -480z m555
445 c190 -110 346 -202 346 -205 1 -4 -796 -468 -821 -478 -4 -2 -8 213 -8
478 l0 482 68 -39 c38 -21 224 -128 415 -238z m1334 -682 c-5 -4 -827 470
-826 477 0 3 185 112 412 243 l412 237 3 -476 c1 -263 1 -479 -1 -481z m483
722 c217 -125 401 -232 408 -238 9 -7 -97 -72 -375 -234 -214 -124 -400 -231
-415 -239 l-28 -15 0 481 c0 265 3 479 8 477 4 -2 185 -107 402 -232z m-2773
-589 l361 -209 -411 -239 c-227 -131 -415 -238 -419 -238 -5 0 -8 216 -8 481
l0 480 58 -33 c32 -18 221 -127 419 -242z m1343 -205 l0 -480 -142 83 c-79 45
-266 154 -417 241 -260 150 -272 159 -250 171 13 7 197 114 409 238 212 123
388 225 393 225 4 1 7 -215 7 -478z m497 243 c224 -130 409 -238 411 -239 2
-1 -120 -74 -270 -161 -150 -87 -337 -195 -415 -240 l-143 -83 0 480 c0 263 2
479 4 479 3 0 188 -106 413 -236z m1403 -244 c0 -264 -3 -480 -7 -480 -5 0
-193 107 -420 238 l-411 238 416 242 c230 133 418 242 420 242 1 0 2 -216 2
-480z m-2844 -1017 c-2 -3 -189 103 -415 233 -225 131 -408 240 -405 243 3 3
188 112 412 241 l407 236 3 -475 c1 -261 0 -476 -2 -478z m2522 632 l274 -158
-29 -17 c-67 -42 -793 -460 -798 -460 -3 0 -5 216 -5 479 l0 480 143 -83 c78
-45 265 -154 415 -241z m-2988 -470 c217 -125 401 -233 408 -240 11 -10 -66
-58 -396 -249 -224 -130 -411 -236 -415 -236 -4 0 -7 216 -7 481 0 264 3 478
8 476 4 -2 185 -107 402 -232z m3305 -723 c-2 -2 -189 102 -415 233 -278 161
-408 241 -401 248 6 6 191 115 413 243 l403 233 3 -476 c1 -262 0 -478 -3
-481z m-2839 -539 c-2 -2 -189 103 -414 234 -226 130 -409 240 -406 243 3 3
189 111 412 241 l407 235 3 -474 c1 -262 0 -477 -2 -479z m2394 707 c212 -122
388 -225 392 -229 6 -5 -775 -466 -813 -479 -5 -2 -9 186 -9 477 l0 481 23
-14 c12 -7 195 -114 407 -236z m-2843 -548 l411 -239 -361 -209 c-198 -115
-387 -224 -419 -242 l-58 -33 0 480 c0 265 3 481 8 481 4 0 192 -107 419 -238z
m3293 -243 l0 -480 -58 33 c-32 18 -221 127 -419 242 l-361 209 411 239 c227
131 415 238 420 238 4 0 7 -216 7 -481z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

19
public/site.webmanifest Normal file
View file

@ -0,0 +1,19 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#F9F9F9",
"background_color": "#141414",
"display": "standalone"
}

View file

@ -4,7 +4,6 @@ import {resolve} from "path";
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig(() => ({ export default defineConfig(() => ({
build: { build: {
outDir: resolve(__dirname, "public"),
emptyOutDir: true, emptyOutDir: true,
}, },
})); }));