refactor: move Header to layout for all sub-routes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d068f8b513
commit
3997ab2fa2
|
|
@ -2,6 +2,7 @@ import type { Metadata } from 'next'
|
||||||
import localFont from 'next/font/local'
|
import localFont from 'next/font/local'
|
||||||
import './globals.css'
|
import './globals.css'
|
||||||
import { AuthProvider } from '@/components/AuthProvider'
|
import { AuthProvider } from '@/components/AuthProvider'
|
||||||
|
import { Header } from '@/components/Header'
|
||||||
|
|
||||||
const geistSans = localFont({
|
const geistSans = localFont({
|
||||||
src: './fonts/GeistVF.woff',
|
src: './fonts/GeistVF.woff',
|
||||||
|
|
@ -37,6 +38,7 @@ export default function RootLayout({
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
|
<body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
|
||||||
<AuthProvider>
|
<AuthProvider>
|
||||||
|
<Header current="tube" />
|
||||||
{children}
|
{children}
|
||||||
</AuthProvider>
|
</AuthProvider>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
28
app/page.tsx
28
app/page.tsx
|
|
@ -1,37 +1,9 @@
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import { Header } from '@/components/Header'
|
|
||||||
import { EcosystemFooter } from '@/components/EcosystemFooter'
|
import { EcosystemFooter } from '@/components/EcosystemFooter'
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900 text-white">
|
<div className="min-h-screen bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900 text-white">
|
||||||
{/* Nav */}
|
|
||||||
<Header
|
|
||||||
current="tube"
|
|
||||||
actions={
|
|
||||||
<>
|
|
||||||
<Link
|
|
||||||
href="/demo"
|
|
||||||
className="text-sm text-slate-300 hover:text-white transition-colors"
|
|
||||||
>
|
|
||||||
Demo
|
|
||||||
</Link>
|
|
||||||
<Link
|
|
||||||
href="/live"
|
|
||||||
className="text-sm px-4 py-2 bg-red-600 hover:bg-red-500 rounded-lg transition-colors font-medium"
|
|
||||||
>
|
|
||||||
Go Live
|
|
||||||
</Link>
|
|
||||||
<a
|
|
||||||
href="https://auth.ridentity.online"
|
|
||||||
className="text-sm text-slate-300 hover:text-white transition-colors"
|
|
||||||
>
|
|
||||||
Sign In
|
|
||||||
</a>
|
|
||||||
</>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
|
|
||||||
{/* Hero */}
|
{/* Hero */}
|
||||||
<section className="max-w-6xl mx-auto px-6 pt-20 pb-16">
|
<section className="max-w-6xl mx-auto px-6 pt-20 pb-16">
|
||||||
<div className="text-center max-w-3xl mx-auto">
|
<div className="text-center max-w-3xl mx-auto">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue