feat: improve responsive design for hero section

- Added responsive visibility classes to hide book tear image on mobile screens (md:block)
- Adjusted vertical spacing (-mt-14) to only apply on large screens, with mt-0 on mobile
- Increased horizontal padding in content section from px-6 to px-8 for better mobile spacing
- Updated Booktear component to be hidden on mobile and visible on md/lg breakpoints
This commit is contained in:
2025-10-24 05:19:09 +02:00
parent a663cc038b
commit 1bdc4ddc72
2 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ export function Hero() {
</div> </div>
</Container> </Container>
</div> </div>
<div className="relative"> <div className="relative hidden md:block">
<Image <Image
unoptimized unoptimized
src="/images/booktear1.png" src="/images/booktear1.png"
@@ -46,10 +46,10 @@ export function Hero() {
</div> </div>
<div className="relative"> <div className="relative">
<div <div
className="bg-cover bg-center -mt-14" className="bg-cover bg-center lg:-mt-14 mt-0"
style={{ backgroundImage: 'url(/images/paper.jpg)', opacity: '0.9' }} style={{ backgroundImage: 'url(/images/paper.jpg)', opacity: '0.9' }}
> >
<div className="px-6 py-24 lg:px-8"> <div className="px-8 py-24 lg:px-8">
<div className="mx-auto max-w-2xl text-left"> <div className="mx-auto max-w-2xl text-left">
<p className="font-script text-2xl text-love-red mb-2 font-typewriter relative"> <p className="font-script text-2xl text-love-red mb-2 font-typewriter relative">
<span className="invisible">Mon cher,</span> <span className="invisible">Mon cher,</span>

View File

@@ -2,7 +2,7 @@ import Image from 'next/image';
const Booktear = ({ className }) => { const Booktear = ({ className }) => {
return ( return (
<div className={`w-full bg-transparent ${className || ''}`}> <div className={`hidden md:block lg:block w-full bg-transparent ${className || ''}`}>
<Image <Image
unoptimized unoptimized
src="/images/booktear.png" src="/images/booktear.png"