First design of frontpage

This commit is contained in:
2024-10-04 01:54:27 +00:00
parent 154b93e267
commit 5a950f6851
170 changed files with 9412 additions and 143 deletions

View File

@ -1,35 +1,29 @@
import type { Metadata } from "next";
import localFont from "next/font/local";
import "./globals.css";
import { Open_Sans } from 'next/font/google';
import Footer from "./components/footer";
import Header from "./components/header";
const geistSans = localFont({
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
});
const geistMono = localFont({
src: "./fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
});
const openSans = Open_Sans({ subsets: ['latin'] });
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
export const metadata = {
title: 'My Website',
description: 'Website description here',
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
const RootLayout = ({ children }: { children: React.ReactNode }) => {
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children}
<body className={openSans.className}>
<div className="flex flex-col min-h-screen">
<Header />
<main className="flex-grow">
{children}
</main>
<Footer />
</div>
</body>
</html>
);
}
};
export default RootLayout;