Improved hero

This commit is contained in:
2026-01-22 17:14:26 +01:00
parent d5d18df9b6
commit 7e96b22bce
+4 -10
View File
@@ -8,7 +8,7 @@ import { staggerContainer, fadeInUp, slowFloat } from "@/lib/animations";
export function HeroSection() { export function HeroSection() {
return ( return (
<motion.section <motion.section
className="relative min-h-svh flex items-center justify-center overflow-hidden" className="relative flex items-center justify-center overflow-hidden min-h-[40rem] h-[calc(100svh-66px)]"
variants={staggerContainer} variants={staggerContainer}
initial="hidden" initial="hidden"
whileInView="visible" whileInView="visible"
@@ -16,14 +16,8 @@ export function HeroSection() {
> >
{/* Background Effects */} {/* Background Effects */}
<div className="absolute inset-0 bg-gradient-to-b from-background via-background to-card" /> <div className="absolute inset-0 bg-gradient-to-b from-background via-background to-card" />
<motion.div <div className="absolute top-1/4 left-1/4 w-96 h-96 bg-accent/5 rounded-full blur-3xl" />
className="absolute top-1/4 left-1/4 w-96 h-96 bg-accent/5 rounded-full blur-3xl" <div className="absolute bottom-1/4 right-1/4 w-96 h-96 bg-accent/10 rounded-full blur-3xl" />
variants={slowFloat}
/>
<motion.div
className="absolute bottom-1/4 right-1/4 w-96 h-96 bg-accent/10 rounded-full blur-3xl"
variants={slowFloat}
/>
<div className="container mx-auto px-6 relative z-10"> <div className="container mx-auto px-6 relative z-10">
<motion.div <motion.div
@@ -112,7 +106,7 @@ export function HeroSection() {
{/* Scroll Indicator */} {/* Scroll Indicator */}
<motion.div <motion.div
className="absolute bottom-8 left-1/2 -translate-x-1/2 mb-14" className="absolute bottom-10 left-1/2 -translate-x-1/2"
animate={{ y: [0, 10, 0] }} animate={{ y: [0, 10, 0] }}
transition={{ repeat: Infinity, duration: 1.5 }} transition={{ repeat: Infinity, duration: 1.5 }}
> >