From fe02b86b1b4d673d80587a5efe8918efea2fad41 Mon Sep 17 00:00:00 2001 From: tuna2134 Date: Mon, 6 Apr 2026 03:40:07 +0000 Subject: [PATCH] feat: refactor layout to use SiteHeader component --- app/layout.tsx | 18 ++---------------- components/site-header.tsx | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 16 deletions(-) create mode 100644 components/site-header.tsx diff --git a/app/layout.tsx b/app/layout.tsx index ae381a0..284ab94 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,8 +1,8 @@ import type { Metadata } from "next"; import { Geist, Geist_Mono, Inter } from "next/font/google"; -import Link from "next/link"; import "./globals.css"; import { cn } from "@/lib/utils"; +import { SiteHeader } from "@/components/site-header"; const inter = Inter({subsets:['latin'],variable:'--font-sans'}); @@ -32,21 +32,7 @@ export default function RootLayout({ className={cn("h-full", "antialiased", geistSans.variable, geistMono.variable, "font-sans", inter.variable)} > -
-
- - Takasumi-Neodyマイクラサーバプロジェクト - - -
-
+ {children} diff --git a/components/site-header.tsx b/components/site-header.tsx new file mode 100644 index 0000000..9611f81 --- /dev/null +++ b/components/site-header.tsx @@ -0,0 +1,30 @@ +import Link from "next/link"; + +export function SiteHeader() { + return ( +
+
+ + Takasumi-Neodyマイクラサーバプロジェクト + + +
+
+ ); +}