Files
Tech_Tracker_Web/src/app/layout.tsx
T

54 lines
1.2 KiB
TypeScript
Raw Normal View History

2024-07-19 09:10:46 -05:00
import "~/styles/globals.css";
2024-07-19 09:30:16 -05:00
import { Inter as FontSans } from "next/font/google";
import { cn } from "~/lib/utils";
2024-07-19 12:08:09 -05:00
import { SessionProvider } from "next-auth/react";
2024-07-23 11:33:29 -05:00
import { TVModeProvider } from "~/components/context/TVModeContext";
2024-07-19 09:10:46 -05:00
2024-07-19 09:30:16 -05:00
import { type Metadata } from "next";
2024-07-19 09:10:46 -05:00
export const metadata: Metadata = {
2024-07-19 12:08:09 -05:00
title: "Tech Tracker",
2024-07-21 21:12:34 -05:00
description: "App used by COG IT employees to \
update their status throughout the day.",
icons: [
{
rel: 'icon',
url: '/favicon.ico',
},
{
rel: 'icon',
type: 'image/png',
sizes: '32x32',
url: '/images/tech_tracker_favicon.png',
},
{
rel: 'apple-touch-icon',
2024-07-23 15:28:11 -05:00
url: '/imges/tech_tracker_appicon.png',
},
],
2024-07-19 09:10:46 -05:00
};
2024-07-19 12:08:09 -05:00
const fontSans = FontSans({
subsets: ["latin"],
variable: "--font-sans",
});
2024-07-19 09:10:46 -05:00
export default function RootLayout({
children,
}: Readonly<{ children: React.ReactNode }>) {
return (
2024-07-19 09:30:16 -05:00
<html lang="en">
<body
className={cn(
"min-h-screen bg-background font-sans antialiased",
2024-07-19 12:08:09 -05:00
fontSans.variable)}
2024-07-19 09:30:16 -05:00
>
2024-07-19 12:08:09 -05:00
<SessionProvider>
2024-07-23 11:33:29 -05:00
<TVModeProvider>
{children}
</TVModeProvider>
2024-07-19 12:08:09 -05:00
</SessionProvider>
2024-07-19 09:30:16 -05:00
</body>
2024-07-19 09:10:46 -05:00
</html>
);
}