Files
alva/src/components/HeroSection.tsx
T
gpt-engineer-app[bot] 7b0a4aeeb3 Changes
2026-01-27 22:34:06 +00:00

48 lines
1.7 KiB
TypeScript

import logoImage from "@/assets/logo.png";
import heroBakeryImage from "@/assets/hero-bakery-wide.jpg";
const HeroSection = () => {
return (
<section className="relative left-1/2 w-screen -translate-x-1/2 overflow-x-clip flex flex-col justify-center items-center text-center min-h-[70vh]">
{/* Background image with opacity (doesn't affect content) */}
<div
className="pointer-events-none absolute inset-0 bg-cover bg-center opacity-40"
style={{ backgroundImage: `url(${heroBakeryImage})` }}
/>
{/* Keep contrast for text without washing out the image (can look like "empty" beige sides) */}
<div className="pointer-events-none absolute inset-0 bg-background/25" />
<div className="animate-fade-up max-w-4xl relative z-10 px-6 py-16">
<p className="text-muted-foreground text-lg mb-4">
Svenskt konditorhantverk sedan 1953
</p>
<div className="w-40 h-px bg-primary/40 mx-auto my-4"></div>
<p className="max-w-xl mx-auto text-foreground text-xl mb-8 leading-relaxed">
Äkta fika levererat till ditt företag varje vecka
</p>
<div className="flex flex-col sm:flex-row gap-4 justify-center">
<a
href="#plans"
className="btn-classic inline-block px-10 py-4 text-lg rounded-sm"
>
Starta Prenumeration
</a>
<a
href="#gallery"
className="inline-block px-10 py-4 text-lg rounded-sm border-2 border-primary text-primary hover:bg-primary hover:text-primary-foreground transition-colors"
>
Sortiment
</a>
</div>
</div>
</section>
);
};
export default HeroSection;