diff --git a/.env.example b/.env.example index 2cacb49..8a842af 100644 --- a/.env.example +++ b/.env.example @@ -6,6 +6,7 @@ ADMIN_USER=admin ADMIN_PASSWORD=admin ADMIN_COOKIE=muelleel +YOUTUBE_INTRO_LINK=https://www.youtube-nocookie.com/embed/e78_QbTNb4s TEAMSPEAK_LINK=http://example.com DISCORD_LINK=http://example.com PAYPAL_LINK=http://example.com diff --git a/astro.config.mjs b/astro.config.mjs index 2d1d035..a7a7d21 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -42,6 +42,8 @@ export default defineConfig({ WEBHOOK_ENDPOINT: envField.string({ context: 'server', access: 'secret', optional: true }), + YOUTUBE_INTRO_LINK: envField.string({ context: 'server', access: 'secret', optional: true }), + TEAMSPEAK_LINK: envField.string({ context: 'server', access: 'secret', default: 'http://example.com' }), DISCORD_LINK: envField.string({ context: 'server', access: 'secret', default: 'http://example.com' }), PAYPAL_LINK: envField.string({ context: 'server', access: 'secret', default: 'http://example.com' }), diff --git a/src/pages/index.astro b/src/pages/index.astro index 5dfa6cf..043ff1b 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -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 = [ + { + YOUTUBE_INTRO_LINK && ( +