98 lines
2.4 KiB
Plaintext
98 lines
2.4 KiB
Plaintext
---
|
|
import "../../assets/css/tailwind.pcss";
|
|
|
|
import Banner from "../components/Banner.astro";
|
|
import Navbar from "../components/Navbar.astro";
|
|
|
|
export interface Props {
|
|
title: string;
|
|
}
|
|
|
|
const { title } = Astro.props;
|
|
|
|
interface Link {
|
|
title: string;
|
|
href: string;
|
|
}
|
|
|
|
const footerLinks = [
|
|
{
|
|
title: "About",
|
|
href: "/",
|
|
},
|
|
{
|
|
title: "Talks",
|
|
href: "/talks",
|
|
},
|
|
{
|
|
title: "Daily list",
|
|
href: "/daily",
|
|
},
|
|
{
|
|
title: "Search",
|
|
href: "/search",
|
|
},
|
|
];
|
|
|
|
const canonicalURL = new URL(Astro.url.pathname, Astro.site).toString().replace(/\/$/, "");
|
|
---
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<meta name="generator" content={Astro.generator} />
|
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,400;0,700;1,300&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
<link rel="canonical" href={canonicalURL} />
|
|
<title>{title}</title>
|
|
<script
|
|
defer
|
|
data-domain="oliverdavies.uk"
|
|
src="https://plausible.io/js/plausible.js"
|
|
></script>
|
|
</head>
|
|
<body>
|
|
<div
|
|
class="min-h-screen font-sans text-base font-light md:text-xl dark:text-white text-grey-900 selection:bg-blue-primary selection:text-white dark:bg-grey-900 dark:selection:bg-blue-primary dark:selection:text-white"
|
|
>
|
|
{false && (
|
|
<Banner text={"<a href='/drupal-testing'>Register now for my Drupal automated testing workshop →</a>"} />
|
|
)}
|
|
|
|
<Navbar />
|
|
|
|
<div class="py-10 px-4 mx-auto max-w-xl md:py-10">
|
|
<h1 class="mb-4 text-xl font-bold md:text-2xl">{title}</h1>
|
|
|
|
<main>
|
|
<slot />
|
|
</main>
|
|
|
|
<div class="mt-16 mb-6">
|
|
<footer>
|
|
<nav class="flex flex-wrap justify-center -mb-3">
|
|
{
|
|
footerLinks &&
|
|
footerLinks.map((link) => (
|
|
<a
|
|
class="mx-3 mb-3 text-sm underline md:text-lg dark:text-white hover:no-underline link dark:hover:text-blue-400 hover:text-grey-900"
|
|
href={link.href}
|
|
>
|
|
{link.title}
|
|
</a>
|
|
))
|
|
}
|
|
</nav>
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|