Center and limit content width for better display on large screens
Introduces a new CSS class `.container` with `max-width: 1200px` and `margin: 0 auto` to center content. This class is applied to main content areas in `FolxStadlPage.tsx`, `VideoPage.tsx`, and `home.tsx` to resolve layout stretching issues on wide monitors. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 890577b1-c154-40a4-a177-a0c6d55320c3 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/890577b1-c154-40a4-a177-a0c6d55320c3/SHCPaqp
This commit is contained in:
parent
2a395fd12d
commit
5034289fd2
@ -370,6 +370,13 @@ input[data-testid*="search"]::placeholder {
|
||||
}
|
||||
}
|
||||
|
||||
/* Container for main content layout */
|
||||
.container {
|
||||
max-width: 1200px; /* največja širina */
|
||||
margin: 0 auto; /* centriranje */
|
||||
padding: 0 20px; /* malo notranjega roba */
|
||||
}
|
||||
|
||||
/* iOS PWA safe area optimizacije */
|
||||
@supports (padding: max(0px)) {
|
||||
.has-fixed-header {
|
||||
|
||||
@ -59,7 +59,7 @@ export default function FolxStadlPage() {
|
||||
<div className="min-h-screen bg-bunny-dark text-white has-fixed-header">
|
||||
{/* Header */}
|
||||
<div className="header-sticky bg-transparent overflow-hidden">
|
||||
<div className="max-w-7xl mx-auto px-4 py-4">
|
||||
<div className="container py-4">
|
||||
<div className="flex items-center justify-between">
|
||||
{/* Left side - Logo */}
|
||||
<div className="flex items-center space-x-4">
|
||||
@ -154,7 +154,7 @@ export default function FolxStadlPage() {
|
||||
</div>
|
||||
|
||||
{/* Main Content */}
|
||||
<div className="max-w-7xl mx-auto px-4 py-8">
|
||||
<div className="container py-8">
|
||||
|
||||
{/* Video List with Descriptions */}
|
||||
<div className="space-y-6">
|
||||
|
||||
@ -238,7 +238,7 @@ export default function VideoPage() {
|
||||
<div className="min-h-screen bunny-dark static-triangles has-fixed-header">
|
||||
{/* Header */}
|
||||
<div className="header-sticky bg-transparent overflow-hidden">
|
||||
<div className="max-w-7xl mx-auto px-4 py-4">
|
||||
<div className="container py-4">
|
||||
<div className="flex items-center justify-between">
|
||||
{/* Left side - Logo */}
|
||||
<div className="flex items-center space-x-4">
|
||||
@ -332,7 +332,7 @@ export default function VideoPage() {
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="max-w-7xl mx-auto p-4 lg:p-6 relative">
|
||||
<div className="container p-4 lg:p-6 relative">
|
||||
{/* Background logo decorations */}
|
||||
<div
|
||||
style={{
|
||||
|
||||
@ -77,7 +77,7 @@ export default function Home() {
|
||||
<div className="has-fixed-header" style={{minHeight: '100vh', background: 'linear-gradient(135deg, hsl(250, 50%, 15%) 0%, hsl(240, 30%, 25%) 100%)', color: 'white'}}>
|
||||
{/* STICKY HEADER */}
|
||||
<div className="header-sticky bg-transparent overflow-hidden">
|
||||
<div className="max-w-7xl mx-auto px-4 py-4">
|
||||
<div className="container py-4">
|
||||
<div className="flex items-center justify-between">
|
||||
{/* Left side - Logo */}
|
||||
<div className="flex items-center space-x-4">
|
||||
@ -169,25 +169,26 @@ export default function Home() {
|
||||
</div>
|
||||
|
||||
<main className="w-full pt-0 pb-8 relative">
|
||||
|
||||
{/* Trikotniki na robovih - ne prekrivajo video kartic */}
|
||||
<div className="absolute top-10 right-2 w-0 h-0 border-l-[70px] border-l-transparent border-r-[70px] border-r-transparent border-b-[100px] border-b-blue-400/8 rotate-12 z-0"></div>
|
||||
<div className="absolute top-1/2 left-2 w-0 h-0 border-l-[60px] border-l-transparent border-r-[60px] border-r-transparent border-b-[85px] border-b-purple-400/8 -rotate-12 z-0"></div>
|
||||
<div className="absolute bottom-1/4 right-2 w-0 h-0 border-l-[50px] border-l-transparent border-r-[50px] border-r-transparent border-b-[70px] border-b-cyan-400/8 rotate-45 z-0"></div>
|
||||
{viewMode === "grid" ? (
|
||||
<NetflixGrid
|
||||
videos={allVideos}
|
||||
isLoading={isLoading}
|
||||
/>
|
||||
) : (
|
||||
<VideoGrid
|
||||
videos={allVideos}
|
||||
isLoading={isLoading}
|
||||
hasMore={false}
|
||||
onLoadMore={() => {}}
|
||||
viewMode={viewMode}
|
||||
/>
|
||||
)}
|
||||
<div className="container">
|
||||
{/* Trikotniki na robovih - ne prekrivajo video kartic */}
|
||||
<div className="absolute top-10 right-2 w-0 h-0 border-l-[70px] border-l-transparent border-r-[70px] border-r-transparent border-b-[100px] border-b-blue-400/8 rotate-12 z-0"></div>
|
||||
<div className="absolute top-1/2 left-2 w-0 h-0 border-l-[60px] border-l-transparent border-r-[60px] border-r-transparent border-b-[85px] border-b-purple-400/8 -rotate-12 z-0"></div>
|
||||
<div className="absolute bottom-1/4 right-2 w-0 h-0 border-l-[50px] border-l-transparent border-r-[50px] border-r-transparent border-b-[70px] border-b-cyan-400/8 rotate-45 z-0"></div>
|
||||
{viewMode === "grid" ? (
|
||||
<NetflixGrid
|
||||
videos={allVideos}
|
||||
isLoading={isLoading}
|
||||
/>
|
||||
) : (
|
||||
<VideoGrid
|
||||
videos={allVideos}
|
||||
isLoading={isLoading}
|
||||
hasMore={false}
|
||||
onLoadMore={() => {}}
|
||||
viewMode={viewMode}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
@ -200,7 +201,7 @@ export default function Home() {
|
||||
{/* Trikotniki v footerju - manjši in bolje pozicionirani */}
|
||||
<div className="absolute top-0 right-0 w-0 h-0 border-l-[80px] border-l-transparent border-b-[50px] border-b-blue-500/4 z-0"></div>
|
||||
<div className="absolute bottom-0 left-0 w-0 h-0 border-r-[70px] border-r-transparent border-t-[45px] border-t-purple-500/4 z-0"></div>
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
|
||||
<div className="container py-12">
|
||||
<div className="grid grid-cols-1 md:grid-cols-4 gap-8">
|
||||
<div className="col-span-1 md:col-span-2">
|
||||
<div className="flex items-center space-x-2 mb-4">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user