75 lines
2.0 KiB
TypeScript
75 lines
2.0 KiB
TypeScript
import "@/styles/globals.css";
|
|
import { Metadata } from "next";
|
|
import { siteConfig } from "@/config/site";
|
|
import { fontSans } from "@/config/fonts";
|
|
import { Providers } from "./providers";
|
|
import { Navbar } from "@/components/navbar";
|
|
import { Link } from "@nextui-org/link";
|
|
import clsx from "clsx";
|
|
import Image from "next/image";
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
default: siteConfig.name,
|
|
template: `%s - ${siteConfig.name}`,
|
|
},
|
|
description: siteConfig.description,
|
|
themeColor: [
|
|
{ media: "(prefers-color-scheme: light)", color: "white" },
|
|
{ media: "(prefers-color-scheme: dark)", color: "black" },
|
|
],
|
|
icons: {
|
|
icon: "/favicon.ico",
|
|
shortcut: "/favicon-16x16.png",
|
|
apple: "/apple-touch-icon.png",
|
|
},
|
|
};
|
|
|
|
export default 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: "light" }}>
|
|
<div className=" ">
|
|
<Navbar />
|
|
<main className=" w-screen pt-2 flex-grow">
|
|
{children}
|
|
</main>
|
|
<footer className="bg-[#1A328E] h-auto md:h-24 gap-2 md:gap-3 flex justify-evenly md:justify-center text-[10px] md:text-lg font-normal md:font-semibold items-center text-white">
|
|
<div className="flex flex-col md:flex-row space-x-0 md:space-x-3">
|
|
<div>FAQ</div>
|
|
<div>ABOUT</div>
|
|
<div>TERM AND CONDITION</div>
|
|
</div>
|
|
<div>
|
|
<Image
|
|
src="/paslon01.png"
|
|
className="p-2 md:p-0"
|
|
alt="logo"
|
|
width={100}
|
|
height={120}
|
|
/>
|
|
</div>
|
|
<div className="flex flex-col md:flex-row space-x-0 md:space-x-3">
|
|
<div>PRIVACY POLICY</div>
|
|
<div>CONTACT US</div>
|
|
<div>LAPOR KAMPANYE</div>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
</Providers>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|