1
0
Fork 0

load google fonts locally

This commit is contained in:
Michael Czechowski 2024-10-19 00:45:01 +02:00
parent 72dea54cc7
commit 40ae43b935
Signed by: nextlevelshit
GPG Key ID: 3DB96851AACDE749
7 changed files with 51 additions and 6 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.

View File

@ -81,6 +81,57 @@ head
// region Custom CSS
style.
/* Afacad Flux */
@font-face {
font-family: 'Afacad Flux';
src: url('/public/fonts/AfacadFlux-Medium.ttf') format('truetype');
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Afacad Flux';
src: url('/public/fonts/AfacadFlux-SemiBold.ttf') format('truetype');
font-weight: 600;
font-style: normal;
font-display: swap;
}
/* Libre Baskerville */
@font-face {
font-family: 'Libre Baskerville';
src: url('/public/fonts/LibreBaskerville-Regular.ttf') format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Libre Baskerville';
src: url('/public/fonts/LibreBaskerville-Bold.ttf') format('truetype');
font-weight: 700;
font-style: normal;
font-display: swap;
}
/* Roboto Mono */
@font-face {
font-family: 'Roboto Mono';
src: url('/public/fonts/RobotoMono-Regular.ttf') format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Roboto Mono';
src: url('/public/fonts/RobotoMono-SemiBold.ttf') format('truetype');
font-weight: 600;
font-style: normal;
font-display: swap;
}
html {
background: black;
color: black;
@ -102,12 +153,6 @@ head
}
// endregion
link(rel="preconnect", href="https://fonts.googleapis.com")
link(
rel="stylesheet",
href="https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap"
)
script(async, defer, data-website-id=head.umamiId, src=head.umamiSrc)
script.