|
25 | 25 | -webkit-background-clip: text; |
26 | 26 | -webkit-text-fill-color: transparent; |
27 | 27 | } |
28 | | - |
29 | | - .hero-title span { |
30 | | - color: var(--accent-contrast); |
| 28 | + |
| 29 | + .hero-title span { |
| 30 | + color: var(--accent-contrast); |
31 | 31 | -webkit-text-fill-color: var(--accent-contrast); |
32 | 32 | } |
33 | 33 |
|
|
55 | 55 | text-transform: uppercase; |
56 | 56 | letter-spacing: 1px; |
57 | 57 | } |
58 | | - |
| 58 | + |
59 | 59 | .btn-primary { |
60 | 60 | background: var(--accent-contrast); |
61 | 61 | color: #000; |
62 | 62 | border: none; |
63 | 63 | box-shadow: 0 4px 20px rgba(255, 94, 0, 0.3); |
64 | 64 | } |
65 | | - .btn-primary:hover { |
66 | | - background: #ff7a2e; |
| 65 | + .btn-primary:hover { |
| 66 | + background: #ff7a2e; |
67 | 67 | transform: translateY(-2px); |
68 | 68 | box-shadow: 0 6px 25px rgba(255, 94, 0, 0.4); |
69 | 69 | } |
70 | | - |
| 70 | + |
71 | 71 | .btn-secondary { |
72 | 72 | background: rgba(0, 210, 255, 0.05); |
73 | 73 | color: var(--accent-blue); |
74 | 74 | border: 1px solid rgba(0, 210, 255, 0.3); |
75 | 75 | } |
76 | | - .btn-secondary:hover { |
| 76 | + .btn-secondary:hover { |
77 | 77 | background: rgba(0, 210, 255, 0.1); |
78 | 78 | border-color: var(--accent-blue); |
79 | 79 | transform: translateY(-2px); |
|
98 | 98 | backdrop-filter: blur(10px); |
99 | 99 | transition: 0.3s; |
100 | 100 | } |
101 | | - |
| 101 | + |
102 | 102 | .stat-card:hover { |
103 | 103 | border-color: var(--accent-blue); |
104 | 104 | background: rgba(10, 15, 25, 0.85); |
|
156 | 156 | transform: translateY(-3px); |
157 | 157 | box-shadow: 0 10px 30px rgba(0,210,255,0.15); |
158 | 158 | } |
159 | | - .home-news-thumb { |
160 | | - width: 100%; |
161 | | - height: 180px; |
162 | | - object-fit: cover; |
163 | | - border-bottom: 1px solid var(--border); |
164 | | - display: block; |
165 | | - } |
166 | 159 | .home-news-content { |
167 | 160 | padding: 20px; |
168 | 161 | display: flex; |
|
171 | 164 | flex-grow: 1; |
172 | 165 | } |
173 | 166 |
|
| 167 | + /* MINIATURKA / IKONA NEWSA */ |
| 168 | + .news-thumb { |
| 169 | + width: 100%; |
| 170 | + height: 170px; |
| 171 | + display: flex; |
| 172 | + align-items: center; |
| 173 | + justify-content: center; |
| 174 | + background: radial-gradient(circle at 30% 20%, rgba(0, 210, 255, 0.12), rgba(0, 0, 0, 0.55)); |
| 175 | + border-bottom: 1px solid var(--border); |
| 176 | + overflow: hidden; |
| 177 | + } |
| 178 | + .news-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; } |
| 179 | + .news-thumb-img.is-icon { width: 96px; height: 96px; object-fit: contain; } |
| 180 | + .news-thumb-fallback { |
| 181 | + font-size: 3.2rem; |
| 182 | + width: 96px; height: 96px; |
| 183 | + display: flex; align-items: center; justify-content: center; |
| 184 | + background: rgba(0, 210, 255, 0.08); |
| 185 | + border: 1px solid rgba(0, 210, 255, 0.25); |
| 186 | + border-radius: 18px; |
| 187 | + } |
| 188 | + |
174 | 189 | .sponsors-grid { |
175 | 190 | display: grid; |
176 | 191 | grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); |
|
275 | 290 | transition: 0.2s; |
276 | 291 | text-decoration: none; |
277 | 292 | } |
278 | | - |
| 293 | + |
279 | 294 | .archive-item:hover { |
280 | 295 | background: rgba(0, 210, 255, 0.03); |
281 | 296 | padding-left: 25px; |
|
295 | 310 | color: var(--text-main); |
296 | 311 | letter-spacing: 0.5px; |
297 | 312 | } |
298 | | - |
| 313 | + |
299 | 314 | .archive-item:hover .archive-title { |
300 | 315 | color: var(--accent-blue); |
301 | 316 | } |
@@ -371,31 +386,12 @@ <h1 class="hero-title">DEVLAB<br>STUDY<span>_</span></h1> |
371 | 386 | </a> |
372 | 387 | </div> |
373 | 388 |
|
374 | | -<!-- SEKCJA NAJNOWSZE NEWSY Z AUTOMATYCZNYM WYCIĄGANIEM OBRAZKA --> |
| 389 | +<!-- SEKCJA NAJNOWSZE NEWSY --> |
375 | 390 | <span class="section-tag">NAJNOWSZE RAPORTY TECHNOLOGICZNE (NEWSY)</span> |
376 | 391 | <div class="newsy-home-grid"> |
377 | 392 | {% for post in site.newsy limit:3 %} |
378 | | - {% assign post_thumb = nil %} |
379 | | - {% if post.content contains '<img' %} |
380 | | - {% assign img_tag = post.content | split: '<img' | second %} |
381 | | - {% assign img_src = img_tag | split: 'src="' | second | split: '"' | first %} |
382 | | - {% if img_src %} |
383 | | - {% assign post_thumb = img_src %} |
384 | | - {% endif %} |
385 | | - {% endif %} |
386 | | - {% unless post_thumb %} |
387 | | - {% if post.content contains '![' %} |
388 | | - {% assign md_img = post.content | split: '![' | second | split: ']' | second | split: '(' | second | split: ')' | first %} |
389 | | - {% if md_img %} |
390 | | - {% assign post_thumb = md_img %} |
391 | | - {% endif %} |
392 | | - {% endif %} |
393 | | - {% endunless %} |
394 | | - |
395 | | - <a href="{{ post.url }}" class="home-news-card"> |
396 | | - {% if post_thumb %} |
397 | | - <img src="{{ post_thumb | relative_url }}" alt="{{ post.title }}" class="home-news-thumb"> |
398 | | - {% endif %} |
| 393 | + <a href="{{ post.url | relative_url }}" class="home-news-card"> |
| 394 | + {% include news-thumb.html post=post %} |
399 | 395 | <div class="home-news-content"> |
400 | 396 | <div> |
401 | 397 | <div style="font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--accent-contrast); margin-bottom: 8px; font-weight: 800;"> |
|
0 commit comments