Refactor code structure for improved readability and maintainability

This commit is contained in:
암냥 2025-11-23 17:46:38 +09:00
commit 3c600c06f9
11 changed files with 47 additions and 130 deletions

View file

@ -1,16 +1,33 @@
import BlogList from "@/components/BlogList";
import NeoFetch from "@/components/NeoFetch";
import Projects from "@/components/Projects";
import TimelineComponent from "@/components/timeline";
import Top from "@/components/Top";
import Image from "next/image";
export default async function BlogIndex() {
return (
<main className="min-h-screen">
<Top />
<section id="terminal" className="h-screen">
<NeoFetch />
<div className="px-12 mt-8">
<main className="min-h-screen w-screen">
<section id="top" className="max-w-3xl w-full mx-auto px-4">
<div className="flex flex-row items-center w-full h-full gap-6 mt-8">
<Image
src="/Frame.svg"
alt="logo"
className="w-fit h-fit"
width={30}
height={30}
/>
<h1 className="font-ntype text-3xl">
<a href="mailto:me@imnya.ng">me@imnya.ng</a>
</h1>
</div>
<figure className="my-8 w-full h-auto">
<picture className="block bg-gray-100 rounded-xl aspect-3-2 overflow-hidden image-scale object-shadowed mt-8">
<Image src="/1500x500.jpg" alt="test image" className="object-cover object-center transition-transform duration-300 hover:scale-105" width={3168} height={1344} />
</picture>
</figure>
</section>
<section id="about" className="h-screen max-w-3xl mx-auto px-4">
<div className=" mt-8">
<h1 className="text-2xl font-bold mb-4 w-full">💕 About</h1>
<p> <strong> </strong> <strong>, </strong> .</p>
<p><strong> </strong> , .</p>
@ -23,9 +40,7 @@ export default async function BlogIndex() {
</div>
<TimelineComponent />
<div className="px-12 mt-8 w-full lg:w-2/3 xl:w-1/2">
<BlogList />
</div>
</section>
</main>
);