From bb9b76efeb37cfe982d037c52aa2294093fe80f6 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Sat, 28 Feb 2026 17:48:08 +0000 Subject: [PATCH] Update blog to display videos as articles and remove separate video page Remove the dedicated video page and integrate video playback into the existing article structure. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 413891e8-d784-4bea-b9f5-91a5a68316b4 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 65e95fa8-e04e-43f2-8a2f-ec80ab84f4f2 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/413891e8-d784-4bea-b9f5-91a5a68316b4/igVW4lQ Replit-Helium-Checkpoint-Created: true --- client/src/App.tsx | 2 - client/src/pages/video.tsx | 104 ------------------------------------ client/src/pages/videos.tsx | 66 ++++++++++------------- 3 files changed, 29 insertions(+), 143 deletions(-) delete mode 100644 client/src/pages/video.tsx diff --git a/client/src/App.tsx b/client/src/App.tsx index a8db4ad..045f538 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -8,7 +8,6 @@ import Home from "@/pages/home"; import ArticlePage from "@/pages/article"; import CategoryPage from "@/pages/category"; import VideosPage from "@/pages/videos"; -import VideoPage from "@/pages/video"; function Router() { return ( @@ -17,7 +16,6 @@ function Router() { - ); diff --git a/client/src/pages/video.tsx b/client/src/pages/video.tsx deleted file mode 100644 index 8e03711..0000000 --- a/client/src/pages/video.tsx +++ /dev/null @@ -1,104 +0,0 @@ -import { useQuery } from "@tanstack/react-query"; -import { useParams, Link } from "wouter"; -import { format } from "date-fns"; -import { de } from "date-fns/locale"; -import { ArrowLeft, Clock } from "lucide-react"; -import { Button } from "@/components/ui/button"; -import { Skeleton } from "@/components/ui/skeleton"; -import Header from "@/components/header"; -import Footer from "@/components/footer"; -import { useEffect } from "react"; - -interface BunnyVideo { - guid: string; - title: string; - length: number; - dateUploaded: string; - thumbnail: string; - embedUrl: string; -} - -function formatDuration(seconds: number): string { - const m = Math.floor(seconds / 60); - const s = seconds % 60; - return `${m}:${s.toString().padStart(2, "0")}`; -} - -export default function VideoPage() { - const { guid } = useParams<{ guid: string }>(); - - const { data: video, isLoading } = useQuery({ - queryKey: ["/api/videos", guid], - }); - - useEffect(() => { - window.scrollTo(0, 0); - }, [guid]); - - if (isLoading) { - return ( -
-
-
- - - - -
-
- ); - } - - if (!video) { - return ( -
-
-
-

Video nicht gefunden.

- - - -
-
- ); - } - - return ( -
-
-
- - - - -
-