mirror of
https://github.com/tuna2134/cecilia.git
synced 2026-07-25 22:51:35 +00:00
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:
16
src/app/(pages)/layout.tsx
Normal file
16
src/app/(pages)/layout.tsx
Normal 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
10
src/app/(pages)/page.tsx
Normal 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
BIN
src/app/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
1
src/app/globals.css
Normal file
1
src/app/globals.css
Normal file
@@ -0,0 +1 @@
|
||||
@import "tailwindcss";
|
||||
33
src/app/layout.tsx
Normal file
33
src/app/layout.tsx
Normal 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
10
src/components/Header.tsx
Normal 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;
|
||||
Reference in New Issue
Block a user