stop using cdns for fonts

Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
Naman Sood 2022-01-31 16:53:03 -05:00
parent f30e5c1596
commit facb807b81
18 changed files with 61 additions and 2 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.

Binary file not shown.

Binary file not shown.

Binary file not shown.

33
styles/jetbrainsmono.css Normal file
View file

@ -0,0 +1,33 @@
/*! Generated by Font Squirrel (https://www.fontsquirrel.com) on January 31, 2022 */
@font-face {
font-family: 'JetBrains Mono';
src: url('/fonts/jetbrainsmono-bold-webfont.woff2') format('woff2'),
url('/fonts/jetbrainsmono-bold-webfont.woff') format('woff');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'JetBrains Mono';
src: url('/fonts/jetbrainsmono-bolditalic-webfont.woff2') format('woff2'),
url('/fonts/jetbrainsmono-bolditalic-webfont.woff') format('woff');
font-weight: bold;
font-style: italic;
}
@font-face {
font-family: 'JetBrains Mono';
src: url('/fonts/jetbrainsmono-italic-webfont.woff2') format('woff2'),
url('/fonts/jetbrainsmono-italic-webfont.woff') format('woff');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: 'JetBrains Mono';
src: url('/fonts/jetbrainsmono-regular-webfont.woff2') format('woff2'),
url('/fonts/jetbrainsmono-regular-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}

View file

@ -213,6 +213,7 @@ article {
}
pre {
font-family: 'JetBrains Mono', monospace;
font-size: 0.9em;
margin: 2*$ls 0;
line-height: $ls;

25
styles/nunito.css Normal file
View file

@ -0,0 +1,25 @@
/*! Generated by Font Squirrel (https://www.fontsquirrel.com) on January 31, 2022 */
@font-face {
font-family: 'Nunito';
src: url('/fonts/nunito-regular.woff2') format('woff2'),
url('/fonts/nunito-regular.woff') format('woff');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'Nunito';
src: url('/fonts/nunito-semibold.woff2') format('woff2'),
url('/fonts/nunito-semibold.woff') format('woff');
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: 'Nunito';
src: url('/fonts/nunito-bold.woff2') format('woff2'),
url('/fonts/nunito-bold.woff') format('woff');
font-weight: 700;
font-style: normal;
}

View file

@ -14,8 +14,8 @@
<meta name="color-scheme" content="dark light">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/css/main.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono&family=Nunito:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/css/nunito.css">
<link rel="stylesheet" href="/css/jetbrainsmono.css">
<title>{{title}} &ndash; Prose</title>
</head>
<body>