This commit is contained in:
tuna2134
2026-05-26 12:59:00 +09:00
parent 4b91d2ea8a
commit 168df53f19
9 changed files with 27 additions and 9 deletions

View File

@@ -8,7 +8,9 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
return (
<>
<Header />
{children}
<main className="flex-1 w-full max-w-3xl mx-auto px-4 py-8">
{children}
</main>
</>
);
};

View File

@@ -1,8 +1,27 @@
import Image from "next/image";
import { NextPage } from "next";
import Image from "next/image";
const Home: NextPage = () => {
return <p>hello</p>;
return (
<>
<div className="w-full flex items-center gap-4 py-8">
<Image
src="/images/icon.png"
alt="icon"
width={128}
height={128}
className="rounded-full"
/>
<div>
<h2 className="text-2xl font-bold"></h2>
<p>
tuna2134です
</p>
</div>
</div>
<p>hello</p>
</>
);
};
export default Home;

View File

@@ -1,8 +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>
<small className="text-sm text-gray-400/90">
tuna2134の個人的な憩いの場
</small>
</header>
);
};