Fix: fonts déplacées dans assets/fonts/ (chemin correct)
- Déplacement de assets/css/fonts/ → assets/fonts/ - Mise à jour des URLs dans fonts.css et le plugin Vite Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
31ab9a1b69
commit
88379fe073
16 changed files with 12 additions and 5 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -3,27 +3,27 @@
|
|||
font-family: "Terminal";
|
||||
font-weight: bold;
|
||||
src: local("terminal-grotesque"),
|
||||
url("/assets/css/fonts/terminal-grotesque.ttf") format("truetype");
|
||||
url("/assets/fonts/terminal-grotesque.ttf") format("truetype");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Danzza";
|
||||
src: local("Danzza Regular"),
|
||||
url("/assets/css/fonts/Danzza%20Regular.otf") format("opentype");
|
||||
url("/assets/fonts/Danzza%20Regular.otf") format("opentype");
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Danzza Medium";
|
||||
src: local("Danzza Medium"),
|
||||
url("/assets/css/fonts/Danzza%20Medium.otf") format("opentype");
|
||||
url("/assets/fonts/Danzza%20Medium.otf") format("opentype");
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Danzza Bold";
|
||||
src: local("Danzza Bold"),
|
||||
url("/assets/css/fonts/Danzza%20Bold.otf") format("opentype");
|
||||
url("/assets/fonts/Danzza%20Bold.otf") format("opentype");
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
|
|
@ -52,3 +52,10 @@
|
|||
.green {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.gradient-blue {
|
||||
-webkit-text-fill-color: transparent;
|
||||
background: linear-gradient(90deg, #2c85f3 0, #68e0cf 50%);
|
||||
background-clip: text;
|
||||
-webkit-background-clip: text;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ function keepFontsInPlace() {
|
|||
if (chunk.type === 'asset' && chunk.fileName.endsWith('.css')) {
|
||||
chunk.source = chunk.source.replace(
|
||||
/url\((['"]?)([^'")\s]*\.(woff2?|ttf|otf))\1\)/gi,
|
||||
(_, _q, p) => `url("/assets/css/fonts/${decodeURIComponent(p.split('/').pop())}")`
|
||||
(_, _q, p) => `url("/assets/fonts/${decodeURIComponent(p.split('/').pop())}")`
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue