Skip to content

Commit a2c8e76

Browse files
committed
Respect aspect of image on backstage component for when HTML5 video is added
1 parent d4b6f25 commit a2c8e76

2 files changed

Lines changed: 363 additions & 10 deletions

File tree

‎src/components/Home/Backstage/index.astro‎

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,20 @@ const visibleFeatures = features.slice(0, 4)
3434
---
3535

3636
<section class="container mx-auto px-4 sm:px-6 lg:px-8 py-16" aria-labelledby="backstage-title">
37-
<div class="mb-8 space-y-2">
38-
<p class="text-md font-bold text-primary uppercase tracking-widest">{pretitle}</p>
39-
<h2 id="backstage-title" class="text-3xl md:text-4xl font-black text-content leading-tight">
40-
Give your developers <span class="text-primary">superpowers</span>
41-
</h2>
42-
</div>
4337
<div class="grid grid-cols-1 lg:grid-cols-5 gap-8">
4438
<!-- Left column: headline + image -->
45-
<div class="lg:col-span-2 space-y-6">
39+
<div class="lg:col-span-2 space-y-4">
40+
<p class="text-md font-bold text-primary uppercase tracking-widest">{pretitle}</p>
41+
<h2 id="backstage-title" class="text-3xl md:text-4xl font-black text-content leading-tight">
42+
Give your developers <span class="text-primary">superpowers</span>
43+
</h2>
4644
<p class="text-lg text-content-offset leading-relaxed">{description}</p>
47-
4845
<!-- Image -->
49-
<div class="aspect-square bg-page-offset rounded-2xl border-2 border-dashed border-trim overflow-hidden">
46+
<div class="mt-8">
5047
<Image
5148
src={backstageBackground}
5249
alt="Backstage interface preview"
53-
class="h-full w-full object-cover"
50+
class="h-auto w-full object-contain"
5451
/>
5552
</div>
5653
</div>

0 commit comments

Comments
 (0)