diff --git a/client/src/components/search-header.tsx b/client/src/components/search-header.tsx index b63a647..d8dfcc6 100644 --- a/client/src/components/search-header.tsx +++ b/client/src/components/search-header.tsx @@ -47,9 +47,9 @@ export default function SearchHeader({
- {/* Triangle decorations v headerju - z nižjim z-index da ne zakrivajo besedila */} -
-
+ {/* Static triangle decorations - fixed positioning */} +
+
diff --git a/client/src/index.css b/client/src/index.css index 214160c..41269f6 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -272,44 +272,13 @@ input[data-testid*="search"]::placeholder { z-index: 1; } -.floating-triangles { +/* Static triangle decorations - no animations to prevent jumping */ +.static-triangles { position: relative; overflow: hidden; } -.floating-triangles::before { - content: ''; - position: absolute; - top: 15%; - right: 2%; - width: 0; - height: 0; - border-left: 20px solid transparent; - border-right: 20px solid transparent; - border-bottom: 30px solid rgba(59, 130, 246, 0.03); - transform: rotate(30deg); - z-index: -1; -} - -.floating-triangles::after { - content: ''; - position: absolute; - bottom: 25%; - left: 2%; - width: 0; - height: 0; - border-left: 18px solid transparent; - border-right: 18px solid transparent; - border-bottom: 28px solid rgba(147, 51, 234, 0.03); - transform: rotate(-15deg); - z-index: -1; -} - /* Background go4.video logo decorations */ -.floating-triangles { - position: relative; - overflow: hidden; -} .bg-logo-large { position: absolute; diff --git a/client/src/pages/VideoPage.tsx b/client/src/pages/VideoPage.tsx index 9179105..1375b57 100644 --- a/client/src/pages/VideoPage.tsx +++ b/client/src/pages/VideoPage.tsx @@ -121,7 +121,7 @@ export default function VideoPage() { } return ( -
+
{/* Header with triangle design */}
{/* Triangle decorations in header - same as home page */} diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 55d7155..5c94d91 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -77,7 +77,7 @@ export default function Home() { }, [searchQuery, offset, refetch]); return ( -
+
+
{/* Header - same as other pages */}
{/* Triangle decorations in header */}