feat: implement floating navbar with aurora background and updated header styling

This commit is contained in:
2025-10-22 22:25:54 +02:00
parent ce33e0f7c3
commit af77948679
21 changed files with 645 additions and 60 deletions

View File

@@ -1,12 +1,13 @@
import { useRef } from 'react'
import { motion, useInView } from 'framer-motion'
export function AnimatedSection({ children }: { children: React.ReactNode }) {
export function AnimatedSection({ children, id }: { children: React.ReactNode; id?: string }) {
const ref = useRef(null)
const isInView = useInView(ref, { once: true, margin: '-20% 0px -20% 0px' })
return (
<motion.section
id={id}
ref={ref}
initial={{ opacity: 0, y: 50 }}
animate={{