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 ( -
-
-
- - - - -
-