|
11 | 11 |
|
12 | 12 | /* IDENTYCZNY NAVBAR */ |
13 | 13 | .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; } |
14 | | - .nav-left { display: flex; align-items: center; gap: 30px; } |
| 14 | + .nav-left { flex: 1; display: flex; justify-content: flex-start; } |
15 | 15 | .nav-brand { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--text-main); letter-spacing: -0.5px; } |
| 16 | + .nav-center { flex: 2; display: flex; justify-content: center; gap: 30px; } |
| 17 | + .nav-center a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; } |
| 18 | + .nav-center a:hover, .nav-center a.active { color: var(--accent-purple); } |
| 19 | + .nav-right { flex: 1; display: flex; justify-content: flex-end; } |
| 20 | + |
16 | 21 | .dropdown { position: relative; display: inline-block; padding: 10px 0; } |
17 | 22 | .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; } |
18 | 23 | .dropdown:hover .dropbtn { background: rgba(255,255,255,0.2); } |
19 | | - .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; } |
| 24 | + .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; } |
20 | 25 | .dropdown:hover .dropdown-content { display: block; opacity: 1; transform: translateY(0); } |
21 | 26 | .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; } |
22 | 27 | .dropdown-content a:hover { background: rgba(255,255,255,0.1); padding-left: 25px; } |
23 | | - .nav-right { display: flex; align-items: center; gap: 25px; } |
24 | | - .nav-right a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; } |
25 | | - .nav-right a:hover, .nav-right a.active { color: var(--accent-purple); } |
26 | 28 |
|
27 | 29 | .container { max-width: 900px; margin: 60px auto; padding: 0 20px; } |
28 | 30 | .hero { text-align: center; margin-bottom: 50px; } |
|
33 | 35 | .btn-github { display: inline-block; background: var(--accent-purple); color: white; text-decoration: none; padding: 15px 30px; border-radius: 12px; font-weight: 700; margin-top: 15px; transition: 0.3s; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4); text-align: center; font-size: 1.1rem; } |
34 | 36 | .btn-github:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6); } |
35 | 37 |
|
36 | | - @media (max-width: 768px) { .navbar { flex-direction: column; gap: 15px; } .nav-left, .nav-right { justify-content: center; width: 100%; flex-wrap: wrap; } } |
| 38 | + @media (max-width: 768px) { .navbar { flex-direction: column; gap: 15px; } .nav-left, .nav-center, .nav-right { justify-content: center; width: 100%; flex-wrap: wrap; } } |
37 | 39 | </style> |
38 | 40 | </head> |
39 | 41 | <body> |
40 | 42 | <nav class="navbar"> |
41 | 43 | <div class="nav-left"> |
42 | 44 | <a href="/" class="nav-brand">DevLabStudy</a> |
| 45 | + </div> |
| 46 | + <div class="nav-center"> |
| 47 | + <a href="/">Hub</a> |
| 48 | + <a href="/blog">Blog</a> |
| 49 | + <a href="/homelab">HomeLab</a> |
| 50 | + <a href="/orbit" class="active">Orbit™</a> |
| 51 | + </div> |
| 52 | + <div class="nav-right"> |
43 | 53 | <div class="dropdown"> |
44 | 54 | <span class="dropbtn">Community ▾</span> |
45 | 55 | <div class="dropdown-content"> |
|
51 | 61 | </div> |
52 | 62 | </div> |
53 | 63 | </div> |
54 | | - <div class="nav-right"> |
55 | | - <a href="/">Hub</a> |
56 | | - <a href="/blog">Blog</a> |
57 | | - <a href="/homelab">HomeLab</a> |
58 | | - <a href="/orbit" class="active">Orbit™</a> |
59 | | - </div> |
60 | 64 | </nav> |
61 | 65 |
|
62 | 66 | <main class="container"> |
|
0 commit comments