refactor: Move Navbar and Footer to global RootLayout, deduplicating page imports
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import { getTranslations, setRequestLocale } from 'next-intl/server'
|
||||
import Navbar from '@/components/Navbar'
|
||||
import Footer from '@/components/Footer'
|
||||
import ContactForm from './ContactForm'
|
||||
|
||||
interface ContactPageProps {
|
||||
@@ -16,7 +14,6 @@ export default async function ContactPage({ params }: ContactPageProps) {
|
||||
|
||||
return (
|
||||
<div className="flex-1 flex flex-col min-h-screen bg-stone text-ink">
|
||||
<Navbar />
|
||||
|
||||
<main className="max-w-xl mx-auto px-4 sm:px-6 lg:px-8 py-12 flex-1 w-full">
|
||||
<div className="bg-paper p-8 rounded-3xl border border-pine/8 shadow-sm">
|
||||
@@ -44,8 +41,6 @@ export default async function ContactPage({ params }: ContactPageProps) {
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<Footer />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user