add optional youtube intro link
All checks were successful
deploy / build-and-deploy (/testvaro, /opt/website-test, website-test) (push) Successful in 22s
deploy / build-and-deploy (/varo, /opt/website, website) (push) Successful in 27s

This commit is contained in:
2025-06-09 18:44:47 +02:00
parent 86f448a6e3
commit ed43212d9c
3 changed files with 21 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import Teams from '@app/website/index/Teams.svelte';
import Countdown from '@app/website/index/Countdown.svelte';
import Varo from '@assets/img/varo.webp';
import Background from '@assets/img/background.webp';
import { START_DATE } from 'astro:env/server';
import { START_DATE, YOUTUBE_INTRO_LINK } from 'astro:env/server';
import { getSetting, SettingKey } from '@util/settings';
import { db } from '@db/database.ts';
@ -78,6 +78,23 @@ const information = [
</div>
</div>
{
YOUTUBE_INTRO_LINK && (
<div class="bg-base-300 w-full py-12 flex justify-center">
<iframe
width="624"
height="351"
src={YOUTUBE_INTRO_LINK}
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin"
allowfullscreen
/>
</div>
)
}
<div class="fixed bottom-0 sm:right-0 m-5 hidden sm:block">
<Scroll href="#teams" client:load />
</div>