Files
iptvnator/apps/website/src/layouts/BaseLayout.astro
T

45 lines
1.1 KiB
Plaintext

---
import BaseHead from '../components/BaseHead.astro';
import Header from '../components/Header.astro';
import Footer from '../components/Footer.astro';
import '../styles/global.css';
interface Props {
title: string;
description: string;
image?: string;
type?: 'website' | 'article';
noindex?: boolean;
keywords?: string[];
publishedTime?: string;
modifiedTime?: string;
jsonLd?: Record<string, unknown> | Array<Record<string, unknown>>;
}
const { title, description, image, type, noindex, keywords, publishedTime, modifiedTime, jsonLd } = Astro.props;
---
<!doctype html>
<html lang="en" class="dark">
<head>
<BaseHead
title={title}
description={description}
image={image}
type={type}
noindex={noindex}
keywords={keywords}
publishedTime={publishedTime}
modifiedTime={modifiedTime}
jsonLd={jsonLd}
/>
</head>
<body class="min-h-screen bg-surface-950 font-body text-surface-200">
<Header />
<main class="overflow-x-hidden">
<slot />
</main>
<Footer />
</body>
</html>