diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 703de67..494112c 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -1,7 +1,7 @@ import { useState, useEffect } from "react"; import { useQuery } from "@tanstack/react-query"; import { type Video } from "@shared/schema"; -import VideoCard from "@/components/video-card"; +import NetflixGrid from "@/components/netflix-grid"; import { Link } from "wouter"; import { Input } from "@/components/ui/input"; import { Search, Menu, X } from "lucide-react"; @@ -60,33 +60,31 @@ export default function Home() { } }, [searchQuery, refetch]); - const handleVideoClick = (video: Video) => { - window.location.href = `/video/${video.id}`; - }; - return ( -
- {/* Header */} -
+
+ {/* STICKY HEADER */} +
- {/* Logo */} - -
-
-
-

go4.video

- + {/* Left side - Logo */} +
+ +
+
+
+

go4.video

+ +
- {/* Navigation & Search */} -
+ {/* Right side - Navigation + Search */} +
{/* Desktop navigation */}
@@ -97,76 +95,71 @@ export default function Home() { placeholder="Videos suchen..." value={searchQuery} onChange={(e) => setSearchQuery(e.target.value)} - className="bg-white/10 border-white/20 text-white placeholder-white/50 w-64" + className="bg-white border border-gray-300 rounded-lg px-4 py-2 pl-10 text-sm text-gray-900 placeholder-gray-500 focus:outline-none focus:border-bunny-blue transition-colors w-64" /> - +
{/* Mobile menu button */}
+
- {/* Mobile Menu */} - {isMobileMenuOpen && ( -
-
+ +
+
+
-
- - {/* Main Content */} -
- {isLoading ? ( -
- {Array.from({ length: 18 }).map((_, index) => ( -
-
-
-
-
-
-
- ))} -
- ) : ( -
- {allVideos.map((video) => ( - - ))} -
- )} - - {allVideos.length === 0 && !isLoading && ( -
-
Keine Videos gefunden
-
- )}
);