mirror of
https://github.com/Spythere/genera-tor.git
synced 2026-05-03 13:38:12 +00:00
refactor: fonts optimization
This commit is contained in:
+31
-1
@@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="pl">
|
<html lang="pl">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
@@ -24,6 +24,36 @@
|
|||||||
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png" />
|
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png" />
|
||||||
<meta name="theme-color" content="#ffffff" />
|
<meta name="theme-color" content="#ffffff" />
|
||||||
|
|
||||||
|
<!-- Preloads -->
|
||||||
|
<link
|
||||||
|
rel="preload"
|
||||||
|
href="/fonts/libre-franklin-500.woff2"
|
||||||
|
as="font"
|
||||||
|
type="font/woff2"
|
||||||
|
crossorigin
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="preload"
|
||||||
|
href="/fonts/libre-franklin-700.woff2"
|
||||||
|
as="font"
|
||||||
|
type="font/woff2"
|
||||||
|
crossorigin
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="preload"
|
||||||
|
href="/fonts/libre-franklin-800.woff2"
|
||||||
|
as="font"
|
||||||
|
type="font/woff2"
|
||||||
|
crossorigin
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="preload"
|
||||||
|
href="/fonts/libre-franklin-regular.woff2"
|
||||||
|
as="font"
|
||||||
|
type="font/woff2"
|
||||||
|
crossorigin
|
||||||
|
/>
|
||||||
|
|
||||||
<title>GeneraTOR</title>
|
<title>GeneraTOR</title>
|
||||||
<meta name="description" content="Generator rozkazów pisemnych online" />
|
<meta name="description" content="Generator rozkazów pisemnych online" />
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
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.
+25
-16
@@ -1,24 +1,33 @@
|
|||||||
|
/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
|
||||||
|
/* libre-franklin-regular - latin_latin-ext */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Libre Franklin';
|
|
||||||
src: url('/fonts/LibreFranklin-Bold.woff2') format('woff2');
|
|
||||||
font-weight: 800;
|
|
||||||
font-style: normal;
|
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Libre Franklin';
|
font-family: 'Libre Franklin';
|
||||||
src: url('/fonts/LibreFranklin-Regular.woff2') format('woff2');
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url('/fonts/libre-franklin-regular.woff2') format('woff2');
|
||||||
|
}
|
||||||
|
/* libre-franklin-500 - latin_latin-ext */
|
||||||
|
@font-face {
|
||||||
|
font-display: swap;
|
||||||
|
font-family: 'Libre Franklin';
|
||||||
|
font-style: normal;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-style: normal;
|
src: url('/fonts/libre-franklin-500.woff2') format('woff2');
|
||||||
font-display: swap;
|
|
||||||
}
|
}
|
||||||
|
/* libre-franklin-700 - latin_latin-ext */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Libre Franklin';
|
|
||||||
src: url('/fonts/LibreFranklin-SemiBold.woff2') format('woff2');
|
|
||||||
font-weight: 700;
|
|
||||||
font-style: normal;
|
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
|
font-family: 'Libre Franklin';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
src: url('/fonts/libre-franklin-700.woff2') format('woff2');
|
||||||
|
}
|
||||||
|
/* libre-franklin-800 - latin_latin-ext */
|
||||||
|
@font-face {
|
||||||
|
font-display: swap;
|
||||||
|
font-family: 'Libre Franklin';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 800;
|
||||||
|
src: url('/fonts/libre-franklin-800.woff2') format('woff2');
|
||||||
}
|
}
|
||||||
|
|
||||||
+1
-1
@@ -23,7 +23,7 @@ export default defineConfig({
|
|||||||
VitePWA({
|
VitePWA({
|
||||||
registerType: 'prompt',
|
registerType: 'prompt',
|
||||||
workbox: {
|
workbox: {
|
||||||
globPatterns: ['**/*.{js,css,html,png,svg,img}'],
|
globPatterns: ['**/*.{js,css,html,png,svg,img,woff2}'],
|
||||||
runtimeCaching: [
|
runtimeCaching: [
|
||||||
{
|
{
|
||||||
urlPattern: /^https:\/\/stacjownik.spythere.eu\/\/api\/getSceneries/i,
|
urlPattern: /^https:\/\/stacjownik.spythere.eu\/\/api\/getSceneries/i,
|
||||||
|
|||||||
Reference in New Issue
Block a user