Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import "@/styles/globals.css";
- import { Metadata, Viewport } from "next";
- import { siteConfig } from "@/config/site";
- import { fontSans } from "@/config/fonts";
- import { Providers } from "./providers";
- import { Navbar } from "@/components/navbar";
- import clsx from "clsx";
- import { Toaster } from "@/components/ui/toaster";
- import NavbarLoader from "../components/navbarLoader";
- export const metadata: Metadata = {
- title: {
- default: siteConfig.name,
- template: `%s - ${siteConfig.name}`,
- },
- description: siteConfig.description,
- icons: {
- icon: "/favicon.ico",
- },
- };
- export const viewport: Viewport = {
- themeColor: [
- { media: "(prefers-color-scheme: light)", color: "white" },
- { media: "(prefers-color-scheme: dark)", color: "black" },
- ],
- };
- export default async function RootLayout({
- children,
- }: {
- children: React.ReactNode;
- }) {
- return (
- <html lang="en" suppressHydrationWarning>
- <head />
- <body
- className={clsx(
- "min-h-screen bg-background font-sans antialiased",
- fontSans.variable
- )}
- >
- <Providers themeProps={{ attribute: "class", defaultTheme: "dark" }}>
- <div className="relative flex flex-col h-screen">
- <NavbarLoader />
- <main className="container mx-auto max-w-7xl pt-36 px-6 flex-grow">
- {children}
- </main>
- </div>
- <footer
- className="absolute bottom-0 left-0 right-0 mx-auto my-3 justify-center z-10 font-bold text-center tracking-tight inline"
- style={{
- margin: "0",
- height: "70px",
- }}
- >
- <div className="absolute bottom-0 left-0 right-0">
- <p
- className={`${clsx(
- "font-clean",
- "data-[active=true]:text-opacity-100 data-[active=true]:font-medium",
- "rounded-md p-2 transition-colors duration-800",
- "text-white", // Text color
- "text-opacity-60", // Text opacity
- "text-base", // Font size
- "font-semibold", // Font weight
- "tracking-widest" // Letter spacing
- )}`}
- >
- </p>
- <p
- className={`${clsx(
- "font-clean",
- "data-[active=true]:text-opacity-100 data-[active=true]:font-medium",
- "rounded-md p-2 transition-colors duration-800",
- "text-white", // Text color
- "italic", // Italic
- "text-opacity-30", // Text opacity
- "text-base", // Font size
- "font-normal", // Font weight
- "tracking-normal", // Letter spacing
- "-mt-4" // Remove top margin
- )}`}
- >
- </p>
- </div>
- </footer>
- </Providers>
- <Toaster />
- </body>
- </html>
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment