From 1937bc3a2f035dd4c98f2915fbb9f4ffd3bb1cff Mon Sep 17 00:00:00 2001 From: geun <1416geun@naver.com> Date: Wed, 13 May 2026 16:25:31 +0900 Subject: [PATCH] sub --- src/components/SubHero.jsx | 64 ++++++++++++++++++++------------- src/pages/company/AboutPage.jsx | 20 ++++++++++- 2 files changed, 58 insertions(+), 26 deletions(-) diff --git a/src/components/SubHero.jsx b/src/components/SubHero.jsx index 49a73ed..ee76f23 100644 --- a/src/components/SubHero.jsx +++ b/src/components/SubHero.jsx @@ -9,39 +9,53 @@ const menuMap = { "/contact": { label: "Contact Us" }, }; -export default function SubHero({ title, desc, navItems }) { +export default function SubHero({ title, desc, navItems, rightSlot }) { const { pathname } = useLocation(); const titleLines = typeof title === "string" ? title.split("\n") : [title]; return ( <> -
+
- {menuMap["/" + pathname.split("/")[1]]?.label} +
+ + {menuMap["/" + pathname.split("/")[1]]?.label} + -

- {titleLines.map((line, li) => ( - - {line.split("").map((char, ci) => ( - - {char === " " ? "\u00A0" : char} - - ))} - - ))} -

+

+ {titleLines.map((line, li) => ( + + {line.split("").map((char, ci) => ( + + {char === " " ? "\u00A0" : char} + + ))} + + ))} +

+ + {desc && ( + + {desc} + + )} +
- {desc &&

{desc}

} + {rightSlot && ( + + {rightSlot} + + )}
diff --git a/src/pages/company/AboutPage.jsx b/src/pages/company/AboutPage.jsx index ab0269e..f5da47f 100644 --- a/src/pages/company/AboutPage.jsx +++ b/src/pages/company/AboutPage.jsx @@ -6,6 +6,24 @@ import SubHero from "../../components/SubHero"; gsap.registerPlugin(ScrollTrigger); +const HERO_STATS = [ + { num: "2010", label: "설립연도" }, + { num: "50+", label: "완료 프로젝트" }, + { num: "15+", label: "주요 고객사" }, + { num: "10+", label: "R&D 전문인력" }, +]; + +const heroRight = ( +
+ {HERO_STATS.map((s) => ( +
+ {s.num} + {s.label} +
+ ))} +
+); + const COMPANY_NAV = [ { label: "회사소개", to: "/company/about" }, { label: "연혁", to: "/company/history" }, @@ -153,7 +171,7 @@ export default function AboutPage() { return (
- + {/* ── STATS ── */}