Skip to content

Commit 55baef6

Browse files
authored
Update blog.html
1 parent b7ec5ab commit 55baef6

1 file changed

Lines changed: 17 additions & 14 deletions

File tree

‎blog.html‎

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,24 @@
1111
<link rel="icon" type="image/png" href="/qr-code.png">
1212
<style>
1313
: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);
1616
--accent-blue: #3b82f6; --radius: 12px;
1717
}
1818
body { font-family: 'Inter', sans-serif; background: var(--bg-body); color: var(--text-main); margin: 0; line-height: 1.6; }
1919

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; }
2425
.nav-center a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; }
2526
.nav-center a:hover, .nav-center a.active { color: var(--accent-blue); }
26-
27+
.nav-right { flex: 1; display: flex; justify-content: flex-end; }
2728
.dropdown { position: relative; display: inline-block; padding: 10px 0; }
2829
.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; }
3132
.dropdown:hover .dropdown-content { display: block; opacity: 1; transform: translateY(0); }
3233
.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; }
3334
.dropdown-content a:last-child { border-bottom: none; }
@@ -38,14 +39,19 @@
3839
.post-item:hover { border-color: var(--accent-blue); transform: translateY(-3px); }
3940
.post-title a { color: var(--text-main); text-decoration: none; font-size: 1.4rem; font-weight: 700; }
4041

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; } }
4243
</style>
4344
</head>
4445
<body>
4546
<nav class="navbar">
46-
<a href="/" class="nav-brand">DevLabStudy</a>
47+
<div class="nav-left"><a href="/" class="nav-brand">DevLabStudy</a></div>
4748
<div class="nav-center">
4849
<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">
4955
<div class="dropdown">
5056
<span class="dropbtn">Community</span>
5157
<div class="dropdown-content">
@@ -56,9 +62,6 @@
5662
<a href="https://www.reddit.com/user/devlabstudy">Reddit <span>↗</span></a>
5763
</div>
5864
</div>
59-
<a href="/blog" class="active">Blog</a>
60-
<a href="/homelab">HomeLab</a>
61-
<a href="/orbit">Orbit™</a>
6265
</div>
6366
</nav>
6467

0 commit comments

Comments
 (0)