feat(web): implement web server foundation

This commit is contained in:
syntaxbullet
2026-01-07 12:40:21 +01:00
parent 022f748517
commit 2a1c4e65ae
13 changed files with 289 additions and 8 deletions

31
src/web/views/layout.ts Normal file
View File

@@ -0,0 +1,31 @@
interface LayoutProps {
title: string;
content: string;
}
export function BaseLayout({ title, content }: LayoutProps): string {
return `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>${title} | Aurora</title>
<link rel="stylesheet" href="/style.css">
<meta name="description" content="Aurora Bot Web Interface">
</head>
<body>
<header>
<h1>Aurora Web</h1>
<nav>
<a href="/">Home</a>
</nav>
</header>
<main>
${content}
</main>
<footer>
<p>&copy; ${new Date().getFullYear()} Aurora Bot</p>
</footer>
</body>
</html>`;
}