91 lines
2.3 KiB
TypeScript
91 lines
2.3 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
import { SessionProvider } from "@/components/providers/session-provider";
|
|
import { Navbar } from "@/components/shared/navbar";
|
|
import { ProfileNudgeBanner } from "@/components/shared/profile-nudge-banner";
|
|
import { siteConfig, siteUrl } from "@/lib/site";
|
|
import "./globals.css";
|
|
|
|
const geistSans = Geist({
|
|
variable: "--font-geist-sans",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase: new URL(siteUrl),
|
|
title: {
|
|
default: `${siteConfig.name} — Cari Teman Trip & Aktivitas, Pergi Bareng`,
|
|
template: `%s · ${siteConfig.name}`,
|
|
},
|
|
description: siteConfig.description,
|
|
applicationName: siteConfig.name,
|
|
keywords: [...siteConfig.keywords],
|
|
authors: [{ name: siteConfig.name }],
|
|
creator: siteConfig.name,
|
|
publisher: siteConfig.name,
|
|
alternates: { canonical: "/" },
|
|
openGraph: {
|
|
type: "website",
|
|
locale: "id_ID",
|
|
url: "/",
|
|
siteName: siteConfig.name,
|
|
title: `${siteConfig.name} — Cari Teman Trip & Aktivitas, Pergi Bareng`,
|
|
description: siteConfig.description,
|
|
images: [
|
|
{
|
|
url: "/images/SeTrip.png",
|
|
width: 1200,
|
|
height: 630,
|
|
alt: `${siteConfig.name} — ${siteConfig.slogan}`,
|
|
},
|
|
],
|
|
},
|
|
twitter: {
|
|
card: "summary_large_image",
|
|
title: `${siteConfig.name} — Cari Teman Trip & Aktivitas, Pergi Bareng`,
|
|
description: siteConfig.description,
|
|
images: ["/images/SeTrip.png"],
|
|
},
|
|
robots: {
|
|
index: true,
|
|
follow: true,
|
|
googleBot: {
|
|
index: true,
|
|
follow: true,
|
|
"max-image-preview": "large",
|
|
"max-snippet": -1,
|
|
},
|
|
},
|
|
icons: {
|
|
icon: "/SeTrip.ico",
|
|
apple: "/images/SeTrip.png",
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html
|
|
lang="id"
|
|
data-scroll-behavior="smooth"
|
|
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
|
>
|
|
<body className="flex min-h-full flex-col bg-neutral-50">
|
|
<SessionProvider>
|
|
<Navbar />
|
|
<ProfileNudgeBanner />
|
|
<main className="flex-1">{children}</main>
|
|
</SessionProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|