Fix marina image top alignment to match heading
Build And Push Image / docker (push) Successful in 2m8s
Details
Build And Push Image / docker (push) Successful in 2m8s
Details
- Adjusted image container to align precisely with Connect with us heading - Top of image now starts at the same level as the C in the heading - Used CSS grid and proper height calculation for accurate alignment - Changed object-position to center top for better visual alignment
This commit is contained in:
parent
d699c2522a
commit
6aa4284c7b
|
|
@ -539,27 +539,29 @@ export default function Home() {
|
||||||
// Desktop Layout - Responsive with aligned image
|
// Desktop Layout - Responsive with aligned image
|
||||||
<div className="min-h-screen flex flex-col relative pt-[10vh] lg:pt-[15vh] xl:pt-[200px]">
|
<div className="min-h-screen flex flex-col relative pt-[10vh] lg:pt-[15vh] xl:pt-[200px]">
|
||||||
<div className="w-full max-w-[1600px] mx-auto px-8 lg:px-[80px]">
|
<div className="w-full max-w-[1600px] mx-auto px-8 lg:px-[80px]">
|
||||||
<div className="flex flex-col lg:flex-row gap-8 lg:gap-0">
|
<div className="flex flex-col lg:grid lg:grid-cols-[45%_55%] gap-8 lg:gap-0">
|
||||||
{/* Left Side - Marina Image Container */}
|
{/* Left Side - Marina Image Container */}
|
||||||
<div className="order-2 lg:order-1 w-full lg:w-[45%]">
|
<div className="order-2 lg:order-1">
|
||||||
<div className="lg:pr-[40px] h-full">
|
<div className="lg:pr-[40px] h-[400px] lg:h-auto">
|
||||||
{/* On mobile: fixed height, on desktop: match form height */}
|
{/* Image positioned to align with heading */}
|
||||||
<div className="relative h-[400px] lg:h-full">
|
<div className="relative h-full lg:sticky lg:top-0">
|
||||||
<Image
|
<div className="absolute inset-0 lg:relative lg:h-[calc(72px+3rem+400px)]">
|
||||||
src="/marina.jpg"
|
<Image
|
||||||
alt="Port Amador Marina"
|
src="/marina.jpg"
|
||||||
fill
|
alt="Port Amador Marina"
|
||||||
className="object-cover object-center"
|
fill
|
||||||
sizes="(max-width: 1024px) 100vw, 45vw"
|
className="object-cover"
|
||||||
priority
|
sizes="(max-width: 1024px) 100vw, 45vw"
|
||||||
style={{ objectPosition: 'center' }}
|
priority
|
||||||
/>
|
style={{ objectPosition: 'center top' }}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Right Side - Form Section */}
|
{/* Right Side - Form Section */}
|
||||||
<div className="order-1 lg:order-2 w-full lg:w-[55%]">
|
<div className="order-1 lg:order-2">
|
||||||
<div className="lg:pl-[40px]">
|
<div className="lg:pl-[40px]">
|
||||||
{/* Form content wrapper */}
|
{/* Form content wrapper */}
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue