52 lines
1.2 KiB
TypeScript
52 lines
1.2 KiB
TypeScript
import type { Metadata, Viewport } from "next";
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
import Script from "next/script";
|
|
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 = {
|
|
title: "Hördle",
|
|
description: "Daily music guessing game - Guess the song from short audio clips",
|
|
};
|
|
|
|
export const viewport: Viewport = {
|
|
themeColor: "#000000",
|
|
width: "device-width",
|
|
initialScale: 1,
|
|
maximumScale: 1,
|
|
};
|
|
|
|
import InstallPrompt from "@/components/InstallPrompt";
|
|
import AppFooter from "@/components/AppFooter";
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en">
|
|
<body className={`${geistSans.variable} ${geistMono.variable}`}>
|
|
<Script
|
|
defer
|
|
data-domain="hoerdle.elpatron.me"
|
|
src="https://plausible.elpatron.me/js/script.js"
|
|
strategy="afterInteractive"
|
|
/>
|
|
{children}
|
|
<InstallPrompt />
|
|
<AppFooter />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|