|
11 | 11 | --border-color: rgba(255, 255, 255, 0.1); --accent-blue: #3b82f6; |
12 | 12 | } |
13 | 13 |
|
14 | | - /* TWOJE NOWE TŁO Z SERWERAMI */ |
15 | 14 | body { |
16 | 15 | font-family: 'Inter', -apple-system, sans-serif; margin: 0; min-height: 100vh; |
17 | 16 | background: #000 url('/background.png') no-repeat center center fixed; |
18 | 17 | background-size: cover; color: var(--text-main); overflow-x: hidden; |
19 | 18 | } |
20 | 19 |
|
21 | | - /* Przyciemnienie obrazka, żeby tekst był czytelny */ |
22 | 20 | .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1; } |
23 | 21 |
|
24 | | - /* --- NOWY NAVBAR (Community z lewej, linki z prawej) --- */ |
| 22 | + /* --- PERFEKCYJNY NAVBAR --- */ |
25 | 23 | .navbar { position: sticky; top: 0; z-index: 100; 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; } |
26 | 24 |
|
27 | | - .nav-left { display: flex; align-items: center; gap: 30px; } |
| 25 | + .nav-left { flex: 1; display: flex; justify-content: flex-start; } |
28 | 26 | .nav-brand { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--text-main); letter-spacing: -0.5px; } |
29 | 27 |
|
30 | | - /* Rozsuwane Community po lewej */ |
| 28 | + .nav-center { flex: 2; display: flex; justify-content: center; gap: 30px; } |
| 29 | + .nav-center a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; } |
| 30 | + .nav-center a:hover, .nav-center a.active { color: var(--accent-blue); } |
| 31 | + |
| 32 | + .nav-right { flex: 1; display: flex; justify-content: flex-end; } |
31 | 33 | .dropdown { position: relative; display: inline-block; padding: 10px 0; } |
32 | 34 | .dropbtn { color: var(--text-main); font-weight: 700; font-size: 0.95rem; cursor: pointer; background: rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border-color); transition: 0.3s; } |
33 | 35 | .dropdown:hover .dropbtn { background: rgba(255,255,255,0.2); } |
34 | | - .dropdown-content { display: none; position: absolute; left: 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; } |
| 36 | + |
| 37 | + /* Dropdown wycentrowany do prawej strony */ |
| 38 | + .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; } |
35 | 39 | .dropdown:hover .dropdown-content { display: block; opacity: 1; transform: translateY(0); } |
36 | 40 | .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; } |
37 | 41 | .dropdown-content a:last-child { border-bottom: none; } |
38 | 42 | .dropdown-content a:hover { background: rgba(255,255,255,0.1); padding-left: 25px; } |
39 | 43 |
|
40 | | - .nav-right { display: flex; align-items: center; gap: 25px; } |
41 | | - .nav-right a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; } |
42 | | - .nav-right a:hover, .nav-right a.active { color: var(--accent-blue); } |
43 | | - |
44 | | - /* Minimalistyczny tekst na środku */ |
45 | 44 | .hero-content { position: relative; z-index: 2; text-align: center; margin-top: 25vh; padding: 0 20px; } |
46 | 45 | .hero-title { font-size: 4rem; font-weight: 900; margin: 0; letter-spacing: -2px; text-shadow: 0 4px 20px rgba(0,0,0,0.8); } |
47 | 46 | .hero-subtitle { font-size: 1.2rem; color: #cbd5e1; margin-top: 15px; font-weight: 500; text-shadow: 0 2px 10px rgba(0,0,0,0.8); } |
48 | 47 |
|
49 | | - @media (max-width: 768px) { .navbar { flex-direction: column; gap: 15px; } .nav-left, .nav-right { justify-content: center; width: 100%; flex-wrap: wrap; } } |
| 48 | + @media (max-width: 768px) { .navbar { flex-direction: column; gap: 15px; } .nav-left, .nav-center, .nav-right { justify-content: center; width: 100%; flex-wrap: wrap; } } |
50 | 49 | </style> |
51 | 50 | </head> |
52 | 51 | <body> |
|
55 | 54 | <nav class="navbar"> |
56 | 55 | <div class="nav-left"> |
57 | 56 | <a href="/" class="nav-brand">DevLabStudy</a> |
| 57 | + </div> |
| 58 | + <div class="nav-center"> |
| 59 | + <a href="/" class="active">Hub</a> |
| 60 | + <a href="/blog">Blog</a> |
| 61 | + <a href="/homelab">HomeLab</a> |
| 62 | + <a href="/orbit">Orbit™</a> |
| 63 | + </div> |
| 64 | + <div class="nav-right"> |
58 | 65 | <div class="dropdown"> |
59 | 66 | <span class="dropbtn">Community ▾</span> |
60 | 67 | <div class="dropdown-content"> |
|
66 | 73 | </div> |
67 | 74 | </div> |
68 | 75 | </div> |
69 | | - <div class="nav-right"> |
70 | | - <a href="/" class="active">Hub</a> |
71 | | - <a href="/blog">Blog</a> |
72 | | - <a href="/homelab">HomeLab</a> |
73 | | - <a href="/orbit">Orbit™</a> |
74 | | - </div> |
75 | 76 | </nav> |
76 | 77 |
|
77 | 78 | <main class="hero-content"> |
|
0 commit comments