mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
perf: load local fonts instead of google fonts
This commit is contained in:
69
apps/web/public/fonts.css
Normal file
69
apps/web/public/fonts.css
Normal file
@@ -0,0 +1,69 @@
|
||||
/* open-sans-regular - latin */
|
||||
@font-face {
|
||||
font-family: "Open Sans";
|
||||
font-display: swap;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local(""),
|
||||
url("./fonts/open-sans-v20-latin-regular.woff2") format("woff2"),
|
||||
/* Chrome 26+, Opera 23+, Firefox 39+ */
|
||||
url("./fonts/open-sans-v20-latin-regular.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||
}
|
||||
|
||||
/* open-sans-italic - latin */
|
||||
@font-face {
|
||||
font-family: "Open Sans";
|
||||
font-display: swap;
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local(""),
|
||||
url("./fonts/open-sans-v20-latin-italic.woff2") format("woff2"),
|
||||
/* Chrome 26+, Opera 23+, Firefox 39+ */
|
||||
url("./fonts/open-sans-v20-latin-italic.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||
}
|
||||
|
||||
/* open-sans-600 - latin */
|
||||
@font-face {
|
||||
font-family: "Open Sans";
|
||||
font-display: swap;
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
src: local(""), url("./fonts/open-sans-v20-latin-600.woff2") format("woff2"),
|
||||
/* Chrome 26+, Opera 23+, Firefox 39+ */
|
||||
url("./fonts/open-sans-v20-latin-600.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||
}
|
||||
|
||||
/* open-sans-600italic - latin */
|
||||
@font-face {
|
||||
font-family: "Open Sans";
|
||||
font-display: swap;
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
src: local(""),
|
||||
url("./fonts/open-sans-v20-latin-600italic.woff2") format("woff2"),
|
||||
/* Chrome 26+, Opera 23+, Firefox 39+ */
|
||||
url("./fonts/open-sans-v20-latin-600italic.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||
}
|
||||
|
||||
/* open-sans-700 - latin */
|
||||
@font-face {
|
||||
font-family: "Open Sans";
|
||||
font-display: swap;
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local(""), url("./fonts/open-sans-v20-latin-700.woff2") format("woff2"),
|
||||
/* Chrome 26+, Opera 23+, Firefox 39+ */
|
||||
url("./fonts/open-sans-v20-latin-700.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||
}
|
||||
|
||||
/* open-sans-700italic - latin */
|
||||
@font-face {
|
||||
font-family: "Open Sans";
|
||||
font-display: swap;
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: local(""),
|
||||
url("./fonts/open-sans-v20-latin-700italic.woff2") format("woff2"),
|
||||
/* Chrome 26+, Opera 23+, Firefox 39+ */
|
||||
url("./fonts/open-sans-v20-latin-700italic.woff") format("woff"); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||
}
|
||||
BIN
apps/web/public/fonts/open-sans-v20-latin-600.woff
Normal file
BIN
apps/web/public/fonts/open-sans-v20-latin-600.woff
Normal file
Binary file not shown.
BIN
apps/web/public/fonts/open-sans-v20-latin-600.woff2
Normal file
BIN
apps/web/public/fonts/open-sans-v20-latin-600.woff2
Normal file
Binary file not shown.
BIN
apps/web/public/fonts/open-sans-v20-latin-600italic.woff
Normal file
BIN
apps/web/public/fonts/open-sans-v20-latin-600italic.woff
Normal file
Binary file not shown.
BIN
apps/web/public/fonts/open-sans-v20-latin-600italic.woff2
Normal file
BIN
apps/web/public/fonts/open-sans-v20-latin-600italic.woff2
Normal file
Binary file not shown.
BIN
apps/web/public/fonts/open-sans-v20-latin-700.woff
Normal file
BIN
apps/web/public/fonts/open-sans-v20-latin-700.woff
Normal file
Binary file not shown.
BIN
apps/web/public/fonts/open-sans-v20-latin-700.woff2
Normal file
BIN
apps/web/public/fonts/open-sans-v20-latin-700.woff2
Normal file
Binary file not shown.
BIN
apps/web/public/fonts/open-sans-v20-latin-700italic.woff
Normal file
BIN
apps/web/public/fonts/open-sans-v20-latin-700italic.woff
Normal file
Binary file not shown.
BIN
apps/web/public/fonts/open-sans-v20-latin-700italic.woff2
Normal file
BIN
apps/web/public/fonts/open-sans-v20-latin-700italic.woff2
Normal file
Binary file not shown.
BIN
apps/web/public/fonts/open-sans-v20-latin-italic.woff
Normal file
BIN
apps/web/public/fonts/open-sans-v20-latin-italic.woff
Normal file
Binary file not shown.
BIN
apps/web/public/fonts/open-sans-v20-latin-italic.woff2
Normal file
BIN
apps/web/public/fonts/open-sans-v20-latin-italic.woff2
Normal file
Binary file not shown.
BIN
apps/web/public/fonts/open-sans-v20-latin-regular.woff
Normal file
BIN
apps/web/public/fonts/open-sans-v20-latin-regular.woff
Normal file
Binary file not shown.
BIN
apps/web/public/fonts/open-sans-v20-latin-regular.woff2
Normal file
BIN
apps/web/public/fonts/open-sans-v20-latin-regular.woff2
Normal file
Binary file not shown.
@@ -97,11 +97,11 @@
|
||||
background-color: #f7f7f7;
|
||||
}
|
||||
</style>
|
||||
<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=Open+Sans:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap"
|
||||
rel="stylesheet"
|
||||
rel="preload"
|
||||
href="./fonts.css"
|
||||
as="style"
|
||||
onload="this.onload=null; this.rel='stylesheet'; document.body.classList.add('fontLoaded')"
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user