From 1a35d9a747103efdf4a35e2fd7f6d0d7010473e0 Mon Sep 17 00:00:00 2001 From: sebastjan Date: Mon, 31 Aug 2026 16:25:30 +0200 Subject: [PATCH] video kartica dobi opis iz teaserja in vrstico Video ansehen, da ni prazna spodaj --- client/src/pages/home.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 283f2c5..eb57bdd 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -331,7 +331,7 @@ function MobileMosaic({ latest, popular, focalPoints }: { latest: Article[]; pop ); } -interface YtVideo { ytId: string; slug: string; shortTitle?: string; title: string; rubrik?: string; publishedAt?: string; durationS?: number } +interface YtVideo { ytId: string; slug: string; shortTitle?: string; title: string; rubrik?: string; publishedAt?: string; durationS?: number; teaser?: string } // Video kartica v mrezi: enaka velikost kot kartica clanka, da v vrstici ni // luknje. Pelje na /video/, kjer je oglasni prostor, ne na YouTube. @@ -369,9 +369,14 @@ function VideoCard({ video }: { video: YtVideo }) {

{video.shortTitle || video.title}

-

- Jetzt ansehen auf FOLX TV +

+ {(video.teaser || "").replace(/^Musik News aus Schlager & Volksmusik:\s*/i, "") || + "Jetzt ansehen auf FOLX TV"}

+
+ + Video ansehen +