Lots of media for mars rover software lead, yt video grid now working, small fixes to import orders and extra photos
Some checks failed
Build and Test - Staging / build_and_push (pull_request) Has been cancelled
Build and Test - Staging / deploy_staging (pull_request) Has been cancelled
Build and Test - Staging / test (pull_request) Has been cancelled

This commit is contained in:
2025-12-11 17:07:42 -08:00
parent 91ce9aa6c6
commit 076618784a
22 changed files with 90 additions and 280 deletions

View File

@@ -1,13 +1,26 @@
---
import type { videoConfig } from "@interfaces/video.ts";
import type { videoConfig } from "@interfaces/yt-video.ts";
const config: videoConfig = Astro.props.videoConfig;
interface Props extends videoConfig {}
const {
videoPath,
videoTitle,
width = "1920",
height = "1080",
autoPlay = false,
} = Astro.props;
const aspect = `${width} / ${height}`;
---
<iframe
class="h-128 w-full max-w-1/2"
src={config.videoPath}
title={config.videoTitle ?? ""}
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin"
allowfullscreen></iframe>
<div class="mx-auto my-auto w-full" style={`aspect-ratio: ${aspect};`}>
<iframe
src={videoPath}
title={videoTitle}
class="h-full w-full"
allow={"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; " +
(autoPlay ? "autoplay;" : "")}
referrerpolicy="strict-origin-when-cross-origin"
allowfullscreen></iframe>
</div>