feat: initialize project with Tailwind CSS, TypeScript, and basic layout

- Add globals.css to import Tailwind CSS styles
- Create layout.tsx for the root layout with metadata and font integration
- Implement Header component with title and subtitle
- Set up tsconfig.json for TypeScript configuration
This commit is contained in:
tuna2134
2026-05-26 08:41:56 +09:00
commit dcf4255535
20 changed files with 1382 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import Header from "@/components/Header";
interface LayoutProps {
children: React.ReactNode;
}
const Layout: React.FC<LayoutProps> = ({ children }) => {
return (
<>
<Header />
{children}
</>
);
}
export default Layout;

10
src/app/(pages)/page.tsx Normal file
View File

@@ -0,0 +1,10 @@
import Image from "next/image";
import { NextPage } from "next";
const Home: NextPage = () => {
return (
<p>hello</p>
);
}
export default Home;

BIN
src/app/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

1
src/app/globals.css Normal file
View File

@@ -0,0 +1 @@
@import "tailwindcss";

33
src/app/layout.tsx Normal file
View File

@@ -0,0 +1,33 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "tuna2134",
description: "tuna2134 personal website",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html
lang="ja"
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
>
<body className="min-h-full flex flex-col bg-black text-white">{children}</body>
</html>
);
}

10
src/components/Header.tsx Normal file
View File

@@ -0,0 +1,10 @@
const Header: React.FC = () => {
return (
<header className="w-full flex flex-col items-center gap-1 py-4 border-b border-gray-400">
<small className="text-sm">tuna2134の休憩</small>
<h1 className="text-4xl font-bold">tuna2134</h1>
</header>
)
}
export default Header;