From c27564efa39590d4f3d74e0998e64a9f55dc5c8c Mon Sep 17 00:00:00 2001 From: datalore Date: Tue, 13 Feb 2024 01:21:23 +0100 Subject: [PATCH] change: Moved layout to layout.tsx --- src/app/layout.tsx | 37 ++++++++++++++++++++++++++++++------- src/app/page.tsx | 24 +----------------------- 2 files changed, 31 insertions(+), 30 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 1af72a1..c0d80b7 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,4 +1,5 @@ import type { Metadata } from 'next' +import ThemeSwitcher from './components/themeswitcher' import './globals.css' export const metadata: Metadata = { @@ -7,13 +8,35 @@ export const metadata: Metadata = { } export default function RootLayout({ - children, + children, }: { - children: React.ReactNode + children: React.ReactNode }) { - return ( - - {children} - - ) + return ( + + +
+
+ Buzzword Bingov{process.env.npm_package_version} +
+
+ +
+
+
+ {children} +
+ + + ); } diff --git a/src/app/page.tsx b/src/app/page.tsx index 6413f75..9630b7c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -3,28 +3,6 @@ import ThemeSwitcher from './components/themeswitcher' export default function Home(){ return( - <> -
-
- Buzzword Bingov{process.env.npm_package_version} -
-
- -
-
-
- -
- + ); }