Skip to content

Commit ca8c531

Browse files
authored
Update index.html
1 parent 765ee09 commit ca8c531

1 file changed

Lines changed: 19 additions & 18 deletions

File tree

‎index.html‎

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,41 @@
1111
--border-color: rgba(255, 255, 255, 0.1); --accent-blue: #3b82f6;
1212
}
1313

14-
/* TWOJE NOWE TŁO Z SERWERAMI */
1514
body {
1615
font-family: 'Inter', -apple-system, sans-serif; margin: 0; min-height: 100vh;
1716
background: #000 url('/background.png') no-repeat center center fixed;
1817
background-size: cover; color: var(--text-main); overflow-x: hidden;
1918
}
2019

21-
/* Przyciemnienie obrazka, żeby tekst był czytelny */
2220
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1; }
2321

24-
/* --- NOWY NAVBAR (Community z lewej, linki z prawej) --- */
22+
/* --- PERFEKCYJNY NAVBAR --- */
2523
.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; }
2624

27-
.nav-left { display: flex; align-items: center; gap: 30px; }
25+
.nav-left { flex: 1; display: flex; justify-content: flex-start; }
2826
.nav-brand { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--text-main); letter-spacing: -0.5px; }
2927

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; }
3133
.dropdown { position: relative; display: inline-block; padding: 10px 0; }
3234
.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; }
3335
.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; }
3539
.dropdown:hover .dropdown-content { display: block; opacity: 1; transform: translateY(0); }
3640
.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; }
3741
.dropdown-content a:last-child { border-bottom: none; }
3842
.dropdown-content a:hover { background: rgba(255,255,255,0.1); padding-left: 25px; }
3943

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 */
4544
.hero-content { position: relative; z-index: 2; text-align: center; margin-top: 25vh; padding: 0 20px; }
4645
.hero-title { font-size: 4rem; font-weight: 900; margin: 0; letter-spacing: -2px; text-shadow: 0 4px 20px rgba(0,0,0,0.8); }
4746
.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); }
4847

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; } }
5049
</style>
5150
</head>
5251
<body>
@@ -55,6 +54,14 @@
5554
<nav class="navbar">
5655
<div class="nav-left">
5756
<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">
5865
<div class="dropdown">
5966
<span class="dropbtn">Community ▾</span>
6067
<div class="dropdown-content">
@@ -66,12 +73,6 @@
6673
</div>
6774
</div>
6875
</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>
7576
</nav>
7677

7778
<main class="hero-content">

0 commit comments

Comments
 (0)