From f238273f701e88679e3997b5ad0f6795a61986b9 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 13 Oct 2024 15:05:09 +0800 Subject: add(layout,performance): added performance.tsx component to layout --- app/layout.tsx | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index ac202e0..baa8efc 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,3 +1,5 @@ +// "use client" + import type { Metadata } from "next"; // import { Inter, Audiowide, Rock_Salt, Monoton, JetBrains_Mono } from 'next/font/google' import "./styles.css"; @@ -5,6 +7,7 @@ import { ThemeProvider } from "@/components/theme-provider" import Header from "@/components/header"; import { MonotonFont, RockSaltFont, InterFont, JetBrainsMonoFont } from "./lib/fonts"; import { Analytics } from "@vercel/analytics/react" +import Performance from "@/components/performance"; // const programFont = localFont({ // src: "/fonts/LigaJetBrainsMonoNerdFont-Regular.ttf" @@ -36,15 +39,16 @@ export const metadata: Metadata = { }; export default function RootLayout({children,}: Readonly<{children: React.ReactNode;}>) { - return ( - - -
- - {children} - - - - - ); + return ( + + +
+ + {children} + + + + + + ); } -- cgit v1.2.3