|
36 | 36 |
|
37 | 37 | a { color: inherit; text-decoration: none; } |
38 | 38 |
|
39 | | - /* HEADER & NAWIGACJA */ |
| 39 | + /* NAVBAR - UKŁAD GRID (LOGO | LINKI | COMMUNITY) */ |
40 | 40 | .navbar { |
41 | 41 | background: var(--bg-nav); |
42 | 42 | border-bottom: 1px solid var(--border); |
43 | | - padding: 22px 60px; |
44 | | - display: flex; |
45 | | - justify-content: space-between; |
| 43 | + padding: 22px 50px; |
| 44 | + display: grid; |
| 45 | + grid-template-columns: auto 1fr auto; |
46 | 46 | align-items: center; |
| 47 | + gap: 30px; |
47 | 48 | position: sticky; |
48 | 49 | top: 0; |
49 | 50 | z-index: 1000; |
50 | | - max-width: 1500px; |
51 | 51 | width: 100%; |
52 | | - margin: 0 auto; |
53 | 52 | box-sizing: border-box; |
54 | 53 | } |
55 | 54 |
|
| 55 | + .nav-left { display: flex; align-items: center; } |
56 | 56 | .nav-brand { |
57 | 57 | font-size: 1.3rem; |
58 | 58 | font-weight: 900; |
|
66 | 66 | } |
67 | 67 | .nav-brand svg { width: 22px; height: 22px; stroke: var(--accent-contrast); } |
68 | 68 |
|
69 | | - .nav-center { display: flex; align-items: center; gap: 30px; } |
70 | | - .nav-center a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; transition: 0.3s; position: relative; } |
| 69 | + /* MENU ŚRODKOWE PRZESUNIĘTE W PRAWO */ |
| 70 | + .nav-center { |
| 71 | + display: flex; |
| 72 | + justify-content: flex-end; |
| 73 | + align-items: center; |
| 74 | + gap: 30px; |
| 75 | + } |
| 76 | + .nav-center a { |
| 77 | + text-decoration: none; |
| 78 | + color: var(--text-muted); |
| 79 | + font-weight: 600; |
| 80 | + font-size: 0.9rem; |
| 81 | + transition: 0.3s; |
| 82 | + position: relative; |
| 83 | + } |
71 | 84 | .nav-center a:hover, .nav-center a.active { color: var(--accent-blue); } |
72 | 85 |
|
73 | 86 | .nav-center a.active::after { |
|
81 | 94 | border-radius: 2px; |
82 | 95 | } |
83 | 96 |
|
84 | | - /* DROPDOWN COMMUNITY (PO PRAWEJ) */ |
| 97 | + .nav-right { display: flex; justify-content: flex-end; } |
| 98 | + |
| 99 | + /* DROPDOWN COMMUNITY */ |
85 | 100 | .dropdown { position: relative; display: inline-block; } |
86 | 101 | .dropbtn { |
87 | 102 | background: rgba(0, 210, 255, 0.05); |
88 | 103 | color: var(--accent-blue); |
89 | | - padding: 10px 20px; |
| 104 | + padding: 9px 18px; |
90 | 105 | border-radius: 6px; |
91 | 106 | border: 1px solid rgba(0, 210, 255, 0.3); |
92 | 107 | cursor: pointer; |
93 | 108 | font-family: 'JetBrains Mono', monospace; |
94 | 109 | font-weight: 700; |
95 | | - font-size: 0.85rem; |
| 110 | + font-size: 0.8rem; |
96 | 111 | text-transform: uppercase; |
97 | 112 | transition: 0.2s; |
98 | 113 | } |
99 | 114 | .dropbtn:hover { background: rgba(0, 210, 255, 0.1); border-color: var(--accent-blue); } |
100 | 115 |
|
101 | | - .dropdown-content { position: absolute; right: 0; top: 100%; padding-top: 15px; min-width: 220px; opacity: 0; visibility: hidden; transition: 0.25s ease; z-index: 1001; } |
102 | | - .dropdown-links-wrapper { background: rgba(10, 15, 25, 0.95); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); overflow: hidden; backdrop-filter: blur(10px); } |
| 116 | + .dropdown-content { position: absolute; right: 0; top: 100%; padding-top: 12px; min-width: 220px; opacity: 0; visibility: hidden; transition: 0.25s ease; z-index: 1001; } |
| 117 | + .dropdown-links-wrapper { background: rgba(10, 15, 25, 0.98); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); overflow: hidden; backdrop-filter: blur(10px); } |
103 | 118 | .dropdown-content a { display: flex; justify-content: space-between; align-items: center; color: var(--text-main); padding: 12px 18px; text-decoration: none; font-size: 0.85rem; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.03); } |
104 | 119 | .dropdown-content a:hover { color: var(--accent-blue); background: rgba(0, 210, 255, 0.05); } |
105 | 120 | .dropdown:hover .dropdown-content { opacity: 1; visibility: visible; } |
106 | 121 |
|
107 | | - /* GŁÓWNY KONTENER NA CAŁĄ SZEROKOŚĆ */ |
108 | | - .dashboard { width: 100%; max-width: 1400px; padding: 50px 60px; margin: 0 auto; box-sizing: border-box; flex: 1; } |
| 122 | + /* GŁÓWNY KONTENER TREŚCI */ |
| 123 | + .dashboard { width: 100%; max-width: 1400px; padding: 50px; margin: 0 auto; box-sizing: border-box; flex: 1; } |
109 | 124 |
|
110 | 125 | .section-tag { |
111 | 126 | font-family: 'JetBrains Mono', monospace; |
|
126 | 141 | max-width: 1400px; |
127 | 142 | width: 100%; |
128 | 143 | margin: 80px auto 40px auto; |
129 | | - padding: 40px 60px; |
| 144 | + padding: 40px 50px; |
130 | 145 | border-top: 1px solid var(--border); |
131 | 146 | display: flex; |
132 | 147 | justify-content: space-between; |
|
141 | 156 | .footer-links a:hover { color: var(--accent-blue); } |
142 | 157 |
|
143 | 158 | @media (max-width: 1024px) { |
144 | | - .navbar { flex-direction: column; padding: 20px; gap: 20px; } |
145 | | - .nav-center { flex-wrap: wrap; gap: 15px; justify-content: center; } |
| 159 | + .navbar { grid-template-columns: 1fr; gap: 15px; padding: 20px; text-align: center; } |
| 160 | + .nav-center { justify-content: center; flex-wrap: wrap; gap: 15px; } |
| 161 | + .nav-right { justify-content: center; } |
146 | 162 | .dashboard { padding: 30px 20px; } |
147 | | - footer { flex-direction: column; gap: 20px; text-align: center; } |
| 163 | + footer { flex-direction: column; gap: 20px; text-align: center; padding: 30px 20px; } |
148 | 164 | .footer-links { justify-content: center; } |
149 | 165 | } |
150 | 166 | </style> |
151 | 167 | </head> |
152 | 168 | <body> |
153 | 169 |
|
154 | 170 | <nav class="navbar"> |
155 | | - <a href="/" class="nav-brand"> |
156 | | - <svg viewBox="0 0 24 24" fill="none" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> |
157 | | - <polyline points="4 17 10 11 4 5"></polyline> |
158 | | - <line x1="12" y1="19" x2="20" y2="19"></line> |
159 | | - </svg> |
160 | | - DEVLABSTUDY |
161 | | - </a> |
| 171 | + <div class="nav-left"> |
| 172 | + <a href="/" class="nav-brand"> |
| 173 | + <svg viewBox="0 0 24 24" fill="none" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> |
| 174 | + <polyline points="4 17 10 11 4 5"></polyline> |
| 175 | + <line x1="12" y1="19" x2="20" y2="19"></line> |
| 176 | + </svg> |
| 177 | + DEVLABSTUDY |
| 178 | + </a> |
| 179 | + </div> |
162 | 180 | <div class="nav-center"> |
163 | 181 | <a href="/" {% if page.url == "/" %}class="active"{% endif %}>Hub</a> |
164 | 182 | <a href="/blog" {% if page.url contains "blog" %}class="active"{% endif %}>Blog</a> |
|
0 commit comments