40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
---
|
|
import Footer from "@/components/Footer.astro"
|
|
import Header from "@/components/header/Header.astro"
|
|
import { languageTag } from "@/paraglide/runtime"
|
|
import { resolvePathname } from "@/utils/linking"
|
|
|
|
interface Props {
|
|
title: string
|
|
class?: string
|
|
}
|
|
const { title, class: clazz } = Astro.props
|
|
const mainClass =
|
|
"grow max-w-[1000px] m-auto sm:min-w-[500px] not-sm:w-full px-5"
|
|
---
|
|
|
|
<!doctype html>
|
|
<html lang={languageTag()} dir={"ltr"}>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="description" content="Astro description" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<link rel="sitemap" href="/sitemap-index.xml" />
|
|
<link rel="icon" type="image/jpg" href="/favicon.jpg" />
|
|
<meta name="generator" content={Astro.generator} />
|
|
<title>{title} | Martin Berg Alstad</title>
|
|
</head>
|
|
<body class="flex flex-col min-h-screen bg-cat-base text-cat-text">
|
|
<Header />
|
|
<main class:list={[mainClass, clazz]}>
|
|
<h1 class="text-center not-sm:hidden">
|
|
~{resolvePathname(Astro.originPathname)}
|
|
</h1>
|
|
<div class="my-5">
|
|
<slot />
|
|
</div>
|
|
</main>
|
|
<Footer />
|
|
</body>
|
|
</html>
|