Replace feature image with youtube embed

This commit is contained in:
Holden
2026-06-30 13:03:53 -05:00
parent afc44d9314
commit 0450b4e579
3 changed files with 22 additions and 8 deletions

View File

@@ -189,8 +189,21 @@
padding-top: 40px;
}
.feature-photo {
.feature-video {
position: relative;
margin-top: 10px;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
}
.feature-video iframe {
position: absolute;
top: 4px;
left: 4px;
width: calc(100% - 8px);
height: calc(100% - 8px);
border: 0;
}
.archive-feature {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 744 KiB

View File

@@ -9,8 +9,6 @@ import CreditsSection from "$components/Home/CreditsSection.astro";
import logoImage from "$assets/images/brand/logo-tenwholeyears.png";
import featureImage from "$assets/images/home/feature.png";
import cardHorseshoesImage from "$assets/images/home/card-horseshoes.png";
import cardPlatformsImage from "$assets/images/home/card-platforms.png";
import cardRecroomImage from "$assets/images/home/card-recroom.png";
@@ -51,11 +49,14 @@ import cardRecroomImage from "$assets/images/home/card-recroom.png";
</p>
</div>
<div class="span6">
<Image
src={featureImage}
alt="Beta Frisbee Activity"
class="thumbnail feature-photo"
/>
<div class="thumbnail feature-video">
<iframe
src="https://www.youtube.com/embed/jEDSRaMcwVQ"
title="TenWholeYears feature video"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen
></iframe>
</div>
</div>
</div>
</section>