fonts, schema
This commit is contained in:
parent
6e29c4f9e5
commit
4e64c1b2f1
42
src/app.html
42
src/app.html
|
@ -1,18 +1,30 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head prefix="og: https://ogp.me/ns#">
|
<head prefix="og: https://ogp.me/ns#">
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<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>
|
||||||
<div style="display: contents">%sveltekit.body%</div>
|
<script>
|
||||||
</body>
|
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>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
12
src/app.pcss
12
src/app.pcss
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue