46 lines
1.7 KiB
Plaintext
46 lines
1.7 KiB
Plaintext
---
|
|
import '@fontsource-variable/space-grotesk';
|
|
import '@fontsource-variable/jetbrains-mono';
|
|
import '../styles/global.css';
|
|
import Nav from '../components/Nav.astro';
|
|
import { site } from '../data/site';
|
|
|
|
interface Props {
|
|
title?: string;
|
|
description?: string;
|
|
}
|
|
const { title = site.title, description = site.description } = Astro.props;
|
|
const canonical = new URL(Astro.url.pathname, Astro.site);
|
|
---
|
|
|
|
<!doctype html>
|
|
<html lang="en" class="scroll-pt-4 scroll-smooth motion-reduce:scroll-auto">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>{title}</title>
|
|
<meta name="description" content={description} />
|
|
<meta name="theme-color" content="#0A0F0D" />
|
|
<link rel="canonical" href={canonical} />
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
<link rel="sitemap" href="/sitemap-index.xml" />
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:title" content={title} />
|
|
<meta property="og:description" content={description} />
|
|
<meta property="og:url" content={canonical} />
|
|
<meta name="twitter:card" content="summary" />
|
|
</head>
|
|
<body class="overflow-x-clip bg-canvas text-fg">
|
|
<a class="absolute top-0 -left-[999px] z-10 bg-amber px-3.5 py-2.5 font-mono text-canvas focus:top-2 focus:left-2" href="#main">Skip to content</a>
|
|
<div class="mx-auto max-w-[1120px] px-6 max-sm:px-4">
|
|
<Nav />
|
|
<main id="main">
|
|
<slot />
|
|
</main>
|
|
<footer class="border-t border-line pt-5 pb-8 font-mono text-[12px] text-muted">
|
|
© {new Date().getFullYear()} Dylan Benzi · Built with Astro, self-hosted
|
|
</footer>
|
|
</div>
|
|
</body>
|
|
</html>
|