diff --git a/src/spa/components/WegZurAuszeichnungSection.tsx b/src/spa/components/WegZurAuszeichnungSection.tsx index c348967..f37296d 100644 --- a/src/spa/components/WegZurAuszeichnungSection.tsx +++ b/src/spa/components/WegZurAuszeichnungSection.tsx @@ -14,7 +14,6 @@ const FF = '"IBM Plex Sans", sans-serif'; const FB = '"Inter", sans-serif'; const NAVY = '#111D55'; const GOLD = '#EFBF04'; -const CARD_BACKGROUND = '#FFF8E1'; type ProcessContent = Partial; @@ -44,14 +43,14 @@ export default function WegZurAuszeichnungSection({ content }: { content?: Proce // ── MOBILE: stacked vertical list (no scroll-jack, no horizontal overflow) ── if (isMobile) { return ( -
+
{/* Section header */}
- {fallbackText(section.eyebrow, participationContent.process.eyebrow)} -

+ {fallbackText(section.eyebrow, participationContent.process.eyebrow)} +

-

+

{fallbackText(section.description, participationContent.process.description)}

@@ -61,29 +60,29 @@ export default function WegZurAuszeichnungSection({ content }: { content?: Proce {steps.map((item, index) => { const Icon = ICONS[item.icon as keyof typeof ICONS] || FileText; return ( -
-
-
- +
+
+
+
- {stepPrefix} {fallbackText(item.step, '')} - - {fallbackText(item.date, '')} + {stepPrefix} {fallbackText(item.step, '')} + + {fallbackText(item.date, '')}
-

+

{fallbackText(item.title, '')}

-

+

{fallbackText(item.desc, '')}

{/* Step progress indicator */} -
+
{steps.map((_, i) => ( -
+
))}
@@ -95,18 +94,18 @@ export default function WegZurAuszeichnungSection({ content }: { content?: Proce } return ( - + {/* Section header */} -
+
- {fallbackText(section.eyebrow, participationContent.process.eyebrow)} -

+ {fallbackText(section.eyebrow, participationContent.process.eyebrow)} +

-

+

{fallbackText(section.description, participationContent.process.description)}

@@ -121,18 +120,18 @@ export default function WegZurAuszeichnungSection({ content }: { content?: Proce width="12" height="7" viewBox="0 0 12 7" fill="none" style={{ opacity: 1 - i * 0.3, animation: `scrollBounce 1.6s ease-in-out ${i * 0.18}s infinite` }} > - + ))}
- + {fallbackText(section.scrollHint, participationContent.process.scrollHint)} {/* Progress bar */} -
-
+
+
- {fallbackText(section.progressLabel, participationContent.process.progressLabel)} + {fallbackText(section.progressLabel, participationContent.process.progressLabel)}
{/* Cards strip */} @@ -145,40 +144,40 @@ export default function WegZurAuszeichnungSection({ content }: { content?: Proce itemsLength={steps.length} index={index} variant="bmp" - className="min-w-[70%] max-w-[70%] flex-shrink-0 bg-[#FFF8E1] text-[#101828] border-[rgba(17,29,85,0.16)]" + className="h-[300px] self-start min-w-[70%] max-w-[70%] flex-shrink-0" > {/* Left accent strip with step number */} - -
- + +
+
- + {fallbackText(item.step, '')}
{/* Card body */} - +
-
- +
+ {stepPrefix} {fallbackText(item.step, '')} - - {fallbackText(item.date, '')} + + {fallbackText(item.date, '')}
-
-

+
+

{fallbackText(item.title, '')}

-

+

{fallbackText(item.desc, '')}

{/* Step progress indicator */}
{steps.map((_, i) => ( -
+
))}
diff --git a/src/spa/components/ui/process-timeline.tsx b/src/spa/components/ui/process-timeline.tsx index bf31315..f8637ca 100644 --- a/src/spa/components/ui/process-timeline.tsx +++ b/src/spa/components/ui/process-timeline.tsx @@ -86,6 +86,7 @@ export const ContainerScroll = ({ const scrollRef = React.useRef(null) const { scrollYProgress } = useScroll({ target: scrollRef, + offset: ["start start", "end end"], }) return (