working now, layout.tsx has issues

This commit is contained in:
2024-11-20 17:08:05 -05:00
parent f17285db46
commit 4de7d55b55
67 changed files with 43 additions and 27 deletions

34
src/app/layout-test.tsx Normal file
View File

@@ -0,0 +1,34 @@
import type { Metadata } from "next";
import localFont from "next/font/local";
import { Providers } from './providers'
import "./globals.css";
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",
});
export const metadata: Metadata = {
title: "Ballistic Builder",
description: "Freedom On",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className={`${geistSans.variable} ${geistMono.variable} antialiased`} >
{/* <Providers>{children}</Providers> */}
</body>
</html>
);
}

View File

@@ -1,34 +1,16 @@
import type { Metadata } from "next"; export const metadata = {
import localFont from "next/font/local"; title: 'Next.js',
import { Providers } from './providers' description: 'Generated by Next.js',
import "./globals.css"; }
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",
});
export const metadata: Metadata = {
title: "Ballistic Builder",
description: "Freedom On",
};
export default function RootLayout({ export default function RootLayout({
children, children,
}: Readonly<{ }: {
children: React.ReactNode; children: React.ReactNode
}>) { }) {
return ( return (
<html lang="en"> <html lang="en">
<body className={`${geistSans.variable} ${geistMono.variable} antialiased`} > <body>{children}</body>
<Providers>{children}</Providers>
</body>
</html> </html>
); )
} }