45 lines
1.0 KiB
TypeScript
45 lines
1.0 KiB
TypeScript
import type { Metadata } from "next";
|
|
import Script from "next/script";
|
|
import "./globals.css";
|
|
import { ebookMeta } from "@/content/ebook";
|
|
|
|
export const metadata: Metadata = {
|
|
title: `${ebookMeta.title} — Free Digital Nomad Ebook`,
|
|
description: ebookMeta.subtitle,
|
|
keywords: [
|
|
"digital nomad",
|
|
"remote work",
|
|
"work from anywhere",
|
|
"nomad visa",
|
|
"location independent",
|
|
],
|
|
openGraph: {
|
|
title: `${ebookMeta.title} — Digital Nomad Guide`,
|
|
description: ebookMeta.subtitle,
|
|
type: "website",
|
|
locale: "en_US",
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html
|
|
lang="en"
|
|
suppressHydrationWarning
|
|
className="h-full scroll-smooth antialiased"
|
|
>
|
|
<body className="min-h-full font-sans">
|
|
<Script src="/theme.js" strategy="beforeInteractive" />
|
|
<div className="mesh-bg" aria-hidden>
|
|
<div className="mesh-orb mesh-orb--accent" />
|
|
</div>
|
|
{children}
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|