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
e6f64f1ec7
commit
3b6d2ca3dc
|
|
@ -2,6 +2,7 @@ import type { Metadata } from 'next'
|
|||
import { Inter, JetBrains_Mono } from 'next/font/google'
|
||||
import './globals.css'
|
||||
import { Providers } from '@/providers'
|
||||
import { Header } from '@/components/Header'
|
||||
|
||||
const inter = Inter({ subsets: ['latin'], variable: '--font-inter' })
|
||||
const jetbrainsMono = JetBrains_Mono({ subsets: ['latin'], variable: '--font-mono' })
|
||||
|
|
@ -26,6 +27,7 @@ export default function RootLayout({
|
|||
</head>
|
||||
<body className="bg-gray-900 min-h-screen text-gray-100">
|
||||
<Providers>
|
||||
<Header current="cal" />
|
||||
{children}
|
||||
</Providers>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -1,30 +1,9 @@
|
|||
import Link from 'next/link'
|
||||
import { Header } from '@/components/Header'
|
||||
import { EcosystemFooter } from '@/components/EcosystemFooter'
|
||||
|
||||
export default function LandingPage() {
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-950 text-gray-100">
|
||||
<Header
|
||||
current="cal"
|
||||
actions={
|
||||
<>
|
||||
<Link
|
||||
href="/calendar"
|
||||
className="text-sm text-gray-400 hover:text-white transition-colors"
|
||||
>
|
||||
Demo
|
||||
</Link>
|
||||
<Link
|
||||
href="/calendar"
|
||||
className="text-sm px-4 py-2 bg-blue-600 hover:bg-blue-500 rounded-lg transition-colors font-medium text-white"
|
||||
>
|
||||
Create Calendar
|
||||
</Link>
|
||||
</>
|
||||
}
|
||||
/>
|
||||
|
||||
{/* Hero */}
|
||||
<section className="px-6 py-20 text-center">
|
||||
<div className="mx-auto max-w-3xl">
|
||||
|
|
|
|||
Loading…
Reference in New Issue