From c9410191a9678a160828ee058e48dee99ef48d93 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Thu, 23 Apr 2026 00:26:48 +0200 Subject: [PATCH] minor adjustment, removed repetetive code --- frontend/src/pages/Home.jsx | 108 +++++++++++++++--------------------- 1 file changed, 44 insertions(+), 64 deletions(-) diff --git a/frontend/src/pages/Home.jsx b/frontend/src/pages/Home.jsx index db6b305..3a0a197 100644 --- a/frontend/src/pages/Home.jsx +++ b/frontend/src/pages/Home.jsx @@ -3,6 +3,24 @@ import { useState } from "react"; export default function Home() { const [active, setActive] = useState("projects"); + const sections = [ + { + id: "projects", + title: "Projects", + content: "Project content", + }, + { + id: "systems", + title: "Systems", + content: "Systems content", + }, + { + id: "about", + title: "About", + content: "About content", + }, + ]; + return (
@@ -22,73 +40,35 @@ export default function Home() {
- - - - - + {sections.map((section) => ( + + ))}
-
-

- Projects -

-

Project content

-
- -
-

- Systems -

-

Systems content

-
- -
-

- About -

-

About content

-
+ {sections.map((section) => ( +
+

+ {section.title} +

+

{section.content}

+
+ ))}