Skip to content

Commit aca2e80

Browse files
1kevgriffclaude
andcommitted
refactor: use max-width container with white sidebars instead of height constraint
Changed approach from constraining height to constraining width with centered content. The hero section now has a max-width of 1920px with white sidebars on ultra-wide displays, preventing the dots pattern from scaling infinitely while maintaining better visual consistency across all screen sizes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 204d30f commit aca2e80

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/pages/index.astro

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -272,16 +272,17 @@ const allSponsors = [...topTierSponsors, ...standardSponsors];
272272
</button>
273273

274274
<!-- Hero Section with Nav -->
275-
<section class="hero-section w-full relative overflow-hidden max-h-[800px]">
276-
<!-- Hero background image - responsive for phone/tablet/desktop -->
277-
<div class="absolute inset-0 pointer-events-none max-h-[800px]">
278-
<!-- Phone hero (up to 767px) -->
279-
<Image src={heroPhone} alt="" class="w-full h-full object-cover object-center md:hidden" width={390} height={680} />
280-
<!-- Tablet hero (768px to 1369px) -->
281-
<Image src={heroTablet} alt="" class="hero-tablet w-full h-full object-cover object-center" width={768} height={400} />
282-
<!-- Desktop hero (1370px+) -->
283-
<Image src={heroBkgd} alt="" class="hero-desktop w-full h-full object-cover object-left-top" width={1920} height={800} />
284-
</div>
275+
<section class="w-full bg-white">
276+
<div class="hero-section w-full max-w-[1920px] mx-auto relative overflow-hidden">
277+
<!-- Hero background image - responsive for phone/tablet/desktop -->
278+
<div class="absolute inset-0 pointer-events-none">
279+
<!-- Phone hero (up to 767px) -->
280+
<Image src={heroPhone} alt="" class="w-full h-full object-cover object-center md:hidden" width={390} height={680} />
281+
<!-- Tablet hero (768px to 1369px) -->
282+
<Image src={heroTablet} alt="" class="hero-tablet w-full h-full object-cover object-center" width={768} height={400} />
283+
<!-- Desktop hero (1370px+) -->
284+
<Image src={heroBkgd} alt="" class="hero-desktop w-full h-full object-cover object-left-top" width={1920} height={800} />
285+
</div>
285286
<!-- Navigation -->
286287
<nav class="w-full px-4 md:px-8 lg:pr-[40px] pt-[17px] pb-[17px] relative z-10">
287288
<div class="max-w-7xl mx-auto flex justify-end">
@@ -377,6 +378,7 @@ const allSponsors = [...topTierSponsors, ...standardSponsors];
377378
</div>
378379
</div>
379380
</div>
381+
</div>
380382
</section>
381383

382384
<!-- About Section -->

0 commit comments

Comments
 (0)