feat: added local fonts

This commit is contained in:
2025-09-23 15:24:57 +02:00
parent 51e8fa69de
commit 6b2202d82d
9 changed files with 25 additions and 1 deletions

View File

@@ -1,5 +1,26 @@
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&display=swap');
@font-face {
font-family: 'fira';
font-style: normal;
font-weight: 500;
src: url('/fonts/FiraCode-Regular.ttf') format('truetype');
}
@font-face {
font-family: 'Fraunces';
font-style: normal;
font-weight: 100 900;
src: url('/fonts/Fraunces.woff2') format('woff2');
}
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
src: url('/fonts/Inter.ttf') format('truetype');
}
:root{ :root{
--d1:1.0rem; --d1:1.0rem;
--d2:1.5rem; --d2:1.5rem;
@@ -24,12 +45,14 @@ body {
width:100%; width:100%;
margin: auto; margin: auto;
text-align: justify; text-align: justify;
font-family: Inter;
} }
code { code {
background: var(--rp-moon-base); background: var(--rp-moon-base);
padding: 3px; padding: 3px;
border-radius: 0.5rem; border-radius: 0.5rem;
font-family: fira;
} }
pre { pre {
@@ -90,7 +113,8 @@ main {
.date{ .date{
text-align: right; text-align: right;
color: var(--rp-moon-subtle) color: var(--rp-moon-subtle);
font-family: Fraunces;
} }
hr { hr {

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
static/fonts/Fraunces.woff2 Normal file

Binary file not shown.

BIN
static/fonts/Inter.ttf Normal file

Binary file not shown.