-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHome-page.html
More file actions
305 lines (290 loc) · 23.6 KB
/
Copy pathHome-page.html
File metadata and controls
305 lines (290 loc) · 23.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>HackerOS - Home</title>
<link rel="icon" type="image/png" href="HackerOS.png">
<style>
*{margin:0;padding:0;box-sizing:border-box;font-family:'Arial',sans-serif;}
body{background-color:#1C2526;color:#FFF;line-height:1.6;}
header{background-color:#121212;position:fixed;width:100%;top:0;z-index:1000;box-shadow:0 4px 10px rgba(0,0,0,.7);transition:background-color .3s;}
header:hover{background-color:#1A1A1A;}
.social-links{background-color:rgba(255,255,255,.05);padding:10px 0;display:flex;justify-content:center;gap:12px;border-bottom:1px solid rgba(255,255,255,.1);}
.social-links a{display:flex;justify-content:center;align-items:center;width:38px;height:38px;background-color:#2F3A44;border-radius:50%;transition:background-color .3s,transform .3s,box-shadow .3s;}
.social-links a:hover{background-color:#B0B0B0;transform:scale(1.15);box-shadow:0 3px 8px rgba(255,255,255,.3);}
.social-links svg{width:22px;height:22px;fill:#FFF;transition:fill .3s;}
.social-links a:hover svg{fill:#121212;}
.social-links img{width:24px;height:24px;object-fit:contain;}
nav{max-width:1200px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;padding:15px 20px;}
nav .logo img{height:40px;width:auto;}
nav ul{list-style:none;display:flex;gap:25px;align-items:center;}
nav ul li a{color:#FFF;text-decoration:none;font-size:17px;transition:color .3s,transform .3s;position:relative;}
nav ul li a::after{content:'';position:absolute;width:0;height:2px;bottom:-5px;left:0;background-color:#B0B0B0;transition:width .3s;}
nav ul li a:hover::after{width:100%;}
nav ul li a:hover{color:#B0B0B0;transform:translateY(-2px);}
.hero{height:100vh;display:flex;justify-content:center;align-items:center;text-align:center;background:linear-gradient(45deg,#1C2526,#2F3A44);position:relative;overflow:hidden;padding-top:100px;}
.hero::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background:radial-gradient(circle,rgba(255,255,255,.1) 0%,rgba(0,0,0,.5) 100%);z-index:-1;}
.hero-content h1{font-size:48px;margin-bottom:20px;text-shadow:2px 2px 4px rgba(0,0,0,.5);}
.hero-content p{font-size:20px;margin-bottom:30px;color:#B0B0B0;}
.hero-buttons{display:flex;gap:20px;justify-content:center;flex-wrap:wrap;}
.btn{display:inline-block;padding:12px 24px;background-color:#B0B0B0;color:#121212;text-decoration:none;border-radius:5px;font-weight:bold;transition:background-color .3s,transform .3s,box-shadow .3s;}
.btn:hover{background-color:#FFF;transform:scale(1.05);box-shadow:0 4px 10px rgba(255,255,255,.2);}
footer{background-color:#121212;padding:20px;text-align:center;color:#B0B0B0;width:100%;box-shadow:0 -2px 5px rgba(0,0,0,.5);}
.footer-buttons{display:flex;justify-content:center;gap:20px;margin-bottom:10px;flex-wrap:wrap;}
.cursor{animation:blink .7s infinite;}
@keyframes blink{0%{opacity:1}50%{opacity:0}100%{opacity:1}}
/* ── Highlights carousel ─────────────────────────────────────────── */
.highlights{max-width:1200px;margin:0 auto 60px;padding:50px 20px 0;}
.highlights h2{font-size:26px;margin-bottom:6px;text-align:center;}
.highlights .highlights-sub{text-align:center;color:#B0B0B0;font-size:14.5px;margin-bottom:26px;}
.highlights-viewport{overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#3A4A55 transparent;padding-bottom:6px;}
.highlights-viewport::-webkit-scrollbar{height:8px;}
.highlights-viewport::-webkit-scrollbar-thumb{background:#3A4A55;border-radius:8px;}
.highlights-track{display:flex;gap:22px;padding:6px 4px 10px;}
.highlight-card{flex:0 0 300px;background:#2F3A44;border-radius:12px;padding:24px;box-shadow:0 4px 10px rgba(0,0,0,.3);display:flex;flex-direction:column;transition:transform .3s,box-shadow .3s;scroll-snap-align:start;}
.highlight-card:hover{transform:translateY(-4px);box-shadow:0 6px 16px rgba(0,0,0,.45);}
.highlight-card .tag{display:inline-block;font-size:10.5px;letter-spacing:1.5px;text-transform:uppercase;color:#00d4ff;background:rgba(0,212,255,.1);border:1px solid rgba(0,212,255,.3);padding:3px 8px;border-radius:3px;margin-bottom:12px;align-self:flex-start;}
.highlight-card h3{font-size:19px;margin-bottom:10px;}
.highlight-card p{font-size:14.5px;color:#C6C6C6;margin-bottom:18px;flex:1;}
.highlight-card a.card-link{align-self:flex-start;color:#4a9eff;text-decoration:none;font-weight:bold;font-size:14px;transition:color .2s;}
.highlight-card a.card-link:hover{color:#7fb8ff;text-decoration:underline;}
@media(max-width:600px){.highlight-card{flex:0 0 260px;}}
/* ── Special day: HackerOS anniversary (March 3rd) ──────────────────── */
.anniv-badge,.birthday-badge{display:none;}
body.day-anniversary .hero{background:linear-gradient(135deg,#2b1d3d,#3a2450,#1C2526,#20303a);background-size:300% 300%;animation:annivGradient 12s ease infinite;}
@keyframes annivGradient{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
body.day-anniversary .hero::before{background:radial-gradient(circle,rgba(255,208,110,.22) 0%,rgba(0,0,0,.5) 100%);}
body.day-anniversary .anniv-badge{display:inline-block;margin-bottom:14px;padding:6px 16px;border-radius:20px;background:rgba(255,208,110,.12);border:1px solid rgba(255,208,110,.4);color:#ffd06e;font-size:14px;font-weight:bold;letter-spacing:.5px;}
.confetti-piece{position:absolute;top:-12px;width:8px;height:14px;opacity:.9;border-radius:2px;pointer-events:none;animation-name:confettiFall;animation-timing-function:linear;animation-iteration-count:infinite;}
@keyframes confettiFall{0%{transform:translateY(-10px) rotate(0deg);opacity:.9}100%{transform:translateY(110vh) rotate(360deg);opacity:0}}
/* ── Special day: creator's birthday (September 24th) ────────────────── */
body.day-creator-birthday .birthday-badge{display:inline-block;margin-bottom:14px;padding:6px 16px;border-radius:20px;background:rgba(0,150,255,.12);border:1px solid rgba(0,150,255,.4);color:#5fc2ff;font-size:14px;font-weight:bold;letter-spacing:.5px;}
body.day-creator-birthday .btn{background:linear-gradient(270deg,#0057ff,#00c3ff,#3aa0ff,#0057ff);background-size:600% 600%;color:#FFF;animation:btnGradientMove 4s ease infinite,btnPulse 2.2s ease-in-out infinite;box-shadow:0 0 14px rgba(0,150,255,.55);}
body.day-creator-birthday .btn:hover{transform:scale(1.08);box-shadow:0 0 26px rgba(0,180,255,.85);}
@keyframes btnGradientMove{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
@keyframes btnPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.045)}}
/* ── Special day bottom banner ───────────────────────────────────────── */
.special-day-section{display:none;max-width:800px;margin:0 auto 55px;padding:32px 26px;text-align:center;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);}
.special-day-section h2{font-size:25px;margin-bottom:14px;}
.special-day-section p{color:#C6C6C6;font-size:15.5px;}
body.day-anniversary .special-day-section{border-color:rgba(255,208,110,.4);background:rgba(255,208,110,.06);}
body.day-anniversary .special-day-section h2{color:#ffd06e;}
body.day-creator-birthday .special-day-section{border-color:rgba(0,150,255,.4);background:rgba(0,150,255,.06);}
body.day-creator-birthday .special-day-section h2{color:#5fc2ff;}
</style>
</head>
<body>
<header>
<div class="social-links">
<a href="https://discord.com/invite/8yHNcBaEKy" target="_blank" rel="noopener noreferrer" title="Discord"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M13.545 2.907a13.2 13.2 0 0 0-3.257-1.011.05.05 0 0 0-.052.025c-.141.25-.297.577-.406.833a12.2 12.2 0 0 0-3.658 0 8 8 0 0 0-.412-.833.05.05 0 0 0-.052-.025c-1.125.194-2.22.534-3.257 1.011a.04.04 0 0 0-.021.018C.356 6.024-.213 9.047.066 12.032q.003.022.021.037a13.3 13.3 0 0 0 3.995 2.02.05.05 0 0 0 .056-.019q.463-.63.818-1.329a.05.05 0 0 0-.01-.059l-.018-.011a9 9 0 0 1-1.248-.595.05.05 0 0 1-.02-.066l.015-.019q.127-.095.248-.195a.05.05 0 0 1 .051-.007c2.619 1.196 5.454 1.196 8.041 0a.05.05 0 0 1 .053.007q.121.1.248.195a.05.05 0 0 1-.004.085 8 8 0 0 1-1.249.594.05.05 0 0 0-.03.03.05.05 0 0 0 .003.041c.24.465.515.909.817 1.329a.05.05 0 0 0 .056.019 13.2 13.2 0 0 0 4.001-2.02.05.05 0 0 0 .021-.037c.334-3.451-.559-6.449-2.366-9.106a.03.03 0 0 0-.02-.019m-8.198 7.307c-.789 0-1.438-.724-1.438-1.612s.637-1.613 1.438-1.613c.807 0 1.45.73 1.438 1.613 0 .888-.637 1.612-1.438 1.612m5.316 0c-.788 0-1.438-.724-1.438-1.612s.637-1.613 1.438-1.613c.807 0 1.451.73 1.438 1.613 0 .888-.631 1.612-1.438 1.612"/></svg></a>
<a href="https://x.com/hackeros_linux" target="_blank" rel="noopener noreferrer" title="X (Twitter)"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"/></svg></a>
<a href="https://linuxiarze.pl/distro-hackeros/" target="_blank" rel="noopener noreferrer" title="Linuxiarze"><img src="https://linuxiarze.pl/obrazy/images/logo-linuxiarze1.webp" alt="Linuxiarze" onerror="this.src='https://via.placeholder.com/24'"></a>
<a href="https://distrowatch.com/table.php?distribution=hackeros" target="_blank" rel="noopener noreferrer" title="DistroWatch"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a9/Distrowatch-logo.png/24px-Distrowatch-logo.png" alt="DistroWatch" onerror="this.src='https://via.placeholder.com/24'"></a>
<a href="https://www.reddit.com/r/HackerOS_/" target="_blank" rel="noopener noreferrer" title="Reddit"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M24 11.779c0-1.459-1.192-2.645-2.657-2.645-.715 0-1.363.286-1.84.746-1.81-1.191-4.259-1.949-6.971-2.046l1.483-4.669 4.016.941-.006.058c0 .828.671 1.5 1.5 1.5s1.5-.672 1.5-1.5c0-.828-.671-1.5-1.5-1.5-.689 0-1.259.541-1.466 1.236l-4.013-.908-1.656 5.207c-2.765.093-5.236.842-7.058 2.046a2.658 2.658 0 0 0-1.844-.746C1.192 9.134 0 10.32 0 11.779c0 .996.547 1.862 1.36 2.317-.04.256-.06.516-.06.784 0 3.514 4.412 6.364 9.868 6.364 5.455 0 9.868-2.85 9.868-6.364 0-.268-.021-.528-.06-.784.814-.455 1.36-1.321 1.36-2.317zm-14.355 2.93c0-.862.695-1.559 1.555-1.559.859 0 1.554.697 1.554 1.559 0 .861-.695 1.558-1.554 1.558-.86 0-1.555-.696-1.555-1.558zm7.945 4.978c-1.678 1.143-3.901 1.805-6.344 1.805-2.442 0-4.665-.662-6.344-1.805-.396-.269-.496-.766-.227-1.161.27-.396.766-.496 1.161-.227 1.374.934 3.184 1.48 5.41 1.48 2.226 0 4.036-.546 5.41-1.48.395-.269.891-.169 1.161.227.269.395.169.891-.227 1.161zm-.227-3.419c-.859 0-1.554-.697-1.554-1.558 0-.862.695-1.559 1.554-1.559.86 0 1.555.697 1.555 1.559 0 .861-.695 1.558-1.555 1.558z"/></svg></a>
<a href="https://github.com/HackerOS-Linux-System" target="_blank" rel="noopener noreferrer" title="GitHub"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg></a>
<a href="https://sourceforge.net/projects/hackeros/" target="_blank" rel="noopener noreferrer" title="SourceForge"><img src="https://cdn.simpleicons.org/sourceforge/white" alt="SourceForge" width="24" height="24" style="display:block;margin:auto"></a>
<a href="https://www.youtube.com/channel/UCB_b48f2diMH2JByN2OmgGw" target="_blank" rel="noopener noreferrer" title="YouTube"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/></svg></a>
</div>
<nav>
<div class="logo"><img src="HackerOS.png" alt="HackerOS Logo"></div>
<ul>
<li><a id="nav-home" href="Home-page.html">Home</a></li>
<li><a id="nav-download" href="download.html">Download</a></li>
<li><a id="nav-releases" href="releases.html">Releases</a></li>
<li><a id="nav-team" href="hackeros-team.html">HackerOS Team</a></li>
<li><a id="nav-docs" href="hackeros-documentation.html">Documentation</a></li>
</ul>
</nav>
</header>
<section class="hero">
<div class="hero-content">
<span class="anniv-badge" id="anniv-badge">🎉 Rocznica HackerOS</span>
<span class="birthday-badge" id="birthday-badge">🎂 Urodziny twórcy HackerOS</span>
<h1 id="title">Witaj w HackerOS.</h1>
<p><span id="prefix">Dystrybucja Linuksa dla: </span><span id="typing"></span><span class="cursor">|</span></p>
<div class="hero-buttons">
<a id="btn-download" href="download.html" class="btn">Pobierz Teraz</a>
<a id="btn-docs" href="hackeros-documentation.html" class="btn">Dokumentacja</a>
</div>
</div>
</section>
<section class="highlights">
<h2 id="highlights-heading">Co słychać w HackerOS</h2>
<p class="highlights-sub" id="highlights-sub">Przewiń w prawo lub poczekaj — sekcja przewija się sama.</p>
<div class="highlights-viewport" id="highlights-viewport">
<div class="highlights-track" id="highlights-track">
<div class="highlight-card">
<span class="tag" id="hl1-tag">Recenzja</span>
<h3 id="hl1-title">HackerOS okiem The New Stack</h3>
<p id="hl1-text">Dziennikarz portalu The New Stack, Jack Wallen, przetestował HackerOS i opisał go jako debianopochodną dystrybucję dla zwykłych użytkowników, graczy oraz specjalistów od cyberbezpieczeństwa, chwaląc m.in. powłokę zsh i autorskie komendy „hacker”.</p>
<a class="card-link" id="hl1-link" href="https://thenewstack.io/hackeros-is-what-a-linux-enthusiasts-os-should-be/" target="_blank" rel="noopener noreferrer">Czytaj recenzję →</a>
</div>
<div class="highlight-card">
<span class="tag" id="hl2-tag">Najnowsze wydanie</span>
<h3 id="hl2-title">HackerOS V4.9</h3>
<p id="hl2-text">Sprawdź co nowego pojawiło się w najświeższej wersji HackerOS i przejrzyj pełną listę zmian oraz historię wcześniejszych wydań.</p>
<a class="card-link" id="hl2-link" href="releases.html">Zobacz changelog →</a>
</div>
<div class="highlight-card">
<span class="tag" id="hl3-tag">Społeczność</span>
<h3 id="hl3-title">Dołącz do społeczności</h3>
<p id="hl3-text">Masz pytania, pomysły albo chcesz po prostu pogadać o HackerOS? Dołącz do naszego serwera Discord i bądź na bieżąco.</p>
<a class="card-link" id="hl3-link" href="https://discord.com/invite/8yHNcBaEKy" target="_blank" rel="noopener noreferrer">Dołącz na Discordzie →</a>
</div>
</div>
</div>
</section>
<section class="special-day-section" id="special-day-section">
<h2 id="special-day-title"></h2>
<p id="special-day-text"></p>
</section>
<footer>
<div class="footer-buttons">
<a id="footer-forum" href="https://github.com/HackerOS-Linux-System/HackerOS/discussions" class="btn">Forum Dyskusyjne</a>
<a id="footer-bug" href="https://github.com/HackerOS-Linux-System/HackerOS/issues" class="btn">Zgłoś błąd</a>
<a id="footer-android" href="https://github.com/HackerOS-Linux-System/HackerOS-App/releases/download/v0.6/HackerOS-App-0.6.apk" class="btn">Pobierz aplikacje na androida</a>
</div>
<p id="footer-copy">© 2026 HackerOS. Wszelkie prawa zastrzeżone.</p>
</footer>
<script src="translations/lang-core.js"></script>
<script src="translations/home-page.js"></script>
<script src="translations/lang-switcher.js"></script>
<script>
let typingWords=[];let typingIdx=0;let typingTimer=null;
const typingEl=document.getElementById('typing');
function typeWord(w){let j=0;typingTimer=setInterval(()=>{if(j<w.length){typingEl.textContent+=w.charAt(j++);}else{clearInterval(typingTimer);setTimeout(deleteWord,2000);}},100);}
function deleteWord(){typingTimer=setInterval(()=>{if(typingEl.textContent.length>0){typingEl.textContent=typingEl.textContent.slice(0,-1);}else{clearInterval(typingTimer);typingIdx=(typingIdx+1)%typingWords.length;setTimeout(()=>typeWord(typingWords[typingIdx]),500);}},50);}
function applyLang(lang){
const t=window.HACKEROS_TRANS_HOME[lang];if(!t)return;
document.documentElement.lang=lang;
document.getElementById('title').textContent=t.title;
document.getElementById('prefix').textContent=t.prefix;
document.getElementById('btn-download').textContent=t.btnDownload;
document.getElementById('btn-docs').textContent=t.btnDocs;
document.getElementById('footer-forum').textContent=t.footerForum;
document.getElementById('footer-bug').textContent=t.footerBug;
document.getElementById('footer-android').textContent=t.footerAndroid;
document.getElementById('footer-copy').textContent=t.footerCopy;
document.getElementById('nav-home').textContent=t.navHome;
document.getElementById('nav-download').textContent=t.navDownload;
document.getElementById('nav-releases').textContent=t.navReleases;
document.getElementById('nav-team').textContent=t.navTeam;
document.getElementById('nav-docs').textContent=t.navDocs;
if(typingTimer)clearInterval(typingTimer);typingEl.textContent='';
typingWords=t.words;typingIdx=0;typeWord(typingWords[0]);}
/* ── Highlights i18n (falls back to English for languages not listed) ── */
const HIGHLIGHTS_I18N={
pl:{heading:'Co słychać w HackerOS',sub:'Przewiń w prawo lub poczekaj — sekcja przewija się sama.',
hl1Tag:'Recenzja',hl1Title:'HackerOS okiem The New Stack',
hl1Text:'Dziennikarz portalu The New Stack, Jack Wallen, przetestował HackerOS i opisał go jako debianopochodną dystrybucję dla zwykłych użytkowników, graczy oraz specjalistów od cyberbezpieczeństwa, chwaląc m.in. powłokę zsh i autorskie komendy „hacker”.',
hl1Link:'Czytaj recenzję →',
hl2Tag:'Najnowsze wydanie',hl2Title:'HackerOS V4.9',
hl2Text:'Sprawdź co nowego pojawiło się w najświeższej wersji HackerOS i przejrzyj pełną listę zmian oraz historię wcześniejszych wydań.',
hl2Link:'Zobacz changelog →',
hl3Tag:'Społeczność',hl3Title:'Dołącz do społeczności',
hl3Text:'Masz pytania, pomysły albo chcesz po prostu pogadać o HackerOS? Dołącz do naszego serwera Discord i bądź na bieżąco.',
hl3Link:'Dołącz na Discordzie →'},
en:{heading:'What\'s new in HackerOS',sub:'Scroll right, or just wait — this section scrolls itself.',
hl1Tag:'Review',hl1Title:'HackerOS, reviewed by The New Stack',
hl1Text:'The New Stack writer Jack Wallen tested HackerOS and described it as a Debian-based distro aimed at everyday users, gamers, and cybersecurity enthusiasts, praising its zsh shell and custom "hacker" commands.',
hl1Link:'Read the review →',
hl2Tag:'Latest release',hl2Title:'HackerOS V4.9',
hl2Text:'See what\'s new in the latest HackerOS release and browse the full changelog along with the history of previous versions.',
hl2Link:'View changelog →',
hl3Tag:'Community',hl3Title:'Join the community',
hl3Text:'Got questions, ideas, or just want to talk about HackerOS? Join our Discord server and stay up to date.',
hl3Link:'Join Discord →'}};
function applyHighlightsLang(lang){
const t=HIGHLIGHTS_I18N[lang]||HIGHLIGHTS_I18N.en;
document.getElementById('highlights-heading').textContent=t.heading;
document.getElementById('highlights-sub').textContent=t.sub;
document.getElementById('hl1-tag').textContent=t.hl1Tag;
document.getElementById('hl1-title').textContent=t.hl1Title;
document.getElementById('hl1-text').textContent=t.hl1Text;
document.getElementById('hl1-link').textContent=t.hl1Link;
document.getElementById('hl2-tag').textContent=t.hl2Tag;
document.getElementById('hl2-title').textContent=t.hl2Title;
document.getElementById('hl2-text').textContent=t.hl2Text;
document.getElementById('hl2-link').textContent=t.hl2Link;
document.getElementById('hl3-tag').textContent=t.hl3Tag;
document.getElementById('hl3-title').textContent=t.hl3Title;
document.getElementById('hl3-text').textContent=t.hl3Text;
document.getElementById('hl3-link').textContent=t.hl3Link;
}
/* ── Auto-scrolling carousel: scrolls right every 30s, loops, manual scroll still works ── */
function initHighlightsCarousel(){
const viewport=document.getElementById('highlights-viewport');
const track=document.getElementById('highlights-track');
if(!viewport||!track)return;
setInterval(()=>{
if(!track.children.length)return;
const gap=22;
const cardWidth=track.children[0].getBoundingClientRect().width+gap;
const maxScroll=viewport.scrollWidth-viewport.clientWidth;
if(viewport.scrollLeft>=maxScroll-5){
viewport.scrollTo({left:0,behavior:'smooth'});
}else{
viewport.scrollBy({left:cardWidth,behavior:'smooth'});
}
},30000);
}
/* ── Special days: HackerOS anniversary (Mar 3) & creator's birthday (Sep 24), any year ── */
const SPECIAL_DAY_I18N={
anniversary:{
pl:{title:'Dlaczego: Kolejny rok z HackerOS :D',text:'3 marca to dzień, w którym wystartował projekt HackerOS. Każdego roku tego dnia świętujemy kolejną rocznicę rozwoju systemu razem z całą społecznością. Dziękujemy, że jesteście z nami!'},
en:{title:'Why: Another year with HackerOS :D',text:'March 3rd marks the day the HackerOS project started. Every year on this date we celebrate another anniversary of the system\'s development together with the whole community. Thank you for being with us!'}},
birthday:{
pl:{title:'Dlaczego: Urodziny twórcy systemu',text:'24 września to urodziny twórcy HackerOS. Z tej okazji strona na jeden dzień zmienia swój wygląd — przyciski świecą na niebiesko z dynamiczną animacją. Wszystkiego najlepszego!'},
en:{title:'Why: The system creator\'s birthday',text:'September 24th is the birthday of HackerOS\'s creator. To mark the occasion, the site changes its look for one day — buttons glow blue with a dynamic animation. Happy birthday!'}}
};
function spawnConfetti(){
const hero=document.querySelector('.hero');
if(!hero)return;
const colors=['#ffd06e','#ff8fd6','#8ea9ff','#7fffb0'];
for(let i=0;i<26;i++){
const c=document.createElement('span');
c.className='confetti-piece';
c.style.left=Math.random()*100+'%';
c.style.animationDelay=(Math.random()*8)+'s';
c.style.animationDuration=(5+Math.random()*4)+'s';
c.style.background=colors[i%colors.length];
hero.appendChild(c);
}
}
function applySpecialDay(lang){
const now=new Date();
const day=now.getDate();
const month=now.getMonth(); /* 0-indexed: March=2, September=8 */
const body=document.body;
const section=document.getElementById('special-day-section');
const titleEl=document.getElementById('special-day-title');
const textEl=document.getElementById('special-day-text');
if(month===2&&day===3){
body.classList.add('day-anniversary');
const t=SPECIAL_DAY_I18N.anniversary[lang]||SPECIAL_DAY_I18N.anniversary.en;
titleEl.textContent=t.title;textEl.textContent=t.text;
section.style.display='block';
spawnConfetti();
}else if(month===8&&day===24){
body.classList.add('day-creator-birthday');
const t=SPECIAL_DAY_I18N.birthday[lang]||SPECIAL_DAY_I18N.birthday.en;
titleEl.textContent=t.title;textEl.textContent=t.text;
section.style.display='block';
}else{
body.classList.remove('day-anniversary','day-creator-birthday');
section.style.display='none';
}
}
function applyAllLang(lang){
applyLang(lang);
applyHighlightsLang(lang);
applySpecialDay(lang);
}
window.__hackeros_applyLang=applyAllLang;
document.addEventListener('DOMContentLoaded',()=>{
const lang=window.HackerLang.getLang();
applyAllLang(lang);
initHighlightsCarousel();
});
</script>
</body></html>