Update src/app/page.tsx
This commit is contained in:
135
src/app/page.tsx
135
src/app/page.tsx
@@ -41,23 +41,124 @@ export default function LandingPage() {
|
||||
</div>
|
||||
|
||||
<div id="hero" data-section="hero">
|
||||
<HeroSplit
|
||||
title="Maestri nei Colori, Leader nei Risultati"
|
||||
description="Tinteggiatura civile e industriale con tecnologie all'avanguardia, piattaforme aeree e un parco mezzi unico nel territorio. Dove gli altri non arrivano, arriviamo noi."
|
||||
tag="Dal 1990"
|
||||
background={{ variant: "plain" }}
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AicWC53vH80wLx71X1buQoZMgU/uploaded-1773091546923-m4ntmasg.png"
|
||||
imageAlt="Euro Pitture parco mezzi Suzzara"
|
||||
imagePosition="right"
|
||||
mediaAnimation="none"
|
||||
fixedMediaHeight={false}
|
||||
buttons={[
|
||||
{ text: "Richiedi Preventivo", href: "#contact" },
|
||||
{ text: "Guarda i Lavori", href: "#portfolio" }
|
||||
]}
|
||||
mediaWrapperClassName="h-screen"
|
||||
imageClassName="w-full h-full object-cover"
|
||||
/>
|
||||
<div className="flex flex-col items-center justify-center w-full">
|
||||
{/* Text content section - centered and stacked vertically */}
|
||||
<div className="w-full max-w-3xl mx-auto px-6 md:px-12 pt-20 md:pt-32 pb-12 md:pb-16 text-center">
|
||||
{/* Badge/Tag */}
|
||||
<div
|
||||
className="inline-flex items-center gap-2 mb-6 md:mb-8 px-4 py-2 rounded-full border border-accent/30 bg-card animate-fade-in-top"
|
||||
style={{
|
||||
animation: 'fadeInTop 0.8s ease-out'
|
||||
}}
|
||||
>
|
||||
<span className="text-sm font-medium text-foreground/75">Dal 1990</span>
|
||||
</div>
|
||||
|
||||
{/* Headline */}
|
||||
<h1
|
||||
className="text-4xl md:text-5xl lg:text-6xl font-bold mb-6 md:mb-8 leading-tight text-foreground animate-fade-in-top"
|
||||
style={{
|
||||
animation: 'fadeInTop 0.8s ease-out 0.1s both'
|
||||
}}
|
||||
>
|
||||
Maestri nei Colori, Leader nei Risultati
|
||||
</h1>
|
||||
|
||||
{/* Body text */}
|
||||
<p
|
||||
className="text-lg md:text-xl text-foreground/80 mb-8 md:mb-12 leading-relaxed max-w-2xl mx-auto animate-fade-in-top"
|
||||
style={{
|
||||
animation: 'fadeInTop 0.8s ease-out 0.2s both'
|
||||
}}
|
||||
>
|
||||
Tinteggiatura civile e industriale con tecnologie all'avanguardia, piattaforme aeree e un parco mezzi unico nel territorio. Dove gli altri non arrivano, arriviamo noi.
|
||||
</p>
|
||||
|
||||
{/* CTA Buttons */}
|
||||
<div
|
||||
className="flex flex-col sm:flex-row gap-4 md:gap-6 justify-center items-center animate-fade-in-top"
|
||||
style={{
|
||||
animation: 'fadeInTop 0.8s ease-out 0.3s both'
|
||||
}}
|
||||
>
|
||||
<button
|
||||
onClick={() => {
|
||||
const contactSection = document.getElementById('contact');
|
||||
if (contactSection) contactSection.scrollIntoView({ behavior: 'smooth' });
|
||||
}}
|
||||
className="px-8 md:px-10 py-3 md:py-4 bg-primary-cta text-primary-cta-text rounded-full font-semibold hover:opacity-90 transition-opacity whitespace-nowrap"
|
||||
>
|
||||
Richiedi Preventivo
|
||||
</button>
|
||||
<button
|
||||
onClick={() => {
|
||||
const portfolioSection = document.getElementById('portfolio');
|
||||
if (portfolioSection) portfolioSection.scrollIntoView({ behavior: 'smooth' });
|
||||
}}
|
||||
className="px-8 md:px-10 py-3 md:py-4 bg-secondary-cta text-secondary-cta-text border-2 border-foreground/20 rounded-full font-semibold hover:border-foreground/40 transition-colors whitespace-nowrap"
|
||||
>
|
||||
Guarda i Lavori
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Full-width image section below with responsive heights */}
|
||||
<div
|
||||
className="w-full animate-fade-in-bottom"
|
||||
style={{
|
||||
animation: 'fadeInBottom 0.8s ease-out 0.4s both',
|
||||
height: 'clamp(220px, 100vw * 0.55, 480px)'
|
||||
}}
|
||||
>
|
||||
<img
|
||||
src="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AicWC53vH80wLx71X1buQoZMgU/uploaded-1773091546923-m4ntmasg.png"
|
||||
alt="Euro Pitture parco mezzi Suzzara"
|
||||
className="w-full h-full object-cover"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style jsx>{`
|
||||
@keyframes fadeInTop {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(30px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeInBottom {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-30px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
:global(body) {
|
||||
/* Mobile: 220px height */
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 641px) and (max-width: 1024px) {
|
||||
:global(body) {
|
||||
/* Tablet: 360px height */
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1025px) {
|
||||
:global(body) {
|
||||
/* Desktop: 480px height */
|
||||
}
|
||||
}
|
||||
`}</style>
|
||||
</div>
|
||||
|
||||
<div id="about" data-section="about">
|
||||
|
||||
Reference in New Issue
Block a user