fonts, schema

This commit is contained in:
matthieu42morin 2024-04-29 15:42:11 +02:00
parent 6e29c4f9e5
commit 4e64c1b2f1
2 changed files with 33 additions and 21 deletions

View File

@ -5,14 +5,26 @@
<meta name="generator" content="gh:importantimport/urara" /> <meta name="generator" content="gh:importantimport/urara" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="apple-touch-icon" sizes="180x180" href="%sveltekit.assets%/assets/apple-touch-icon.png" /> <link rel="apple-touch-icon" sizes="180x180" href="%sveltekit.assets%/assets/apple-touch-icon.png" />
<link rel="icon" href="%sveltekit.assets%/assets/favicon@192.png" /> <link rel="icon" href="%sveltekit.assets%/assets/maskable@192.png" />
<link rel="manifest" crossorigin="use-credentials" href="/manifest.webmanifest" /> <link rel="manifest" crossorigin="use-credentials" href="/manifest.webmanifest" />
<link rel="alternate" type="application/feed+json" href="/feed.json" /> <link rel="alternate" type="application/feed+json" href="/feed.json" />
<link rel="alternate" type="application/atom+xml" href="/atom.xml" /> <link rel="alternate" type="application/atom+xml" href="/atom.xml" />
<link rel="sitemap" type="application/xml" href="/sitemap.xml" /> <link rel="sitemap" type="application/xml" href="/sitemap.xml" />
%sveltekit.head% %sveltekit.head%
</head> </head>
<body itemscope itemtype="https://schema.org/WebPage"> <body itemscope itemtype="https://schema.org/WebPage" data-sveltekit-prefetch>
<script>
const themeLocalStorageKey = 'theme'
if (
!!localStorage.getItem(themeLocalStorageKey)
? localStorage.getItem(themeLocalStorageKey) === 'dark'
: window.matchMedia('(prefers-color-scheme: dark)').matches
) {
document.body.classList.add('dark')
} else {
document.body.classList.add('light')
}
</script>
<div style="display: contents">%sveltekit.body%</div> <div style="display: contents">%sveltekit.body%</div>
</body> </body>
</html> </html>

View File

@ -45,8 +45,8 @@ h6 {
@font-face { @font-face {
font-family: 'Orbitron-Variable'; font-family: 'Orbitron-Variable';
src: src:
url('assets/fonts/Orbitron-VariableFont_wght.woff') format('woff'), url('/assets/fonts/Orbitron-VariableFont_wght.woff') format('woff'),
url('assets/fonts/Orbitron-VariableFont_wght.ttf') format('truetype'); url('/assets/fonts/Orbitron-VariableFont_wght.ttf') format('truetype');
font-weight: 300 900; font-weight: 300 900;
font-display: swap; font-display: swap;
font-style: normal; font-style: normal;
@ -55,8 +55,8 @@ h6 {
@font-face { @font-face {
font-family: 'RobotoMono-Italic-Variable'; font-family: 'RobotoMono-Italic-Variable';
src: src:
url('assets/fonts/RobotoMono-Italic-VariableFont_wght.woff') format('woff'), url('/assets/fonts/RobotoMono-Italic-VariableFont_wght.woff') format('woff'),
url('assets/fonts/RobotoMono-Italic-VariableFont_wght.ttf') format('truetype'); url('/assets/fonts/RobotoMono-Italic-VariableFont_wght.ttf') format('truetype');
font-weight: 300 900; font-weight: 300 900;
font-display: swap; font-display: swap;
font-style: normal; font-style: normal;
@ -65,8 +65,8 @@ h6 {
@font-face { @font-face {
font-family: 'RobotoMono-VariableFont'; font-family: 'RobotoMono-VariableFont';
src: src:
url('assets/fonts/RobotoMono-VariableFont_wght.woff') format('woff'), url('/assets/fonts/RobotoMono-VariableFont_wght.woff') format('woff'),
url('assets/fonts/RobotoMono-VariableFont_wght.ttf') format('truetype'); url('/assets/fonts/RobotoMono-VariableFont_wght.ttf') format('truetype');
font-weight: 300 900; font-weight: 300 900;
font-display: swap; font-display: swap;
font-style: italic; font-style: italic;