feat: replace google fonts with local fonts
This commit is contained in:
parent
e5d2acc590
commit
deb98f6cb8
@ -5,16 +5,6 @@ export default function App({ Component }: AppProps) {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link
|
||||
rel="preconnect"
|
||||
href="https://fonts.gstatic.com"
|
||||
crossOrigin=""
|
||||
/>
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Work+Sans:wght@100;400;700&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<link href="/global.css" rel="stylesheet" />
|
||||
<link href="/prism-material-dark.css" rel="stylesheet" />
|
||||
</Head>
|
||||
|
BIN
static/fonts/work-sans-v18-latin-700.woff2
Normal file
BIN
static/fonts/work-sans-v18-latin-700.woff2
Normal file
Binary file not shown.
BIN
static/fonts/work-sans-v18-latin-regular.woff2
Normal file
BIN
static/fonts/work-sans-v18-latin-regular.woff2
Normal file
Binary file not shown.
@ -1,3 +1,21 @@
|
||||
/* work-sans-regular - latin */
|
||||
@font-face {
|
||||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
||||
font-family: 'Work Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('/fonts/work-sans-v18-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
||||
}
|
||||
|
||||
/* work-sans-700 - latin */
|
||||
@font-face {
|
||||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
|
||||
font-family: 'Work Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: url('/fonts/work-sans-v18-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
||||
}
|
||||
|
||||
body {
|
||||
background: #141217;
|
||||
padding: 0px 20px;
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user