aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/layouts/Layout.astro
diff options
context:
space:
mode:
Diffstat (limited to 'apps/website/src/layouts/Layout.astro')
-rw-r--r--apps/website/src/layouts/Layout.astro27
1 files changed, 4 insertions, 23 deletions
diff --git a/apps/website/src/layouts/Layout.astro b/apps/website/src/layouts/Layout.astro
index f916ee1..b1cde5c 100644
--- a/apps/website/src/layouts/Layout.astro
+++ b/apps/website/src/layouts/Layout.astro
@@ -1,37 +1,18 @@
---
import Footer from '@components/base/Footer.astro';
-import Favicon from '/media/polyfrost/minimal_bg.svg?url';
import Navbar from '../components/base/navbar/Navbar.astro';
+import BaseHead, { type Props as HeadProps } from '../components/shared/BaseHead.astro';
import '../styles/global.css';
-interface Props {
- title?: string;
- description?: string;
- favicon?: string;
-}
+export type Props = HeadProps;
-const {
- title = 'Polyfrost',
- description = 'Official website for Polyfrost.',
- favicon = Favicon,
-} = Astro.props;
+const { ...head } = Astro.props;
---
<!doctype html>
<html lang="en">
<head>
- <meta charset="UTF-8"/>
- <meta name="description" content={description}/>
- <meta name="viewport" content="width=device-width"/>
- <link rel="icon" type="image/svg+xml" href={favicon}/>
- <meta name="generator" content={Astro.generator}/>
-
- <link rel="preconnect" href="https://fonts.googleapis.com"/>
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
- <link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet"/>
- <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital@0;1&display=swap" rel="stylesheet"/>
-
- <title>{title}</title>
+ <BaseHead {...head} />
</head>
<body class="bg-gray-50 overflow-x-hidden">