From d9995eb26c90eeb5ec485ac6129b17d149312b8b Mon Sep 17 00:00:00 2001 From: Francisco Pessano Date: Wed, 10 Sep 2025 23:45:44 -0300 Subject: [PATCH] feat: replace placeholder content with configurable YouTube demo video --- apps/web/src/routes/index.tsx | 40 +++++++++++++---------------------- 1 file changed, 15 insertions(+), 25 deletions(-) diff --git a/apps/web/src/routes/index.tsx b/apps/web/src/routes/index.tsx index 3315ef6..777f0ad 100644 --- a/apps/web/src/routes/index.tsx +++ b/apps/web/src/routes/index.tsx @@ -44,6 +44,9 @@ function HealthBadge() { } function PreviewCard() { + // Allow overriding the demo video via env. Fallback to a standard demo video id. + const videoId = (import.meta as any).env?.VITE_YOUTUBE_DEMO_ID ?? "dQw4w9WgXcQ"; + const videoSrc = `https://www.youtube.com/embed/${videoId}?autoplay=1&mute=1&controls=0&loop=1&playlist=${videoId}&modestbranding=1&rel=0&playsinline=1`; return ( @@ -59,32 +62,19 @@ function PreviewCard() { reflecto.app - {/* fake content */} -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ {/* video preview */} +
+
+