|
11 | 11 | <link rel="icon" type="image/png" href="/qr-code.png"> |
12 | 12 | <style> |
13 | 13 | :root { |
14 | | - --bg-body: #0f172a; --bg-nav: rgba(15, 23, 42, 0.85); --bg-card: #1e293b; |
15 | | - --text-main: #f8fafc; --text-muted: #94a3b8; --border-color: #334155; |
| 14 | + --bg-body: #050505; --bg-nav: rgba(5, 5, 5, 0.7); --bg-card: #111; |
| 15 | + --text-main: #f8fafc; --text-muted: #94a3b8; --border-color: rgba(255, 255, 255, 0.1); |
16 | 16 | --accent-blue: #3b82f6; --radius: 12px; |
17 | 17 | } |
18 | 18 | body { font-family: 'Inter', sans-serif; background: var(--bg-body); color: var(--text-main); margin: 0; line-height: 1.6; } |
19 | 19 |
|
20 | | - /* --- UNIWERSALNY NAVBAR --- */ |
21 | | - .navbar { background: var(--bg-nav); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); padding: 15px 40px; display: flex; align-items: center; position: sticky; top: 0; z-index: 100; } |
22 | | - .nav-brand { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--text-main); letter-spacing: -0.5px; margin-right: 40px; } |
23 | | - .nav-center { display: flex; gap: 25px; align-items: center; } |
| 20 | + /* PERFEKCYJNY NAVBAR */ |
| 21 | + .navbar { background: var(--bg-nav); backdrop-filter: blur(15px); border-bottom: 1px solid var(--border-color); padding: 15px 40px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; } |
| 22 | + .nav-left { flex: 1; display: flex; justify-content: flex-start; } |
| 23 | + .nav-brand { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--text-main); letter-spacing: -0.5px; } |
| 24 | + .nav-center { flex: 2; display: flex; justify-content: center; gap: 30px; } |
24 | 25 | .nav-center a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; } |
25 | 26 | .nav-center a:hover, .nav-center a.active { color: var(--accent-blue); } |
26 | | - |
| 27 | + .nav-right { flex: 1; display: flex; justify-content: flex-end; } |
27 | 28 | .dropdown { position: relative; display: inline-block; padding: 10px 0; } |
28 | 29 | .dropbtn { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: 0.3s; cursor: pointer; } |
29 | | - .dropdown:hover .dropbtn { color: var(--accent-blue); } |
30 | | - .dropdown-content { display: none; position: absolute; left: 0; top: 100%; background-color: var(--bg-card); min-width: 180px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-radius: 12px; border: 1px solid var(--border-color); overflow: hidden; z-index: 1; opacity: 0; transform: translateY(-10px); transition: all 0.3s ease; } |
| 30 | + .dropdown:hover .dropbtn { color: var(--text-main); } |
| 31 | + .dropdown-content { display: none; position: absolute; right: 0; top: 100%; background-color: #111; min-width: 180px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); border-radius: 12px; border: 1px solid var(--border-color); overflow: hidden; z-index: 1; opacity: 0; transform: translateY(-10px); transition: all 0.3s ease; } |
31 | 32 | .dropdown:hover .dropdown-content { display: block; opacity: 1; transform: translateY(0); } |
32 | 33 | .dropdown-content a { color: var(--text-main) !important; padding: 12px 20px; text-decoration: none; display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 600; border-bottom: 1px solid var(--border-color); transition: background 0.2s; } |
33 | 34 | .dropdown-content a:last-child { border-bottom: none; } |
|
38 | 39 | .post-item:hover { border-color: var(--accent-blue); transform: translateY(-3px); } |
39 | 40 | .post-title a { color: var(--text-main); text-decoration: none; font-size: 1.4rem; font-weight: 700; } |
40 | 41 |
|
41 | | - @media (max-width: 768px) { .navbar { flex-direction: column; padding: 15px; gap: 15px; } .nav-brand { margin-right: 0; } .nav-center { flex-wrap: wrap; justify-content: center; } } |
| 42 | + @media (max-width: 768px) { .navbar { flex-direction: column; padding: 15px; gap: 15px; } .nav-left, .nav-center, .nav-right { justify-content: center; width: 100%; } .nav-center { flex-wrap: wrap; } } |
42 | 43 | </style> |
43 | 44 | </head> |
44 | 45 | <body> |
45 | 46 | <nav class="navbar"> |
46 | | - <a href="/" class="nav-brand">DevLabStudy</a> |
| 47 | + <div class="nav-left"><a href="/" class="nav-brand">DevLabStudy</a></div> |
47 | 48 | <div class="nav-center"> |
48 | 49 | <a href="/">Hub</a> |
| 50 | + <a href="/blog" class="active">Blog</a> |
| 51 | + <a href="/homelab">HomeLab</a> |
| 52 | + <a href="/orbit">Orbit™</a> |
| 53 | + </div> |
| 54 | + <div class="nav-right"> |
49 | 55 | <div class="dropdown"> |
50 | 56 | <span class="dropbtn">Community</span> |
51 | 57 | <div class="dropdown-content"> |
|
56 | 62 | <a href="https://www.reddit.com/user/devlabstudy">Reddit <span>↗</span></a> |
57 | 63 | </div> |
58 | 64 | </div> |
59 | | - <a href="/blog" class="active">Blog</a> |
60 | | - <a href="/homelab">HomeLab</a> |
61 | | - <a href="/orbit">Orbit™</a> |
62 | 65 | </div> |
63 | 66 | </nav> |
64 | 67 |
|
|
0 commit comments