first commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import Navbar from '@/components/Navbar';
|
||||
import Accommodation from '@/components/Accommodation';
|
||||
import Footer from '@/components/Footer';
|
||||
import WhatsAppButton from '@/components/WhatsAppButton';
|
||||
|
||||
export default async function AccommodationPage({
|
||||
params
|
||||
}: {
|
||||
params: Promise<{ locale: string }>
|
||||
}) {
|
||||
const { locale } = await params;
|
||||
|
||||
return (
|
||||
<main className="min-h-screen bg-sand selection:bg-coral selection:text-white flex flex-col">
|
||||
<Navbar locale={locale} />
|
||||
{/* Spacer to push content below fixed navbar */}
|
||||
<div className="flex-grow pt-24">
|
||||
<Accommodation />
|
||||
</div>
|
||||
<Footer />
|
||||
<WhatsAppButton />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
import { NextIntlClientProvider } from 'next-intl';
|
||||
import { getMessages } from 'next-intl/server';
|
||||
import { notFound } from 'next/navigation';
|
||||
import { routing } from '@/i18n/routing';
|
||||
import { Marcellus } from 'next/font/google';
|
||||
import '../globals.css';
|
||||
|
||||
const marcellus = Marcellus({
|
||||
subsets: ['latin'],
|
||||
variable: '--font-marcellus',
|
||||
weight: ['400'],
|
||||
});
|
||||
|
||||
export const metadata = {
|
||||
title: 'Kozmos Beach & More',
|
||||
description: 'Denizin Ormana Kıyısında — Akyaka, Gökova',
|
||||
};
|
||||
|
||||
export function generateStaticParams() {
|
||||
return routing.locales.map((locale) => ({ locale }));
|
||||
}
|
||||
|
||||
export default async function LocaleLayout({
|
||||
children,
|
||||
params,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
params: Promise<{ locale: string }>;
|
||||
}) {
|
||||
const { locale } = await params;
|
||||
|
||||
if (!routing.locales.includes(locale as any)) {
|
||||
notFound();
|
||||
}
|
||||
|
||||
const messages = await getMessages();
|
||||
|
||||
return (
|
||||
<html lang={locale} data-scroll-behavior="smooth" className={`${marcellus.variable}`}>
|
||||
<body className="bg-sand text-midnight font-body antialiased relative">
|
||||
<NextIntlClientProvider messages={messages}>
|
||||
{children}
|
||||
</NextIntlClientProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
import Navbar from '@/components/Navbar';
|
||||
import Hero from '@/components/Hero';
|
||||
import About from '@/components/About';
|
||||
import Accommodation from '@/components/Accommodation';
|
||||
import Beach from '@/components/Beach';
|
||||
import Dining from '@/components/Dining';
|
||||
import Events from '@/components/Events';
|
||||
import Gallery from '@/components/Gallery';
|
||||
import Contact from '@/components/Contact';
|
||||
import Footer from '@/components/Footer';
|
||||
import WhatsAppButton from '@/components/WhatsAppButton';
|
||||
|
||||
export default async function Page({
|
||||
params
|
||||
}: {
|
||||
params: Promise<{ locale: string }>
|
||||
}) {
|
||||
const { locale } = await params;
|
||||
|
||||
return (
|
||||
<main className="min-h-screen bg-cream selection:bg-turquoise selection:text-white">
|
||||
<Navbar locale={locale} />
|
||||
<Hero />
|
||||
<About />
|
||||
<Accommodation />
|
||||
<Beach />
|
||||
<Dining />
|
||||
<Events />
|
||||
<Gallery />
|
||||
<Contact />
|
||||
<Footer />
|
||||
<WhatsAppButton />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user