Add floating animation to hero image and update text styles

- Introduce keyframes for float animation in globals.css.
- Apply float animation to the hero image and update text to white.
This commit is contained in:
2025-04-06 19:01:31 +02:00
parent c9eb4e3c42
commit a5454882ed
2 changed files with 20 additions and 6 deletions

View File

@@ -34,5 +34,15 @@
--footer-bg: #242424; /* Deep grey footer to add visual depth */ --footer-bg: #242424; /* Deep grey footer to add visual depth */
} }
@keyframes float {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-6px);
}
}
.animate-float {
animation: float 3.5s ease-in-out infinite;
}

View File

@@ -6,7 +6,7 @@ const Hero = () => {
className="relative w-full pt-[4vh] md:pt-[12vh] h-screen flex flex-col overflow-hidden" className="relative w-full pt-[4vh] md:pt-[12vh] h-screen flex flex-col overflow-hidden"
style={{ style={{
backgroundColor: "var(--primary-bg)", backgroundColor: "var(--primary-bg)",
color: "var(--primary-text)", color: "white",
}} }}
> >
{/* Background Image with Blur */} {/* Background Image with Blur */}
@@ -30,20 +30,24 @@ const Hero = () => {
<div> <div>
<h1 <h1
data-aos="fade-up" data-aos="fade-up"
className="text-2xl sm:text-4xl md:text-5xl mt-6 mb-6 font-bold md:leading-[3rem] lg:leading-[3.5rem]" className="text-2xl sm:text-4xl md:text-5xl mt-6 mb-6 font-bold md:leading-[3rem] lg:leading-[3.5rem] text-white"
> >
Rhein Software Development Rhein Software Development
</h1> </h1>
<p data-aos="fade-up" data-aos-delay="200"> <p
data-aos="fade-up"
data-aos-delay="200"
className="text-white"
>
Wir entwickeln performante und zukunftssichere Software für deine Vision. Wir entwickeln performante und zukunftssichere Software für deine Vision.
</p> </p>
</div> </div>
{/* Image Content */} {/* Floating Image Content */}
<div <div
data-aos="fade-up" data-aos="fade-up"
data-aos-delay="400" data-aos-delay="400"
className="hidden lg:block" className="hidden lg:block animate-float"
> >
<Image src="/images/hero.png" alt="hero graphic" width={700} height={700}/> <Image src="/images/hero.png" alt="hero graphic" width={700} height={700}/>
</div> </div>