63 lines
1.3 KiB
TypeScript
63 lines
1.3 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
import ClientLayout from "@/components/ClientLayout";
|
|
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: "Prayer App",
|
|
description: "A personal prayer and praise journaling app",
|
|
manifest: "/manifest.json",
|
|
icons: {
|
|
icon: "/icon-192x192.png",
|
|
apple: "/icon-192x192.png",
|
|
},
|
|
};
|
|
|
|
// Add global CSS variable definitions
|
|
const themeStylesheet = `
|
|
:root {
|
|
--bg-primary: #f8fafc;
|
|
--bg-secondary: #f1f5f9;
|
|
--text-primary: #1e293b;
|
|
--text-secondary: #64748b;
|
|
--border-color: #e2e8f0;
|
|
}
|
|
|
|
html.dark {
|
|
--bg-primary: #0f172a;
|
|
--bg-secondary: #1e293b;
|
|
--text-primary: #f1f5f9;
|
|
--text-secondary: #cbd5e1;
|
|
--border-color: #334155;
|
|
}
|
|
`;
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" className="dark" suppressHydrationWarning={true}>
|
|
<head></head>
|
|
<body
|
|
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
|
>
|
|
<ClientLayout>
|
|
{children}
|
|
</ClientLayout>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|