From 707fbdb4a24ddfbae83b97138e8dbf6647b0497b Mon Sep 17 00:00:00 2001 From: Udoh Jeremiah Date: Sat, 4 Nov 2023 13:51:11 +0100 Subject: [PATCH] Add code for website's root layout --- src/app/layout.jsx | 33 ++++++++++++++++---- src/components/Footer.jsx | 3 ++ src/components/Header.jsx | 3 ++ src/providers/ThemeProvider.jsx | 54 +++++++++++++++++++++++++++++++++ tailwind.config.js | 6 +++- 5 files changed, 92 insertions(+), 7 deletions(-) create mode 100644 src/components/Footer.jsx create mode 100644 src/components/Header.jsx create mode 100644 src/providers/ThemeProvider.jsx diff --git a/src/app/layout.jsx b/src/app/layout.jsx index 6fdd915..29b5d5f 100644 --- a/src/app/layout.jsx +++ b/src/app/layout.jsx @@ -1,9 +1,13 @@ import "./globals.css"; -import { Inter } from "next/font/google"; +import { Inter, Monoton } from "next/font/google"; +import { ThemeProvider } from "@/providers/ThemeProvider"; +import Header from "@/components/Header"; +import Footer from "@/components/Footer"; export const metadata = { - title: "", - description: "", + title: "Elevate Your Exams | ExamShare", + description: + "An open-source project for sharing past examination questions in higher education", }; const inter = Inter({ @@ -11,8 +15,25 @@ const inter = Inter({ display: "swap", }); +const monoton = Monoton({ + subsets: ["latin"], + display: "swap", + weight: "400", + variable: "--font-monoton", +}); + export default function RootLayout({ children }) { - - {children} - ; + return ( + + + +
+
{children}
+