mirror of
https://github.com/soconnor0919/lewisburg-coffee.git
synced 2026-02-04 23:56:32 -05:00
60 lines
1.5 KiB
TypeScript
60 lines
1.5 KiB
TypeScript
import "~/styles/globals.css";
|
|
|
|
import { type Metadata, type Viewport } from "next";
|
|
import { PT_Serif } from "next/font/google";
|
|
|
|
import { ThemeProvider } from "~/components/ThemeProvider";
|
|
import { CopyrightFooter } from "~/components/CopyrightFooter";
|
|
import { env } from "~/env";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Lewisburg Coffee Map",
|
|
description: "Interactive map of coffee shops in Lewisburg, PA",
|
|
// icons are automatically handled by file conventions in src/app/
|
|
};
|
|
|
|
export const viewport: Viewport = {
|
|
themeColor: "#8B4513",
|
|
width: "device-width",
|
|
initialScale: 1,
|
|
maximumScale: 1,
|
|
userScalable: false,
|
|
};
|
|
|
|
const ptSerif = PT_Serif({
|
|
subsets: ["latin"],
|
|
weight: ["400", "700"],
|
|
variable: "--font-pt-serif",
|
|
});
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{ children: React.ReactNode }>) {
|
|
return (
|
|
<html lang="en" className={`${ptSerif.variable} `} suppressHydrationWarning>
|
|
<head>
|
|
{/* only load analytics on production */}
|
|
{process.env.NODE_ENV === "production" && (
|
|
<script
|
|
defer
|
|
src={env.NEXT_PUBLIC_UMAMI_SCRIPT_URL}
|
|
data-website-id={env.NEXT_PUBLIC_UMAMI_WEBSITE_ID}
|
|
/>
|
|
)}
|
|
</head>
|
|
<body>
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
{children}
|
|
<CopyrightFooter />
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
|
|
);
|
|
}
|