mirror of
https://gitlab.w-hs.de/an14051/backerup-website.git
synced 2026-07-27 17:35:29 +00:00
Initial Commit
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import Link from "next/link";
|
||||
import "./globals.css";
|
||||
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
const geistMono = Geist_Mono({
|
||||
variable: "--font-geist-mono",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Backerup — Docker Container Backup",
|
||||
description:
|
||||
"Simple, reliable Docker container backups. Share and discover container configs and backup snapshots.",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html
|
||||
lang="en"
|
||||
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
||||
>
|
||||
<body className="min-h-full flex flex-col bg-[#0b0f1a] text-slate-200">
|
||||
{/* Nav */}
|
||||
<header className="sticky top-0 z-50 border-b border-slate-800 bg-[#0b0f1a]/90 backdrop-blur">
|
||||
<div className="mx-auto flex max-w-6xl items-center justify-between px-6 py-4">
|
||||
<Link href="/" className="flex items-center gap-2 font-bold text-lg text-white">
|
||||
<span className="rounded bg-cyan-500 px-1.5 py-0.5 text-xs font-mono text-slate-900">
|
||||
.backerup
|
||||
</span>
|
||||
<span>Backerup</span>
|
||||
</Link>
|
||||
<nav className="flex items-center gap-6 text-sm text-slate-400">
|
||||
<Link href="/browse" className="hover:text-white transition-colors">Browse</Link>
|
||||
<Link href="/share" className="hover:text-white transition-colors">Share</Link>
|
||||
<Link
|
||||
href="/share"
|
||||
className="rounded-lg bg-cyan-500 px-4 py-1.5 text-sm font-semibold text-slate-900 hover:bg-cyan-400 transition-colors"
|
||||
>
|
||||
Upload
|
||||
</Link>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{/* Page content */}
|
||||
<main className="flex-1">{children}</main>
|
||||
|
||||
{/* Footer */}
|
||||
<footer className="border-t border-slate-800 py-8 text-center text-xs text-slate-600">
|
||||
<p>
|
||||
Backerup — open-source Docker backup.{" "}
|
||||
<a
|
||||
href="https://github.com"
|
||||
className="text-slate-500 hover:text-slate-300 transition-colors"
|
||||
>
|
||||
GitHub
|
||||
</a>
|
||||
</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user