feat: add project files
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Playfair_Display, Lato } from "next/font/google";
|
||||
import "../globals.css";
|
||||
|
||||
const playfair = Playfair_Display({
|
||||
variable: "--font-playfair",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
const lato = Lato({
|
||||
variable: "--font-lato",
|
||||
subsets: ["latin"],
|
||||
weight: ["300", "400", "700", "900"],
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Moy Beach Akyaka | Lüks & Huzur",
|
||||
description: "Akyaka'nın kalbinde doğayla iç içe lüks bir beach, restoran ve otel deneyimi.",
|
||||
};
|
||||
|
||||
export async function generateStaticParams() {
|
||||
return [{ lang: 'tr' }, { lang: 'en' }];
|
||||
}
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
params,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
params: { lang: string };
|
||||
}>) {
|
||||
return (
|
||||
<html lang={params.lang} className="scroll-smooth">
|
||||
<body className={`${lato.variable} ${playfair.variable} antialiased`}>
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
import Header from "@/components/Header";
|
||||
import Hero from "@/components/Hero";
|
||||
import About from "@/components/About";
|
||||
import Services from "@/components/Services";
|
||||
import Gallery from "@/components/Gallery";
|
||||
import InstagramFeed from "@/components/InstagramFeed";
|
||||
import Contact from "@/components/Contact";
|
||||
import Footer from "@/components/Footer";
|
||||
import { getDictionary } from "../dictionaries";
|
||||
|
||||
export default async function Home({ params: { lang } }: { params: { lang: string } }) {
|
||||
const dict = await getDictionary(lang);
|
||||
|
||||
return (
|
||||
<main className="min-h-screen bg-brand-white">
|
||||
<Header dict={dict} lang={lang} />
|
||||
<Hero dict={dict} />
|
||||
<About dict={dict} />
|
||||
<Services dict={dict} />
|
||||
<Gallery dict={dict} />
|
||||
<InstagramFeed dict={dict} />
|
||||
<Contact dict={dict} />
|
||||
<Footer dict={dict} />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user