LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.
C cdebiandesktop-environmentebpffirewalllandlocklinuxlinux-distributionopen-sourceprivacyquickjsraspberry-pi-5reactsecuritywaylandwayland-compositor
Website: hero slideshow grows to 39 checked screenshots in story order, with compact controls (play/pause, previous/next, counter, caption, timer bar)
Federico Pereirafd5e761328fd
diff --git a/web/build.mjs b/web/build.mjsindex d7ed993..1aa788a 100644--- a/web/build.mjs+++ b/web/build.mjs@@ -458,11 +458,48 @@ ${featureList[i] ? `<a class="more" href="${pageUrl(l, 'features/' + featureList// the desktop inside a laptop drawn in CSS, as a slideshow of real screenshots (site.js runs it;// without JS only the first slide shows). Slide 1 has light and dark variants that follow the theme.const cap = (f) => { const g = shots.find((x) => x.file === r(f)); return (g && g.caption && (g.caption[l] || g.caption.en)) || t.pages.hero.alt; };+ // the story: the desktop, then apps (productivity, media, system, privacy), ending at the login screen.+ // Each was checked by eye: English UI, no "before" shots, no old About tagline. [light, dark] pairs follow the theme.const SLIDES = [['docs/screenshots/desktop-overview-light.png', 'docs/screenshots/desktop-overview-dark.png'],- ['docs/screenshots/files.png'], ['docs/screenshots/mail.png'], ['docs/screenshots/calendar.png'], ['docs/screenshots/photos.png'],- ['docs/screenshots/player.png'], ['docs/screenshots/settings-general.png'], ['docs/screenshots/monitor-network-map.png'],- ['docs/screenshots/store.png'], ['docs/screenshots/terminal.png'],+ ['docs/screenshots/mail.png'],+ ['docs/screenshots/calendar.png', 'docs/calendar-week.png'],+ ['docs/contacts-light.png', 'docs/contacts.png'],+ ['docs/reminders-light.png', 'docs/reminders.png'],+ ['docs/notes-editing.png'],+ ['docs/editor-light.png'],+ ['docs/pdf-annotations.png'],+ ['docs/qa/calculator.png'],+ ['docs/characters-app.png'],+ ['docs/fonts-installed.png'],+ ['docs/screenshots/photos.png'],+ ['docs/screenshots/player.png'],+ ['docs/video-subtitles.png'],+ ['docs/camera.png'],+ ['docs/recorder.png'],+ ['docs/screenshots-annotate.png'],+ ['docs/screenshots/files.png'],+ ['docs/files-columns.png'],+ ['docs/files-quick-preview.png'],+ ['docs/search-apps.png'],+ ['docs/control-center-network.png'],+ ['docs/dock-left.png'],+ ['docs/app-launcher-categories.png'],+ ['docs/screenshots/terminal.png'],+ ['docs/screenshots/settings-general.png'],+ ['docs/settings-power-light.png', 'docs/settings-power-dark.png'],+ ['docs/screenshots/store.png'],+ ['docs/disks.png'],+ ['docs/backup-browse.png'],+ ['docs/logs.png'],+ ['docs/clock-world.png'],+ ['docs/help-welcome.png'],+ ['docs/screenshots/monitor-network-map.png'],+ ['docs/screenshots/firewall-rules.png'],+ ['docs/screenshots/monitor-cooling.png'],+ ['docs/privacy-prompt.png'],+ ['docs/qa/passwords.png'],+ ['docs/screenshots/greeter.png']].filter((v) => v.every((f) => fs.existsSync(r(f))));const H = t.pages.hero;const im = (f, cls, mode, alt) => {@@ -476,15 +513,19 @@ ${featureList[i] ? `<a class="more" href="${pageUrl(l, 'features/' + featureListconst n = SLIDES.length;const slides = SLIDES.map((v, i) => {const alt = i === 0 ? H.alt : cap(v[0]);- const imgs = v.length === 2 ? im(v[0], 'lp-l', 'eager', alt) + im(v[1], 'lp-d', 'lazy', alt) : im(v[0], '', 'deferred', alt);+ const imgs = v.length === 2+ ? (i === 0 ? im(v[0], 'lp-l', 'eager', alt) + im(v[1], 'lp-d', 'lazy', alt) : im(v[0], 'lp-l', 'deferred', alt) + im(v[1], 'lp-d', 'deferred', alt))+ : im(v[0], '', i === 0 ? 'eager' : 'deferred', alt);return `<figure class="slide${i === 0 ? ' on' : ''}" role="group" aria-roledescription="slide" aria-label="${i + 1} ${esc(H.of)} ${n}"${i ? ' aria-hidden="true"' : ''}>${imgs}</figure>`;}).join('');const pause = '<svg class="i-pause" width="14" height="14" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><rect x="6" y="4" width="4" height="16" rx="1"/><rect x="14" y="4" width="4" height="16" rx="1"/></svg>';const play = '<svg class="i-play" width="14" height="14" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M7 4.5v15a1 1 0 001.5.86l12-7.5a1 1 0 000-1.72l-12-7.5A1 1 0 007 4.5z"/></svg>';- const dots = SLIDES.map((v, i) => `<button type="button" aria-label="${esc(`${H.show} ${i + 1} ${H.of} ${n}: ${i === 0 ? H.alt : cap(v[0])}`)}"${i === 0 ? ' aria-current="true"' : ''}></button>`).join('');- const ctl = n > 1 ? `<div class="hero-ctl"><button type="button" class="hc-play" data-state="playing" data-pause="${esc(H.pause)}" data-play="${esc(H.play)}" aria-label="${esc(H.pause)}">${pause}${play}</button><div class="hc-dots" role="group" aria-label="${esc(H.choose)}">${dots}</div></div>` : '';+ const capOf = (i) => (i === 0 ? H.alt : cap(SLIDES[i][0]));+ const ico = (d0) => `<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="${d0}"/></svg>`;+ const caps = esc(JSON.stringify(SLIDES.map((v, i) => capOf(i))));+ const ctl = n > 1 ? `<div class="hero-ctl" data-caps="${caps}"><button type="button" class="hc-btn hc-play" data-state="playing" data-pause="${esc(H.pause)}" data-play="${esc(H.play)}" aria-label="${esc(H.pause)}">${pause}${play}</button><button type="button" class="hc-btn hc-prev" aria-label="${esc(H.prev)}">${ico('M15 5l-7 7 7 7')}</button><button type="button" class="hc-btn hc-next" aria-label="${esc(H.next)}">${ico('M9 5l7 7-7 7')}</button><p class="hc-status" aria-live="off"><span class="hc-count"><span class="hc-n">1</span> / ${n}</span><span class="hc-cap">${esc(capOf(0))}</span></p><span class="hc-bar" aria-hidden="true"><i></i></span></div>` : '';const pills = H.pills.map((p) => `<li>${esc(p)}</li>`).join('');- return `<div class="laptop" id="hero-show" role="region" aria-roledescription="carousel" aria-label="${esc(H.carousel)}"><div class="lp-screen"><span class="lp-cam" aria-hidden="true"></span><div class="lp-display" aria-live="off">${slides}</div></div><div class="lp-base" aria-hidden="true"><span class="lp-notch"></span></div>${ctl}</div><ul class="stats">${pills}</ul>`;+ return `<div class="laptop" id="hero-show" role="region" aria-roledescription="carousel" aria-label="${esc(H.carousel)}"><div class="lp-screen"><span class="lp-cam" aria-hidden="true"></span><div class="lp-display">${slides}</div></div><div class="lp-base" aria-hidden="true"><span class="lp-notch"></span></div>${ctl}</div><ul class="stats">${pills}</ul>`;})(),fingerprint: FINGERPRINT, banner: l === 'en' ? banner() : '',}, t));diff --git a/web/i18n/pages.json b/web/i18n/pages.jsonindex 9e91feb..002ebd6 100644--- a/web/i18n/pages.json+++ b/web/i18n/pages.json@@ -109,7 +109,9 @@"play": "Play the slideshow","choose": "Choose a screen","show": "Show",- "of": "of"+ "of": "of",+ "prev": "Previous screen",+ "next": "Next screen"}},"es": {@@ -222,7 +224,9 @@"play": "Reanudar las imágenes","choose": "Elegí una pantalla","show": "Mostrar",- "of": "de"+ "of": "de",+ "prev": "Pantalla anterior",+ "next": "Pantalla siguiente"}},"pt": {@@ -335,7 +339,9 @@"play": "Retomar a apresentação","choose": "Escolha uma tela","show": "Mostrar",- "of": "de"+ "of": "de",+ "prev": "Tela anterior",+ "next": "Próxima tela"}}}\ No newline at end of filediff --git a/web/src/site.css b/web/src/site.cssindex 0e239fd..dba0a98 100644--- a/web/src/site.css+++ b/web/src/site.css@@ -150,16 +150,19 @@ h1,h2,h3{text-wrap:balance}.lp-display img{display:block;width:100%;height:100%;object-fit:cover}.slide{position:absolute;inset:0;margin:0;opacity:0;visibility:hidden;transition:opacity .6s ease,visibility 0s linear .6s}.slide.on{opacity:1;visibility:visible;transition:opacity .6s ease}-.hero-ctl{display:none;align-items:center;justify-content:center;gap:10px;margin:14px 0 0}+.hero-ctl{display:none;position:relative;align-items:center;gap:6px;max-width:720px;margin:14px auto 0;padding:6px 14px 8px 6px;border-radius:999px;background:var(--surface);border:1px solid var(--line-2);box-shadow:0 8px 24px var(--shadow-2)}.jt .hero-ctl{display:flex}-.hc-play{width:36px;height:36px;border-radius:50%;border:1.5px solid var(--chip-line);background:var(--surface);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}-.hc-play:hover{color:var(--brand)}+.hc-btn{flex:0 0 auto;width:34px;height:34px;border-radius:50%;border:0;background:var(--chip);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}+.hc-btn:hover{color:var(--brand)}.hc-play svg{display:none}.hc-play[data-state=playing] .i-pause,.hc-play[data-state=paused] .i-play{display:block}-.hc-dots{display:flex;gap:2px}-.hc-dots button{width:24px;height:24px;padding:0;border:0;background:transparent;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}-.hc-dots button::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--chip-line);transition:width .2s,background .2s}-.hc-dots button[aria-current=true]::before{width:18px;border-radius:4px;background:var(--accent)}+.hc-status{margin:0 0 0 6px;min-width:0;flex:1;display:flex;align-items:baseline;gap:10px;font-size:14px;color:var(--ink-2)}+.hc-count{flex:0 0 auto;font:600 13px/1 var(--mono);color:var(--subtle)}+.hc-cap{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}+.hc-bar{position:absolute;left:18px;right:18px;bottom:3px;height:2px;border-radius:2px;background:var(--line);overflow:hidden}+.hc-bar i{display:block;height:100%;width:0;background:var(--accent)}+.hc-bar.run i{animation:hcbar 3s linear forwards}+@keyframes hcbar{from{width:0}to{width:100%}}@media (prefers-reduced-motion:reduce){.jt .hero-ctl{display:none}.slide{transition:none}}.lp-d{display:none!important}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .lp-l{display:none!important}:root:not([data-theme=light]) .lp-d{display:block!important}}@@ -178,6 +181,9 @@ h1,h2,h3{text-wrap:balance}.lp-screen{border-radius:12px 12px 5px 5px}.lp-base{height:9px;margin:0 -3%}.lp-cam{width:4px;height:4px;margin-left:-2px}+ .hero-ctl{border-radius:18px;flex-wrap:wrap;padding-bottom:10px}+ .hc-status{flex-basis:100%;margin:6px 4px 2px}+ .hc-cap{white-space:normal}.stats{flex-direction:column;align-items:center;gap:8px}.stats li{font-size:13px}}diff --git a/web/src/site.js b/web/src/site.jsindex 0ed13e2..7e5497a 100644--- a/web/src/site.js+++ b/web/src/site.js@@ -102,7 +102,9 @@var show = $('#hero-show');var reduce = window.matchMedia && matchMedia('(prefers-reduced-motion: reduce)').matches;if (show && !reduce) {- var slides = $$('.slide', show), dots = $$('.hc-dots button', show), pb = $('.hc-play', show), live = $('.lp-display', show);+ var slides = $$('.slide', show), ctl = $('.hero-ctl', show), pb = $('.hc-play', show);+ var status = $('.hc-status', show), num = $('.hc-n', show), capEl = $('.hc-cap', show), bar = $('.hc-bar', show);+ var caps = ctl ? JSON.parse(ctl.getAttribute('data-caps')) : [];var cur = 0, timer = null, user = false, hover = false, focus = false;var load = function (i) {$$('img[data-src]', slides[i]).forEach(function (im) {@@ -110,34 +112,43 @@im.removeAttribute('data-src'); im.removeAttribute('data-srcset');});};+ var running = function () { return !user && !hover && !focus && !d.hidden; };+ var restartBar = function () {+ bar.classList.remove('run');+ if (running()) { void bar.offsetWidth; bar.classList.add('run'); }+ };var go = function (i) {var n = slides.length;i = (i + n) % n;load(i); load((i + 1) % n);slides.forEach(function (sl, k) { sl.classList.toggle('on', k === i); if (k === i) sl.removeAttribute('aria-hidden'); else sl.setAttribute('aria-hidden', 'true'); });- dots.forEach(function (dt, k) { if (k === i) dt.setAttribute('aria-current', 'true'); else dt.removeAttribute('aria-current'); });+ num.textContent = i + 1; capEl.textContent = caps[i] || '';cur = i;};- var running = function () { return !user && !hover && !focus && !d.hidden; };var sync = function () {clearInterval(timer); timer = null;- if (running()) timer = setInterval(function () { go(cur + 1); }, 3000);- live.setAttribute('aria-live', running() ? 'off' : 'polite');+ if (running()) timer = setInterval(function () { go(cur + 1); restartBar(); }, 3000);+ status.setAttribute('aria-live', running() ? 'off' : 'polite');+ restartBar();};- if (slides.length > 1) {+ if (slides.length > 1 && ctl) {load(1);show.addEventListener('mouseenter', function () { hover = true; sync(); });show.addEventListener('mouseleave', function () { hover = false; sync(); });show.addEventListener('focusin', function (e) { focus = e.target !== pb; sync(); });show.addEventListener('focusout', function (e) { if (!show.contains(e.relatedTarget)) { focus = false; sync(); } });d.addEventListener('visibilitychange', sync);- if (pb) pb.addEventListener('click', function () {+ pb.addEventListener('click', function () {user = !user;pb.setAttribute('data-state', user ? 'paused' : 'playing');pb.setAttribute('aria-label', pb.getAttribute(user ? 'data-play' : 'data-pause'));sync();});- dots.forEach(function (dt, k) { dt.addEventListener('click', function () { go(k); sync(); }); });+ $('.hc-prev', show).addEventListener('click', function () { go(cur - 1); sync(); });+ $('.hc-next', show).addEventListener('click', function () { go(cur + 1); sync(); });+ ctl.addEventListener('keydown', function (e) {+ if (e.key === 'ArrowLeft' || e.key === 'ArrowRight') { go(cur + (e.key === 'ArrowRight' ? 1 : -1)); sync(); e.preventDefault(); }+ });sync();}}