Skip to content

Commit 65e1258

Browse files
authored
Refactor hero section and update social stats
Updated hero section styles and content, modified font sizes, and adjusted layout for better alignment. Removed unused image wrapper and updated social stats.
1 parent 9fe3731 commit 65e1258

1 file changed

Lines changed: 20 additions & 54 deletions

File tree

‎index.html‎

Lines changed: 20 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,19 @@
33
title: Home
44
---
55
<style>
6-
/* HERO SECTION */
6+
/* HERO SECTION (Zmienione na jednokulumnowe, wycentrowane do lewej) */
77
.hero {
8-
display: grid;
9-
grid-template-columns: 1.1fr 0.9fr;
10-
gap: 60px;
11-
align-items: center;
8+
margin-top: 40px;
129
margin-bottom: 120px;
10+
max-width: 850px; /* Ograniczamy szerokość, by tekst nie rozlewał się na cały ekran */
1311
}
1412

1513
.hero-title {
16-
font-size: 5rem;
14+
font-size: 5.5rem;
1715
font-weight: 900;
1816
margin: 0 0 25px 0;
1917
line-height: 1.05;
2018
letter-spacing: -2px;
21-
/* Gradient tekstu: błękitny do białego */
2219
background: linear-gradient(135deg, var(--text-main) 30%, var(--accent-blue) 100%);
2320
-webkit-background-clip: text;
2421
-webkit-text-fill-color: transparent;
@@ -31,10 +28,9 @@
3128

3229
.hero-desc {
3330
color: var(--text-muted);
34-
font-size: 1.1rem;
31+
font-size: 1.15rem;
3532
line-height: 1.8;
3633
margin-bottom: 45px;
37-
max-width: 540px;
3834
}
3935

4036
.hero-buttons {
@@ -77,28 +73,6 @@
7773
transform: translateY(-2px);
7874
}
7975

80-
/* Zdjęcie z poświatą */
81-
.hero-image-wrapper {
82-
position: relative;
83-
}
84-
.hero-image-wrapper::before {
85-
content: '';
86-
position: absolute;
87-
top: 20px; left: -20px; right: 20px; bottom: -20px;
88-
background: linear-gradient(135deg, var(--accent-blue), transparent);
89-
border-radius: 12px;
90-
opacity: 0.15;
91-
z-index: -1;
92-
}
93-
.hero-image {
94-
width: 100%;
95-
height: 550px;
96-
background: #000;
97-
border-radius: 12px;
98-
object-fit: cover;
99-
border: 1px solid var(--border);
100-
}
101-
10276
/* SOCIAL STATS CARDS */
10377
.stats-grid {
10478
display: grid;
@@ -218,8 +192,6 @@
218192
}
219193

220194
@media (max-width: 1024px) {
221-
.hero { grid-template-columns: 1fr; gap: 50px; }
222-
.hero-image { height: 400px; }
223195
.stats-grid { grid-template-columns: 1fr; }
224196
.archive-item { grid-template-columns: 1fr; gap: 12px; padding: 25px 10px; }
225197
.archive-date { text-align: left; }
@@ -228,21 +200,14 @@
228200

229201
<!-- SEKJCA HERO -->
230202
<section class="hero">
231-
<div>
232-
<span class="section-tag">INFRASTRUKTURA & KOD</span>
233-
<h1 class="hero-title">DEVLAB<br>STUDY<span>_</span></h1>
234-
<p class="hero-desc">
235-
Dokumentuję rozbudowę mojego środowiska homelab (Cisco, MikroTik, Proxmox), konfigurację sieci LAN/VLAN i optymalizację energetyczną. Dodatkowo tworzę autorskie aplikacje z linii DevLab Network Toolkit.
236-
</p>
237-
<div class="hero-buttons">
238-
<a href="/homelab" class="btn btn-primary">Homelab</a>
239-
<a href="/apps" class="btn btn-secondary">Aplikacje</a>
240-
</div>
241-
</div>
242-
243-
<!-- Miejsce na zdjęcie (Rack, sprzęt itp.) -->
244-
<div class="hero-image-wrapper">
245-
<img src="/assets/images/homelab-rack.jpg" alt="DevLab Homelab Rack" class="hero-image">
203+
<span class="section-tag">INFRASTRUKTURA & KOD</span>
204+
<h1 class="hero-title">DEVLAB<br>STUDY<span>_</span></h1>
205+
<p class="hero-desc">
206+
Dokumentuję rozbudowę mojego środowiska homelab (Cisco, MikroTik, Proxmox), konfigurację sieci LAN/VLAN i optymalizację energetyczną. Dodatkowo tworzę autorskie aplikacje z linii DevLab Network Toolkit.
207+
</p>
208+
<div class="hero-buttons">
209+
<a href="/homelab" class="btn btn-primary">Homelab</a>
210+
<a href="/apps" class="btn btn-secondary">Aplikacje</a>
246211
</div>
247212
</section>
248213

@@ -258,22 +223,23 @@ <h1 class="hero-title">DEVLAB<br>STUDY<span>_</span></h1>
258223
</div>
259224
</div>
260225
<div>
261-
<div class="stat-number">1 240</div>
226+
<div class="stat-number">34</div>
262227
<div class="stat-label">Subskrypcji</div>
263228
</div>
264229
</div>
265230

231+
<!-- Zaktualizowana karta PC Hub -->
266232
<div class="stat-card">
267233
<div class="stat-header">
268-
<div class="stat-icon">♪</div>
234+
<div class="stat-icon">💻</div>
269235
<div>
270-
<div class="stat-name">DevLabStudy</div>
271-
<div class="stat-platform">@TikTok</div>
236+
<div class="stat-name">PC Hub</div>
237+
<div class="stat-platform">@YouTube</div>
272238
</div>
273239
</div>
274240
<div>
275-
<div class="stat-number">5 800</div>
276-
<div class="stat-label">Obserwujących</div>
241+
<div class="stat-number">0</div>
242+
<div class="stat-label">Subskrypcji</div>
277243
</div>
278244
</div>
279245

0 commit comments

Comments
 (0)