feat(ui): add premium BenefitGrid to karriere page

Former-commit-id: b832e30800338c59f7d55e56a0bf30dd8b9b63aa
This commit is contained in:
2026-05-07 19:11:42 +02:00
parent 2a372421a7
commit 86799bf3ef
142 changed files with 542 additions and 283 deletions

View File

@@ -23,9 +23,14 @@ export function Header({ navLinks }: HeaderProps) {
const [forceSolid, setForceSolid] = React.useState(false);
const pathname = usePathname() || '/';
// Scroll bound shine effect
// Scroll bound shine effect (continuous looping as user scrolls)
const { scrollY } = useScroll();
const shineX = useTransform(scrollY, [20, 600], ['-150%', '150%']);
const shineX = useTransform(scrollY, (y) => {
const adjustedY = Math.max(0, y - 20); // Start after the solid mode kicks in
const range = 800; // 1 full sweep per 800px scrolled
const progress = (adjustedY % range) / range;
return `${-150 + progress * 300}%`;
});
// Determine current locale from pathname
const currentLocale = pathname.startsWith('/en') ? 'en' : 'de';