diff --git a/STATUS.md b/STATUS.md index ae25ce0..3d2e43f 100644 --- a/STATUS.md +++ b/STATUS.md @@ -2,6 +2,16 @@ Updated 2026-11-07. Architectural acceptance is separate from implementation. +## English hacker-style portal + +The portal now uses a dark monospace layout, cyan/turquoise accents with Arch blue, +an illustrative composition map, three release cards and English copy throughout. +Pipeline stages, including KDE and publication/cleanup recovery, have English +labels. API endpoint names, schemas, state tokens and artifact identities are +preserved. `pipeline-status.py` exports an English public projection so the active +older coordinator can continue without a restart or historical evidence rewrite. +Deployment instructions: `deploy/RELEASE-CYCLE.md`. + ## KDE publication — D-091 The user confirmed KDE Desktop hardware readiness and authorized publication on diff --git a/deploy/Caddyfile b/deploy/Caddyfile index a1a6583..f1c09fb 100644 --- a/deploy/Caddyfile +++ b/deploy/Caddyfile @@ -14,7 +14,7 @@ } handle /archipelago/pipeline.json { root * /srv/artifacts - rewrite * /pipeline.json + rewrite * /pipeline-public.json header Cache-Control "no-cache" file_server } diff --git a/deploy/RELEASE-CYCLE.md b/deploy/RELEASE-CYCLE.md index c574669..23d0606 100644 --- a/deploy/RELEASE-CYCLE.md +++ b/deploy/RELEASE-CYCLE.md @@ -1,5 +1,27 @@ # Daily release cycle +## English public status and portal (2026-11-07) + +The portal uses an English-only dark terminal design. Public URLs and JSON field +names/state tokens remain unchanged. `/archipelago/pipeline.json` now serves +`data/public/pipeline-public.json`, an English projection of private `latest.json`. +`pipeline/pipeline-status.py` translates presentation fields, preserving identities, +timestamps, releases and original private run evidence. New drivers also emit +English private/text status. A running older driver can finish unchanged: a systemd +path unit exports its status transitions without rewriting its evidence or restarting it. + +Deploy `archipelago-pipeline-status.{path,service}` to `/etc/systemd/system/`, run +`systemctl daemon-reload`, enable/start the path unit and run the service once to +seed the public file **before** loading the updated Caddyfile. The path watcher is +not a release schedule; the release-cycle timer remains disabled under D-090. +The new driver's normal writer also invokes the exporter, so standalone driver +use does not rely solely on the watcher. Keep `pipeline.json` on disk for legacy +internal consumers; the HTTPS endpoint is the normalized projection. + +The page reads the existing `releases.json` catalog and polls `pipeline.json` every +30 seconds while visible, with one request at a time. Download links remain +same-origin `/archipelago/iso/` URLs and checksums come directly from the catalog. + ## D-088 restart The user cancelled run `20261106T152122Z` during Core build to include the new diff --git a/deploy/archipelago-pipeline-status.path b/deploy/archipelago-pipeline-status.path new file mode 100644 index 0000000..d13573c --- /dev/null +++ b/deploy/archipelago-pipeline-status.path @@ -0,0 +1,11 @@ +[Unit] +Description=Watch Archipelago release status for public export + +[Path] +PathChanged=/opt/archipelago/data/private/release-cycle/latest.json +Unit=archipelago-pipeline-status.service +TriggerLimitIntervalSec=60 +TriggerLimitBurst=200 + +[Install] +WantedBy=multi-user.target diff --git a/deploy/archipelago-pipeline-status.service b/deploy/archipelago-pipeline-status.service new file mode 100644 index 0000000..cffabf0 --- /dev/null +++ b/deploy/archipelago-pipeline-status.service @@ -0,0 +1,8 @@ +[Unit] +Description=Export English Archipelago public pipeline status +StartLimitIntervalSec=0 + +[Service] +Type=oneshot +ExecStart=/usr/bin/python3 /opt/archipelago/src/infrastructure/pipeline/pipeline-status.py +UMask=0022 diff --git a/pipeline/cycle-terminal.py b/pipeline/cycle-terminal.py index f914c50..7a86bf3 100644 --- a/pipeline/cycle-terminal.py +++ b/pipeline/cycle-terminal.py @@ -16,7 +16,7 @@ latest = parent / 'latest.json' if latest.exists(): state = json.loads(latest.read_text()) if state.get('invocation_id') == os.environ.get('INVOCATION_ID') and state['state'] not in ('complete', 'failed'): - state.update(failed_phase=state['state'], state='failed', stage_title='Ошибка', + state.update(failed_phase=state['state'], state='failed', stage_title='Release cycle failed', error='Coordinator terminated: ' + os.environ.get('SERVICE_RESULT', 'unknown'), updated=datetime.now(timezone.utc).isoformat()) cycle.write_status(base, state) diff --git a/pipeline/pipeline-status.py b/pipeline/pipeline-status.py new file mode 100644 index 0000000..c7ed5f6 --- /dev/null +++ b/pipeline/pipeline-status.py @@ -0,0 +1,70 @@ +#!/usr/bin/env python3 +"""Export English public pipeline status without changing run evidence or API keys.""" +import argparse +import fcntl +import json +from pathlib import Path +import re + +TITLES = { + 'starting': 'Starting release cycle', + 'preflight': 'Checking build environment', + 'freezing-and-compiling-source': 'Freezing sources and building CLI', + 'updating-flatpak-cache': 'Refreshing GNOME Flatpak cache', + 'updating-kde-flatpak-cache': 'Refreshing KDE Flatpak cache', + 'building-software-adapter': 'Building GNOME Software adapter', + 'building-discover-adapter': 'Building Discover adapter', + 'building-core': 'Building Core', + 'building-core-then-purpose': 'Building Core and Purpose', + 'building-gnome-purpose-and-iso': 'Building GNOME Purpose and ISO', + 'building-kde-purpose-and-iso': 'Building KDE Purpose and ISO', + 'core-installed-acceptance': 'Core installed-VM acceptance', + 'gnome-installed-acceptance': 'GNOME installed-VM acceptance', + 'kde-installed-acceptance': 'KDE installed-VM acceptance', + 'archiving-artifacts': 'Archiving artifacts on terra', + 'preparing-publication': 'Validating release evidence', + 'signing-and-publishing': 'Signing and publishing', + 'verifying-public-endpoints': 'Verifying public downloads', + 'cleaning-worker': 'Cleaning build workspace', + 'complete': 'Release cycle complete', + 'failed': 'Release cycle failed', +} + + +def english_status(state): + state = dict(state) + name = state['state'] + state['stage_title'] = TITLES.get(name, name.replace('-', ' ').capitalize()) + if name == 'failed' and state.get('published'): + state['stage_title'] = ('Images published; workspace cleanup failed' + if state.get('failed_phase') == 'cleaning-worker' + else 'Images published; post-publication step failed') + elif name == 'complete' and state.get('recovery'): + state['stage_title'] = 'Images published; cleanup recovered; cycle complete' + # Translate the old driver's structured error without altering raw evidence. + if state.get('error'): + state['error'] = re.sub(r'^Команда этапа завершилась с кодом (\d+)$', + r'Stage command exited with code \1', state['error']) + return state + + +def export(base): + public = base / 'data/public' + public.mkdir(parents=True, exist_ok=True) + with (public / '.pipeline-status.lock').open('a') as lock: + fcntl.flock(lock, fcntl.LOCK_EX) + latest = base / 'data/private/release-cycle/latest.json' + if not latest.exists(): + return + state = english_status(json.loads(latest.read_text())) + target = public / 'pipeline-public.json' + temp = target.with_suffix('.tmp') + temp.write_text(json.dumps(state, indent=2) + '\n') + temp.chmod(0o644) + temp.replace(target) + + +if __name__ == '__main__': + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('--base', type=Path, default=Path('/opt/archipelago')) + export(parser.parse_args().base) diff --git a/pipeline/reconcile-cleanup.py b/pipeline/reconcile-cleanup.py index 28df651..6da6562 100644 --- a/pipeline/reconcile-cleanup.py +++ b/pipeline/reconcile-cleanup.py @@ -50,7 +50,7 @@ def main(): evidence='cleanup-recovery.json', original_state='state-before-recovery.json') for key in ('error', 'error_details', 'failed_phase'): state.pop(key, None) - state.update(state='complete', stage_title='Готово; очистка восстановлена', updated=now, finished=now) + state.update(state='complete', stage_title='Complete; cleanup recovered', updated=now, finished=now) cycle.write_status(args.base, state) print(json.dumps(state, ensure_ascii=False, indent=2)) diff --git a/pipeline/release-cycle.py b/pipeline/release-cycle.py index c113dcc..6c86553 100644 --- a/pipeline/release-cycle.py +++ b/pipeline/release-cycle.py @@ -23,6 +23,10 @@ cleanup_spec = importlib.util.spec_from_file_location('cleanup_cycle', Path(__fi cleanup_module = importlib.util.module_from_spec(cleanup_spec) cleanup_spec.loader.exec_module(cleanup_module) +status_spec = importlib.util.spec_from_file_location('pipeline_status', Path(__file__).with_name('pipeline-status.py')) +status_module = importlib.util.module_from_spec(status_spec) +status_spec.loader.exec_module(status_module) + def atomic(path, value): path.parent.mkdir(parents=True, exist_ok=True) @@ -32,22 +36,21 @@ def atomic(path, value): def write_status(base, state): + state.update(status_module.english_status(state)) parent = base / 'data/private/release-cycle' run = parent / state['run'] - if state['state'] == 'failed' and state.get('published'): - state['stage_title'] = ('Образы опубликованы; ошибка очистки' if state.get('failed_phase') == 'cleaning-worker' - else 'Образы опубликованы; ошибка после публикации') atomic(run / 'state.json', state) atomic(parent / 'latest.json', state) atomic(base / 'data/public/pipeline.json', state) - text = f"Прогон: {state['run']}\nСтенд: {state['worker']}\nЭтап: {state['stage_title']}\nОбновлено: {state['updated']}\nОпубликовано: {'да' if state['published'] else 'нет'}\n" + status_module.export(base) + text = f"Run: {state['run']}\nWorker: {state['worker']}\nStage: {state['stage_title']}\nUpdated: {state['updated']}\nPublished: {'yes' if state['published'] else 'no'}\n" if state.get('flatpak'): text += 'Flatpak: ' + state['flatpak']['state'] + '\n' if state.get('error'): - text += 'Причина: ' + state['error'] + '\n' + text += 'Error: ' + state['error'] + '\n' if state.get('recovery'): - text += 'Восстановление: очистка завершена; исходная ошибка сохранена в state-before-recovery.json\n' - text += f"Результаты и логи: {run}\n" + text += 'Recovery: cleanup completed; original failure preserved in state-before-recovery.json\n' + text += f"Results and logs: {run}\n" (parent / 'latest.txt.tmp').write_text(text) (parent / 'latest.txt.tmp').replace(parent / 'latest.txt') @@ -97,18 +100,7 @@ def main(): reason=os.environ.get('ARCHIPELAGO_RELEASE_REASON', 'Daily release cycle')) step = 0 worker_units = [] - titles = {'preflight': 'Проверка стенда', 'freezing-and-compiling-source': 'Подготовка исходников и CLI', - 'updating-flatpak-cache': 'Обновление кэша Flatpak', 'building-core': 'Сборка Core', - 'building-software-adapter': 'Сборка адаптера GNOME Software', - 'building-gnome-purpose-and-iso': 'Сборка GNOME', 'archiving-artifacts': 'Передача артефактов на terra', - 'core-installed-acceptance': 'Приёмка Core в VM', 'gnome-installed-acceptance': 'Приёмка GNOME в VM', - 'preparing-publication': 'Проверка результатов', 'signing-and-publishing': 'Подпись и публикация', - 'verifying-public-endpoints': 'Проверка сайта', 'cleaning-worker': 'Очистка временных файлов', - 'complete': 'Готово', 'failed': 'Ошибка'} - titles.update({'updating-kde-flatpak-cache': 'Обновление кэша Flatpak KDE', - 'building-discover-adapter': 'Сборка адаптера Discover', - 'building-kde-purpose-and-iso': 'Сборка KDE', - 'kde-installed-acceptance': 'Приёмка KDE в VM'}) + titles = status_module.TITLES def phase(name, **extra): state.update(state=name, stage_title=titles.get(name, name), updated=datetime.now(timezone.utc).isoformat(), **extra) write_status(base, state) @@ -427,7 +419,7 @@ rm -rf {builds['core']}/iso-work {builds['core']}/profile {builds['core']}/extra cleanup_module.cleanup(parent, None) except BaseException as error: detail = str(error) - concise = ('Команда этапа завершилась с кодом ' + str(error.returncode)) if isinstance(error, subprocess.CalledProcessError) else detail + concise = ('Stage command exited with code ' + str(error.returncode)) if isinstance(error, subprocess.CalledProcessError) else detail phase('failed', error=concise, error_details=detail, failed_phase=state['state']) # Stop this run's VM before archiving diagnostics; never select host VMs # by broad process/name patterns. Preserve artifact bytes and evidence, diff --git a/pipeline/release.sh b/pipeline/release.sh index ce6cd53..98eed3a 100644 --- a/pipeline/release.sh +++ b/pipeline/release.sh @@ -3,10 +3,10 @@ set -eu case "${1:-status}" in run) systemctl start --no-block archipelago-release-cycle.service - echo 'Запуск принят. Статус: archipelago-release status; журнал: archipelago-release logs' ;; + echo 'Run requested. Status: archipelago-release status; logs: archipelago-release logs' ;; status) cat /opt/archipelago/data/private/release-cycle/latest.txt systemctl list-timers archipelago-release-cycle.timer --no-pager ;; logs) journalctl -u archipelago-release-cycle.service -n 80 --no-pager ;; follow) journalctl -fu archipelago-release-cycle.service ;; - *) echo 'Использование: archipelago-release [run|status|logs|follow]' >&2; exit 2 ;; + *) echo 'Usage: archipelago-release [run|status|logs|follow]' >&2; exit 2 ;; esac diff --git a/portal/index.html b/portal/index.html index fb6cb71..fda3d7c 100644 --- a/portal/index.html +++ b/portal/index.html @@ -1,20 +1,58 @@ - + - - - - Archipelago — система из выбранных слоёв + + + + + Archipelago // Compose your system - + + - -
-

ARCH LINUX · OSTREE · DECLARATIVE

Ваша система.
Ваш набор слоёв.

Archipelago объединяет экосистему Arch Linux с декларативной композицией и управляемыми образами ОС. От минимального Core до рабочего стола — с явными обновлениями и возможностью отката.

Выбрать образ Изучить архитектуру ↗
-
01

Описывайте намерение

Версионированные YAML-манифесты определяют состав системы. Точные входы сборки закрепляются отдельно.

02

Обновляйте целиком

Новый deployment готовится отдельно. Текущая система продолжает работать до вашей явной перезагрузки.

03

Расширяйте локально

Host Extensions предназначены для локальных пакетов и аппаратных адаптаций. Такие композиции находятся вне официальной поддержки.

-

ISO PORTAL

Core, GNOME и KDE Desktop

Stable

Актуальные ISO после установочных VM-проверок публикуются в stable по решениям D-087 и D-091. Полная воспроизводимость и все критерии допуска ещё не подтверждены; ограничения указаны в API релизов, где доступны до трёх сохранённых версий.

Исправления выпускаются оперативно. Плановые пересборки: 15-го и 30-го числа, 00:00 UTC / 03:00 МСК; включение расписания ожидает перехода на snapshots. Статус JSON. Загружаем состояние…

Проверяем каталог образов…

Core · x86_64 · UEFIGNOME Desktop · x86_64 · UEFIKDE Desktop · x86_64 · UEFI
-

OPEN BY DESIGN

Архитектура обсуждается открыто

Контракты, решения и исходники доступны в организации Archipelago. Готовность отдельных компонентов подтверждается проверками, а не только наличием спецификации.

RFC и реестр контрактов ↗
+ + +
+
+
+

ARCH LINUX / OSTREE / DECLARATIVE

+

Your system.
Your layers.
Your control.

+

The Arch ecosystem. A composed operating system. Start with a minimal Core or a complete desktop, then make the system yours.

+ +

x86_64 / UEFI / immutable deployments

+
+
+
COMPOSITION.MAP
+
+

archipelago ~/system

+

# An OS built from explicit choices

+
03
Host Extensionsyour local package requests
LOCAL
+
02
Managed Overlayshardware + features
OPTIONAL
+
01
PurposeGNOME / KDE Desktop
0..1
+
00
Arch Corethe common foundation
BASE
+

one complete OSTree deployment

+

Architecture view, not a live system report.

+
+
+
+
+

01 / DECLARE

Intent is explicit.

Versioned manifests describe the system. Locked inputs identify exactly what goes into a composition.

+

02 / DEPLOY

Update as a whole.

A new deployment is prepared alongside the running system. Reboot when you choose. Keep a rollback path.

+

03 / EXTEND

Keep your options.

Use managed layers or local Host Extensions. Package origin and effective changes remain visible in the system's support status.

+
+
+

/ RELEASE REGISTRY

Choose your starting point.

releases.json ↗
+
PIPELINE
Loading status…JSON ↗
+

Reading the release registry…

+ +

RELEASE SCOPE Stable images are published after installed-VM checks under D-087 and D-091. Full reproducibility and all admission gates are not yet verified. Exact limitations and up to three retained versions are recorded in the release API.

CADENCE Fixes ship promptly. Scheduled rebuilds are planned for the 15th and 30th at 00:00 UTC; scheduling awaits the repository snapshot rollout.

+
+

/ OPEN BY DESIGN

Read the decisions.
Inspect the source.

The architecture, contracts and implementation live in the open. Follow the RFCs from an accepted decision to evidence of working software.

Explore the RFC repository ↗
- - + + + diff --git a/portal/mark.svg b/portal/mark.svg index 69e5253..ed28983 100644 --- a/portal/mark.svg +++ b/portal/mark.svg @@ -1 +1 @@ - + diff --git a/portal/portal.js b/portal/portal.js index a822748..e80bda9 100644 --- a/portal/portal.js +++ b/portal/portal.js @@ -1,51 +1,90 @@ "use strict"; (async () => { const label = document.querySelector('#pipeline-status'); - try { - const response = await fetch('./pipeline.json', {cache: 'no-store'}); - if (!response.ok) throw new Error('status unavailable'); - const status = await response.json(); - const names = {'preflight': 'Проверка среды', 'freezing-and-compiling-source': 'Сборка CLI', - 'updating-flatpak-cache': 'Обновление кэша Flatpak', - 'building-core': 'Сборка Core', 'building-core-then-purpose': 'Сборка Core и GNOME', - 'building-gnome-purpose-and-iso': 'Сборка GNOME Purpose и ISO', - 'archiving-artifacts': 'Передача на terra', 'core-installed-acceptance': 'Проверка установленного Core', - 'gnome-installed-acceptance': 'Проверка установленного GNOME', - 'preparing-publication': 'Проверка свидетельств', 'signing-and-publishing': 'Подпись и публикация', - 'verifying-public-endpoints': 'Проверка скачивания', 'cleaning-worker': 'Очистка сборочного окружения', - 'complete': 'Цикл завершён', 'failed': 'Цикл завершился ошибкой'}; - let title = names[status.state] || status.stage_title || status.state; - if (status.state === 'failed' && status.published) { - title = status.failed_phase === 'cleaning-worker' - ? 'Образы опубликованы; ошибка очистки сборочного окружения' - : 'Образы опубликованы; ошибка после публикации'; - } else if (status.state === 'complete' && status.recovery) { - title = 'Образы опубликованы; очистка восстановлена, цикл завершён'; - } - label.textContent = `${title} · ${status.run}`; - } catch { label.textContent = 'Состояние временно недоступно.'; } + const names = { + 'starting': 'Starting release cycle', 'preflight': 'Checking build environment', + 'freezing-and-compiling-source': 'Freezing sources and building CLI', + 'updating-flatpak-cache': 'Refreshing GNOME Flatpak cache', + 'updating-kde-flatpak-cache': 'Refreshing KDE Flatpak cache', + 'building-software-adapter': 'Building GNOME Software adapter', + 'building-discover-adapter': 'Building Discover adapter', + 'building-core': 'Building Core', 'building-core-then-purpose': 'Building Core and Purpose', + 'building-gnome-purpose-and-iso': 'Building GNOME Purpose and ISO', + 'building-kde-purpose-and-iso': 'Building KDE Purpose and ISO', + 'archiving-artifacts': 'Archiving artifacts on terra', + 'core-installed-acceptance': 'Core installed-VM acceptance', + 'gnome-installed-acceptance': 'GNOME installed-VM acceptance', + 'kde-installed-acceptance': 'KDE installed-VM acceptance', + 'preparing-publication': 'Validating release evidence', + 'signing-and-publishing': 'Signing and publishing', + 'verifying-public-endpoints': 'Verifying public downloads', + 'cleaning-worker': 'Cleaning build workspace', + 'complete': 'Release cycle complete', 'failed': 'Release cycle failed' + }; + async function refresh() { + try { + const response = await fetch('./pipeline.json', {cache: 'no-store'}); + if (!response.ok) throw new Error('status unavailable'); + const status = await response.json(); + if (typeof status.state !== 'string' || typeof status.run !== 'string') throw new Error('invalid status'); + let title = names[status.state] || 'Release cycle in progress'; + if (status.state === 'failed' && status.published) { + title = status.failed_phase === 'cleaning-worker' + ? 'Images published; workspace cleanup failed' : 'Images published; post-publication step failed'; + } else if (status.state === 'complete' && status.recovery) { + title = 'Images published; cleanup recovered; cycle complete'; + } + label.textContent = `${title} / ${status.run}`; + } catch { label.textContent = 'Pipeline status temporarily unavailable.'; } + } + await refresh(); + // Schedule after completion so slow requests cannot accumulate. + async function tick() { + if (!document.hidden) await refresh(); + window.setTimeout(tick, 30000); + } + window.setTimeout(tick, 30000); })(); (async () => { - const list = document.querySelector("#release-list"); - const message = text => { const p = document.createElement("p"); p.className = "empty"; p.textContent = text; list.replaceChildren(p); }; + const list = document.querySelector('#release-list'); + const message = text => { const p = document.createElement('p'); p.className = 'empty'; p.textContent = text; list.replaceChildren(p); }; + const profiles = { + 'Arch Core': ['Core', 'A minimal foundation. Build your own environment.'], + 'GNOME Desktop': ['GNOME Desktop', 'A focused workspace powered by GNOME.'], + 'KDE Desktop': ['KDE Desktop', 'A configurable desktop powered by KDE Plasma.'] + }; try { - const response = await fetch("./releases.json", {cache: "no-store"}); - if (!response.ok) throw new Error("catalog unavailable"); + const response = await fetch('./releases.json', {cache: 'no-store'}); + if (!response.ok) throw new Error('catalog unavailable'); const catalog = await response.json(); - if (catalog.version !== 1 || !Array.isArray(catalog.releases)) throw new Error("unknown catalog"); - if (!catalog.releases.length) { message("Публичных ISO пока нет. Идут экспериментальные проверки Core; релизы появятся здесь после прохождения всех обязательных критериев."); return; } - const cards = catalog.releases.map(release => { - if (!['hardware-test','testing','stable'].includes(release.channel) || !/^[0-9a-f]{64}$/.test(release.sha256)) throw new Error("invalid release"); + if (catalog.version !== 1 || !Array.isArray(catalog.releases)) throw new Error('unknown catalog'); + if (!catalog.releases.length) { message('No public images yet. Check back after the next verified release.'); return; } + const cards = catalog.releases.map((release, index) => { + if (!['hardware-test', 'testing', 'stable'].includes(release.channel) || !/^[0-9a-f]{64}$/.test(release.sha256)) throw new Error('invalid release'); const url = new URL(release.url, location.href); - if (url.origin !== location.origin || !url.pathname.startsWith('/archipelago/iso/')) throw new Error("invalid artifact URL"); + if (url.origin !== location.origin || !url.pathname.startsWith('/archipelago/iso/')) throw new Error('invalid artifact URL'); + const [name, description] = profiles[release.variant] || ['OS image', 'An Archipelago system image.']; const card = document.createElement('article'); card.className = 'release'; - const title = document.createElement('h3'); title.textContent = `${release.variant} · ${release.architecture} · ${release.channel}`; - const link = document.createElement('a'); link.href = url.href; link.textContent = `Скачать ISO · ${release.version}`; - const hash = document.createElement('p'); const code = document.createElement('code'); code.textContent = `SHA-256: ${release.sha256}`; hash.append(code); - const note = document.createElement('p'); - if (release.channel === 'hardware-test') note.textContent = 'Экспериментальный образ для проверки на железе; не testing/stable.'; - card.append(title,note,link,hash); return card; + const top = document.createElement('div'); top.className = 'release-top'; + const number = document.createElement('span'); number.className = 'release-index'; number.textContent = `/${String(index + 1).padStart(2, '0')}`; + const channel = document.createElement('span'); channel.className = 'channel'; channel.textContent = release.channel; + top.append(number, channel); + const title = document.createElement('h3'); title.textContent = name; + const note = document.createElement('p'); note.className = 'release-description'; + note.textContent = release.channel === 'hardware-test' ? 'Experimental hardware-test image; not a testing or stable release.' : description; + const meta = document.createElement('p'); meta.className = 'release-meta'; + meta.append(document.createTextNode(`${release.architecture} / UEFI`), document.createElement('br')); + const version = document.createElement('span'); version.textContent = release.version; + meta.append('BUILD ', version); + const link = document.createElement('a'); link.className = 'button'; link.href = url.href; link.setAttribute('aria-label', `Download ${name} ISO, ${release.version}`); + const arrow = document.createElement('span'); arrow.setAttribute('aria-hidden', 'true'); arrow.textContent = '↓'; link.append('Download ISO', arrow); + const hash = document.createElement('p'); hash.className = 'hash'; + const hashLabel = document.createElement('span'); hashLabel.textContent = 'SHA256'; + const code = document.createElement('code'); code.textContent = release.sha256; + hash.append(hashLabel, code); + card.append(top, title, note, meta, link, hash); + return card; }); list.replaceChildren(...cards); - } catch { message("Каталог релизов временно недоступен. Непроверенные ссылки на скачивание не отображаются."); } + } catch { message('Release registry temporarily unavailable. Download links will return when the catalog can be verified.'); } })(); diff --git a/portal/style.css b/portal/style.css index ce8c0c1..c9bf5f5 100644 --- a/portal/style.css +++ b/portal/style.css @@ -1 +1,126 @@ -:root{color-scheme:light dark;--bg:#f5f7f2;--ink:#182c29;--muted:#4d625b;--surface:#e4ece6;--accent:#1b6758;--soft:#cee9dd;--line:#c2d0c7;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink)}a{color:inherit;text-underline-offset:.25em}a:focus-visible{outline:3px solid var(--accent);outline-offset:6px}main,.navigation,footer{max-width:1200px;margin:auto;padding:24px 40px}.navigation{display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:10px;font-weight:750;font-size:22px;text-decoration:none;letter-spacing:-.7px}nav{display:flex;gap:24px;font-size:14px}nav a{text-decoration:none}.hero{display:grid;grid-template-columns:1.5fr 1fr;align-items:center;gap:50px;padding:70px 0 80px}.eyebrow{letter-spacing:.16em;font-size:11px;font-weight:750;color:var(--accent)}h1{font-size:clamp(40px,5.5vw,68px);letter-spacing:-3px;line-height:1.08;margin:22px 0}h1 span{color:var(--accent)}.intro{font-size:18px;line-height:1.75;color:var(--muted);max-width:630px}.button{display:inline-flex;gap:32px;align-items:center;background:var(--accent);color:#fff;border-radius:36px;padding:18px 24px;text-decoration:none;font-weight:650;margin:20px 22px 12px 0}.text-link{font-size:14px;font-weight:650}.islands{display:grid;gap:18px;transform:rotate(-6deg);padding:22px}.island{border-radius:36px;padding:34px;text-align:center;font-size:23px;font-weight:750;box-shadow:0 14px 0 #163c2910}.island span{display:block;margin-top:8px;font-size:12px;letter-spacing:.04em;font-weight:450}.top{background:#d8e5ff;color:#253956;margin-left:30px}.middle{background:#f2dfbb;color:#4c3d24;margin-right:25px}.base{background:var(--soft);color:#234f40}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.features article{background:var(--surface);padding:28px;border-radius:28px}.number{display:inline-grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:50%;font-size:12px}h2{font-size:25px;line-height:1.2;letter-spacing:-.7px}.features p,.downloads p,.about p,footer p{color:var(--muted);line-height:1.7}.features h2{font-size:20px}.downloads{margin:65px 0;padding:36px;border:1px solid var(--line);border-radius:36px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.section-heading h2{font-size:34px;margin:8px 0}.pill{background:var(--soft);color:var(--accent);padding:10px 16px;border-radius:30px;font-size:12px;white-space:nowrap}.empty{background:var(--surface);border-radius:20px;padding:24px;margin:28px 0}.planned{display:flex;flex-wrap:wrap;gap:10px}.planned span{font-size:12px;border:1px solid var(--line);border-radius:20px;padding:8px 12px}.release{background:var(--surface);border-radius:24px;padding:24px;margin:20px 0}.release code{overflow-wrap:anywhere;font-size:12px}.release a{display:inline-block;margin:8px 16px 8px 0}.about{max-width:730px;padding-bottom:65px}.about h2{font-size:35px}footer{border-top:1px solid var(--line);padding-top:32px;padding-bottom:40px;font-size:12px}footer p{max-width:850px}@media(max-width:800px){main,.navigation,footer{padding-left:22px;padding-right:22px}.navigation{align-items:flex-start;flex-direction:column}nav{gap:16px;flex-wrap:wrap}.hero{grid-template-columns:1fr;padding:35px 0;gap:16px}.islands{max-width:420px;margin:auto;width:100%}.island{padding:22px}.features{grid-template-columns:1fr}h1{letter-spacing:-2px}.downloads{padding:24px;margin:40px 0}.section-heading{align-items:flex-start;flex-direction:column}}@media(prefers-color-scheme:dark){:root{--bg:#101c19;--ink:#e1ece5;--muted:#b4c7bc;--surface:#20312b;--accent:#98d5b9;--soft:#274a3c;--line:#3c5347}.button{background:#a8dfc5;color:#173f31}.base{color:#cbefdc}.top{background:#334560;color:#e2eaff}.middle{background:#514735;color:#f6e6c7}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.islands{transform:none}} +:root { + color-scheme: dark; + --bg: #080e12; + --panel: #0d161c; + --ink: #dce8ed; + --muted: #8dabb8; + --accent: #35d2d0; + --arch: #1793d1; + --line: #243741; + font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; + font-synthesis: none; +} +* { box-sizing: border-box; } +html { scroll-behavior: smooth; scroll-padding-top: 24px; } +body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.65; } +body::before { content: ""; position: absolute; inset: 0 0 auto; height: 730px; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at 85% 25%, #1793d115, transparent 65%); } +::selection { background: var(--accent); color: var(--bg); } +a { color: var(--accent); text-underline-offset: 4px; } +a:hover { color: #a4f7ee; } +a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; } +main, .navigation, footer { max-width: 1264px; margin: auto; padding-inline: 40px; } +.skip { position: absolute; top: -100px; left: 20px; padding: 12px; background: var(--panel); z-index: 5; } +.skip:focus { top: 8px; } +.navigation { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); } +.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 700; letter-spacing: -1px; color: var(--ink); text-decoration: none; } +.brand span { color: var(--accent); margin-left: -7px; } +nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 12px; } +nav a { color: var(--muted); text-decoration: none; } +.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 60px; padding: 86px 0 78px; } +.eyebrow { font-size: 10px; letter-spacing: 1.8px; color: var(--accent); font-weight: 600; } +.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 8px; box-shadow: 0 0 12px #35d2d044; } +h1 { font-size: clamp(36px, 4.6vw, 61px); line-height: 1.12; letter-spacing: -3px; margin: 25px 0; font-weight: 700; } +h1 span { color: var(--accent); } +.intro { color: var(--muted); font-size: 14px; line-height: 1.9; max-width: 500px; } +.actions { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; margin: 30px 0 20px; } +.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 26px; padding: 12px 18px; background: var(--accent); border: 1px solid var(--accent); color: var(--bg); text-decoration: none; font-size: 12px; font-weight: 700; transition: background .15s; } +.button:hover { background: #a4f7ee; color: var(--bg); } +.text-link { font-size: 12px; } +.hero-meta { color: var(--muted); font-size: 10px; } +.hero-meta span { color: var(--line); padding: 0 7px; } +.terminal { min-width: 0; background: var(--panel); border: 1px solid #31505c; box-shadow: 8px 8px 0 #081015, 9px 9px 0 var(--line); } +.terminal-bar { padding: 11px 17px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: 1px; } +.terminal-body { padding: 23px; } +.prompt { font-size: 12px; margin: 0; color: var(--muted); } +.prompt::before { content: "$ "; color: var(--accent); } +.prompt span { color: var(--ink); } +.comment { color: var(--muted); font-size: 10px; margin: 7px 0 23px; } +.layer { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); padding: 13px 12px; margin-top: 8px; } +.layer-index { color: var(--arch); font-size: 11px; } +.layer strong { font-size: 12px; font-weight: 500; } +.layer small { display: block; font-size: 10px; color: var(--muted); } +.layer-tag { color: var(--muted); font-size: 8px; letter-spacing: 1px; margin-left: auto; } +.core { border-color: #267c88; background: #35d2d008; } +.core strong, .composition-result span { color: var(--accent); } +.composition-result { font-size: 11px; margin: 21px 0 0; } +.diagram-note { margin: 7px 0 0; font-size: 9px; } +.features { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); } +.features article { padding: 26px 28px 25px; } +.features article:first-child { padding-left: 0; } +.features article:last-child { padding-right: 0; } +.features article + article { border-left: 1px solid var(--line); } +h2 { font-size: 24px; line-height: 1.4; letter-spacing: -1px; margin: 12px 0; } +.features h2 { font-size: 17px; letter-spacing: -.5px; } +.features p:not(.eyebrow) { color: var(--muted); font-size: 12px; } +.downloads { padding: 70px 0; } +.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 25px; } +.api-link { font-size: 11px; margin-bottom: 16px; } +.pipeline { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; border: 1px solid var(--line); background: var(--panel); padding: 14px 18px; font-size: 10px; margin-bottom: 20px; } +.pipeline-label { color: var(--accent); letter-spacing: 1px; white-space: nowrap; } +#pipeline-status { color: var(--muted); flex: 1; min-width: 180px; overflow-wrap: anywhere; } +.pipeline a { margin-left: auto; } +#release-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } +.release { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--panel); padding: 24px; transition: border-color .15s; } +.release:hover { border-color: var(--accent); } +.release-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; } +.release-index { font-size: 12px; color: var(--muted); } +.channel { color: var(--accent); font-size: 9px; padding: 2px 7px; border: 1px solid #267c88; text-transform: uppercase; } +.release h3 { font-size: 21px; margin: 23px 0 4px; letter-spacing: -.7px; } +.release-description { color: var(--muted); font-size: 11px; min-height: 44px; margin: 4px 0 20px; } +.release-meta { border-block: 1px solid var(--line); padding: 13px 0; margin: 0 0 20px; color: var(--muted); font-size: 10px; line-height: 2; } +.release-meta span { color: var(--ink); } +.release .button { width: 100%; margin-top: auto; } +.hash { font-size: 9px; color: var(--muted); overflow-wrap: anywhere; margin: 18px 0 0; } +.hash span { display: block; color: var(--accent); letter-spacing: 1px; margin-bottom: 5px; } +.hash code { font: inherit; } +.empty { grid-column: 1 / -1; color: var(--muted); border: 1px dashed var(--line); padding: 25px; } +.release-notes { display: grid; grid-template-columns: 1.5fr 1fr; gap: 35px; margin-top: 20px; color: var(--muted); font-size: 10px; } +.note-label { display: block; color: var(--ink); letter-spacing: 1px; margin-bottom: 7px; } +.about { border-top: 1px solid var(--line); padding: 45px 0 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; } +.about p:not(.eyebrow) { color: var(--muted); font-size: 12px; max-width: 480px; } +footer { border-top: 1px solid var(--line); padding-block: 28px; } +.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; } +.footer-top > span { font-size: 9px; letter-spacing: 1px; color: var(--muted); } +footer .brand { font-size: 18px; } +footer > p { max-width: 850px; font-size: 10px; color: var(--muted); margin: 20px 0 0; } +@media (max-width: 950px) { + .hero { gap: 30px; } + .terminal-body { padding: 16px; } + .layer-tag { display: none; } + .release { padding: 18px; } + .release h3 { font-size: 18px; } +} +@media (max-width: 760px) { + main, .navigation, footer { padding-inline: 22px; } + .navigation { flex-direction: column; align-items: flex-start; padding-block: 20px; gap: 16px; } + nav { gap: 20px; } + .hero { grid-template-columns: 1fr; padding: 40px 0 45px; gap: 30px; } + h1 { font-size: clamp(36px, 9vw, 58px); letter-spacing: -2px; } + .terminal { margin-right: 9px; } + .layer-tag { display: block; } + .features { grid-template-columns: 1fr; } + .features article, .features article:first-child, .features article:last-child { padding: 18px 0; } + .features article + article { border-left: 0; border-top: 1px solid var(--line); } + .downloads { padding: 40px 0; } + .section-heading { align-items: start; flex-direction: column; gap: 0; } + #release-list, .release-notes, .about { grid-template-columns: 1fr; } + .release { padding: 23px; } + .release-description { min-height: 0; } + .release-notes { gap: 0; } + .about { gap: 10px; padding: 30px 0; } + .footer-top { align-items: start; flex-direction: column; gap: 8px; } +} +@media (prefers-reduced-motion: reduce) { + html { scroll-behavior: auto; } + * { transition: none !important; } +}