|
10 | 10 | <title>Blog | DevLabStudy</title> |
11 | 11 | <link rel="icon" type="image/jpeg" href="/profileIcon_g3ffyg7edeeg1.jpeg"> |
12 | 12 | <style> |
13 | | - :root { |
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 | | - --accent-blue: #3b82f6; --radius: 12px; |
17 | | - } |
| 13 | + :root { --bg-body: #050505; --bg-nav: rgba(5, 5, 5, 0.85); --bg-card: #111; --text-main: #f8fafc; --text-muted: #94a3b8; --border-color: rgba(255, 255, 255, 0.1); --accent-blue: #3b82f6; --radius: 12px; } |
18 | 14 | body { font-family: 'Inter', sans-serif; background: var(--bg-body); color: var(--text-main); margin: 0; line-height: 1.6; } |
19 | 15 |
|
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; } |
| 16 | + /* IDENTYCZNY NAVBAR */ |
| 17 | + .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; } |
| 18 | + .nav-left { display: flex; align-items: center; gap: 30px; } |
23 | 19 | .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; } |
25 | | - .nav-center a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; } |
26 | | - .nav-center a:hover, .nav-center a.active { color: var(--accent-blue); } |
27 | | - .nav-right { flex: 1; display: flex; justify-content: flex-end; } |
28 | 20 | .dropdown { position: relative; display: inline-block; padding: 10px 0; } |
29 | | - .dropbtn { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: 0.3s; cursor: pointer; } |
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; } |
| 21 | + .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; } |
| 22 | + .dropdown:hover .dropbtn { background: rgba(255,255,255,0.2); } |
| 23 | + .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; } |
32 | 24 | .dropdown:hover .dropdown-content { display: block; opacity: 1; transform: translateY(0); } |
33 | 25 | .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; } |
34 | | - .dropdown-content a:last-child { border-bottom: none; } |
35 | | - .dropdown-content a:hover { background: rgba(255,255,255,0.05); padding-left: 25px; } |
| 26 | + .dropdown-content a:hover { background: rgba(255,255,255,0.1); padding-left: 25px; } |
| 27 | + .nav-right { display: flex; align-items: center; gap: 25px; } |
| 28 | + .nav-right a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; } |
| 29 | + .nav-right a:hover, .nav-right a.active { color: var(--accent-blue); } |
36 | 30 |
|
37 | 31 | .container { max-width: 900px; margin: 40px auto; padding: 0 20px; min-height: 60vh; } |
38 | | - .post-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 25px; margin-bottom: 20px; transition: 0.2s; } |
| 32 | + .post-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 25px; margin-bottom: 20px; transition: 0.2s; border-left: 4px solid var(--accent-blue); } |
39 | 33 | .post-item:hover { border-color: var(--accent-blue); transform: translateY(-3px); } |
40 | 34 | .post-title a { color: var(--text-main); text-decoration: none; font-size: 1.4rem; font-weight: 700; } |
41 | 35 |
|
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; } } |
| 36 | + @media (max-width: 768px) { .navbar { flex-direction: column; gap: 15px; } .nav-left, .nav-right { justify-content: center; width: 100%; flex-wrap: wrap; } } |
43 | 37 | </style> |
44 | 38 | </head> |
45 | 39 | <body> |
46 | 40 | <nav class="navbar"> |
47 | | - <div class="nav-left"><a href="/" class="nav-brand">DevLabStudy</a></div> |
48 | | - <div class="nav-center"> |
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"> |
| 41 | + <div class="nav-left"> |
| 42 | + <a href="/" class="nav-brand">DevLabStudy</a> |
55 | 43 | <div class="dropdown"> |
56 | | - <span class="dropbtn">Community</span> |
| 44 | + <span class="dropbtn">Community ▾</span> |
57 | 45 | <div class="dropdown-content"> |
58 | 46 | <a href="https://github.com/DevLabStudy">GitHub <span>↗</span></a> |
59 | 47 | <a href="https://www.youtube.com/@devlabstudy">YouTube <span>↗</span></a> |
|
63 | 51 | </div> |
64 | 52 | </div> |
65 | 53 | </div> |
| 54 | + <div class="nav-right"> |
| 55 | + <a href="/">Hub</a> |
| 56 | + <a href="/blog" class="active">Blog</a> |
| 57 | + <a href="/homelab">HomeLab</a> |
| 58 | + <a href="/orbit">Orbit™</a> |
| 59 | + </div> |
66 | 60 | </nav> |
| 61 | + |
67 | 62 | <main class="container"> |
68 | 63 | <h1 style="border-bottom: 2px solid var(--border-color); padding-bottom: 10px;">Articles & Research</h1> |
69 | | - </main> |
| 64 | + <ul style="list-style: none; padding: 0;"> |
| 65 | + |
| 66 | + <li class="post-item"> |
| 67 | + <div style="font-size: 0.9rem; color: var(--text-muted);">Zawsze Widoczny</div> |
| 68 | + <h2 class="post-title"><a href="#">Welcome to DevLab Blog</a></h2> |
| 69 | + <p style="color: #cbd5e1;">Tutaj wkrótce pojawią się moje wpisy z plików Markdown. Jeśli widzisz tylko ten wpis, sprawdź poprawność dat w folderze _posts.</p> |
| 70 | + </li> |
| 71 | + |
| 72 | + {% for post in site.posts %} |
| 73 | + <li class="post-item"> |
| 74 | + <div style="font-size: 0.9rem; color: var(--text-muted);">{{ post.date | date: "%B %d, %Y" }}</div> |
| 75 | + <h2 class="post-title"><a href="{{ post.url }}">{{ post.title }}</a></h2> |
| 76 | + <p>{{ post.excerpt | strip_html | truncatewords: 30 }}</p> |
| 77 | + </li> |
| 78 | + {% endfor %} |
| 79 | + |
| 80 | + </ul> |
| 81 | + </main> |
70 | 82 | </body> |
71 | 83 | </html> |
0 commit comments