feat: refactor

This commit is contained in:
Barrett Ruth 2025-05-22 14:23:22 -05:00
parent b83f17d087
commit 8666e5a169
57 changed files with 5734 additions and 5313 deletions

View file

@ -0,0 +1,40 @@
---
import Header from '../components/Header.astro';
import Footer from '../components/Footer.astro';
interface Props {
title: string;
description?: string;
useKatex?: boolean;
bodyClass?: string;
}
const {
title,
description = "Barrett Ruth's personal website",
useKatex = false,
bodyClass = "graph-background"
} = Astro.props;
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content={description} />
<link rel="icon" type="image/webp" href="/logo.webp" />
<link rel="stylesheet" href="/styles/common.css" />
<title>{title}</title>
<slot name="head" />
</head>
<body class={bodyClass}>
<Header />
<main class="main">
<slot />
</main>
<Footer />
<slot name="scripts" />
</body>
</html>