refactor: Move Navbar and Footer to global RootLayout, deduplicating page imports
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import { getTranslations, setRequestLocale } from 'next-intl/server'
|
||||
import { mockDb } from '@/lib/mockDb'
|
||||
import Navbar from '@/components/Navbar'
|
||||
import Footer from '@/components/Footer'
|
||||
import ListingCard from '@/components/ListingCard'
|
||||
import { Link } from '@/i18n/routing'
|
||||
import { Search, MapPin, CheckCircle, ArrowRight } from 'lucide-react'
|
||||
@@ -42,7 +40,6 @@ export default async function HomePage({ params }: { params: Promise<{ locale: s
|
||||
|
||||
return (
|
||||
<div className="flex-1 flex flex-col min-h-screen bg-stone text-ink">
|
||||
<Navbar />
|
||||
|
||||
{/* Hero Section */}
|
||||
<section className="bg-pine text-stone pt-20 pb-24 relative overflow-hidden">
|
||||
@@ -241,8 +238,6 @@ export default async function HomePage({ params }: { params: Promise<{ locale: s
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<Footer />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user