Improve layout responsiveness by centering content and limiting maximum width
Update `index.css` to set `max-width: 1200px` and `margin: 0 auto` for the main content container. Adjust `max-w-6xl` in `home.tsx` to accommodate the new maximum width, ensuring better display on larger screens. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 8e9f2b36-ec9c-4acc-b19b-5304fa9790c5 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/8e9f2b36-ec9c-4acc-b19b-5304fa9790c5/7gAiKIm
This commit is contained in:
parent
ec99331b64
commit
c8c931b47f
@ -65,7 +65,7 @@
|
||||
background: linear-gradient(135deg, hsl(250, 50%, 15%) 0%, hsl(240, 30%, 25%) 50%, hsl(260, 40%, 20%) 100%);
|
||||
color: hsl(210, 40%, 98%);
|
||||
min-height: 100vh;
|
||||
max-width: 600px;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
/* iOS PWA optimizacije */
|
||||
-webkit-touch-callout: none;
|
||||
|
||||
@ -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-visible">
|
||||
<div className="max-w-[960px] mx-auto pl-4 pr-4 py-4">
|
||||
<div className="max-w-6xl mx-auto pl-4 pr-4 py-4">
|
||||
<div className="flex items-center justify-between">
|
||||
{/* Left side - Logo */}
|
||||
<div className="flex items-center space-x-4">
|
||||
@ -168,7 +168,7 @@ export default function Home() {
|
||||
)}
|
||||
</div>
|
||||
|
||||
<main className="max-w-2xl mx-auto pt-4 pb-8 relative px-8">
|
||||
<main className="max-w-6xl mx-auto pt-4 pb-8 relative px-8">
|
||||
|
||||
{/* Trikotniki na robovih - dvignjeni višje */}
|
||||
<div className="absolute top-2 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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user