alpha wip

This commit is contained in:
2025-12-03 00:46:08 +01:00
parent 3b55fd1a63
commit 97e29d3d80
51 changed files with 6321 additions and 237 deletions

View File

@@ -1,5 +1,9 @@
import type { Metadata } from 'next';
import './globals.css';
import { getAppMode } from '@/lib/mode';
import { AlphaNav } from '@/components/alpha/AlphaNav';
import AlphaBanner from '@/components/alpha/AlphaBanner';
import AlphaFooter from '@/components/alpha/AlphaFooter';
export const metadata: Metadata = {
title: 'GridPilot - iRacing League Racing Platform',
@@ -33,6 +37,26 @@ export default function RootLayout({
}: {
children: React.ReactNode;
}) {
const mode = getAppMode();
if (mode === 'alpha') {
return (
<html lang="en" className="scroll-smooth overflow-x-hidden">
<head>
<meta name="mobile-web-app-capable" content="yes" />
</head>
<body className="antialiased overflow-x-hidden min-h-screen bg-deep-graphite flex flex-col">
<AlphaNav />
<AlphaBanner />
<main className="flex-1 max-w-7xl mx-auto px-6 py-8 w-full">
{children}
</main>
<AlphaFooter />
</body>
</html>
);
}
return (
<html lang="en" className="scroll-smooth overflow-x-hidden">
<head>