diff --git a/public/images/testbg01.png b/public/images/testbg01.png new file mode 100644 index 0000000..9b06962 Binary files /dev/null and b/public/images/testbg01.png differ diff --git a/src/components/SubHero.jsx b/src/components/SubHero.jsx index 955c3c2..5b86095 100644 --- a/src/components/SubHero.jsx +++ b/src/components/SubHero.jsx @@ -105,8 +105,7 @@ function NetworkGlobe() { const d = Math.sqrt(dx * dx + dy * dy + dz * dz); if (d < 0.55) { const depth = (a.sz + b.sz) * 0.5; - const alpha = - Math.max(0, 0.05 + (depth + 1) * 0.1) * (1 - d / 0.55); + const alpha = Math.max(0, 0.05 + (depth + 1) * 0.1) * (1 - d / 0.55); const aHex = Math.round(Math.min(255, alpha * 255)) .toString(16) .padStart(2, "0"); @@ -135,14 +134,7 @@ function NetworkGlobe() { .toString(16) .padStart(2, "0"); - const glow = ctx.createRadialGradient( - n.sx, - n.sy, - 0, - n.sx, - n.sy, - r * 3.5, - ); + const glow = ctx.createRadialGradient(n.sx, n.sy, 0, n.sx, n.sy, r * 3.5); glow.addColorStop(0, n.color + gHex); glow.addColorStop(1, n.color + "00"); ctx.beginPath(); @@ -180,12 +172,7 @@ function NetworkGlobe() { function TitleLine({ children, delay }) { return ( - + {children} @@ -215,9 +202,7 @@ export default function SubHero({ title, desc, navItems, rightSlot }) { )) : // JSX:
로 나뉜 형태 → 직접 TitleLine 배열로 변환 (() => { - const children = Array.isArray(title.props?.children) - ? title.props.children - : [title]; + const children = Array.isArray(title.props?.children) ? title.props.children : [title]; const lines = []; let current = []; children.forEach((child, i) => { @@ -243,14 +228,25 @@ export default function SubHero({ title, desc, navItems, rightSlot }) {
- - {menuMap["/" + pathname.split("/")[1]]?.label} - + {/* // 브레드크럼 */} + + + + + + + + / + + {menuMap["/" + pathname.split("/")[1]]?.label} + + {pathname.split("/")[2] && ( + <> + / + {navItems?.find((n) => n.to === pathname)?.label} + + )} +

{titleContent}

{desc && ( @@ -273,12 +265,7 @@ export default function SubHero({ title, desc, navItems, rightSlot }) {
{rightSlot && ( - + {rightSlot} )} @@ -286,18 +273,10 @@ export default function SubHero({ title, desc, navItems, rightSlot }) {
{navItems?.length > 1 && ( -