misc: move files to root

This commit is contained in:
2026-04-15 17:29:11 -04:00
Unverified
parent 19aff04e60
commit c72bd9fff6
34 changed files with 127 additions and 15 deletions

40
app/layout.tsx Normal file
View File

@@ -0,0 +1,40 @@
import type { Metadata } from "next";
import "./globals.css";
import Celebration from "@/components/Celebration";
import Nav from "@/components/Nav";
import { ConnectionProvider } from "@/lib/connection";
import { CHIP_DROP_SOUND_PATHS } from "@/lib/sfx";
export const metadata: Metadata = {
title: "Connect4 Moderator",
description: "Watch matches, track tournaments, and play Connect4",
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<head>
{CHIP_DROP_SOUND_PATHS.map((path) => (
<link
key={path}
rel="preload"
href={path}
as="audio"
type="audio/ogg"
/>
))}
</head>
<body className="min-h-screen bg-gray-950 text-gray-100">
<ConnectionProvider>
<Celebration />
<Nav />
<main className="max-w-7xl mx-auto px-4 py-6">{children}</main>
</ConnectionProvider>
</body>
</html>
);
}