Signed-off-by: Yigit BALABAN <balaban@yigid.dev>
This commit is contained in:
commit
2cfe29f197
24 files changed
+4940
No files matched your search
@@ -0,0 +1,65 @@
|
||||
name: Device pages
|
||||
|
||||
# Regenerates public/devices/status.json (which src/pages/devices.astro renders)
|
||||
# and the wiki device pages from peacock-ports status.toml, converting each device
|
||||
# package's image.* to webp. See peacock-ports/device/STATUS.md.
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
repository_dispatch:
|
||||
types: [devices-update] # fired by peacock-ports on status.toml / image change
|
||||
schedule:
|
||||
- cron: '17 6 * * *' # daily safety net
|
||||
push:
|
||||
branches: [master]
|
||||
paths:
|
||||
- 'scripts/gen-devices.py'
|
||||
- '.github/workflows/devices.yml'
|
||||
|
||||
permissions:
|
||||
contents: write # commit the regenerated device data
|
||||
|
||||
concurrency:
|
||||
group: device-pages
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
generate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout site
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Checkout peacock-ports
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: PeacockProject/peacock-ports
|
||||
path: .peacock-ports
|
||||
|
||||
- name: Install webp tooling
|
||||
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends webp imagemagick
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Generate device data + push wiki
|
||||
env:
|
||||
PEACOCK_PORTS: ${{ github.workspace }}/.peacock-ports
|
||||
PEACOCK_SITE: ${{ github.workspace }}
|
||||
WIKI_URL: https://wiki.peacockos.org
|
||||
WIKI_API_TOKEN: ${{ secrets.WIKI_API_TOKEN }}
|
||||
run: python3 scripts/gen-devices.py
|
||||
|
||||
- name: Commit regenerated device data
|
||||
run: |
|
||||
git config user.name 'peacock-bot'
|
||||
git config user.email 'bot@peacockos.org'
|
||||
git add public/devices/
|
||||
if git diff --cached --quiet; then
|
||||
echo 'No device changes to commit.'
|
||||
else
|
||||
git commit -m 'ci: regenerate device data from status.toml'
|
||||
git push
|
||||
fi
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
# build output
|
||||
dist/
|
||||
.astro/
|
||||
|
||||
# dependencies
|
||||
node_modules/
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
|
||||
# python
|
||||
__pycache__/
|
||||
@@ -0,0 +1,56 @@
|
||||
# Peacock // OS — site
|
||||
|
||||
Astro port of the static site in `../site` (the PeacockProject build output).
|
||||
Markup, copy, styling and interactions are kept 1:1 with the original.
|
||||
|
||||
## Commands
|
||||
|
||||
```sh
|
||||
npm install
|
||||
npm run dev # local dev server
|
||||
npm run build # static build -> dist/
|
||||
npm run preview # serve dist/
|
||||
```
|
||||
|
||||
Use `pnpm` instead of `npm` if you prefer; both work.
|
||||
|
||||
## Deploy
|
||||
|
||||
Vercel auto-detects Astro: build command `npm run build`, output directory
|
||||
`dist`. No `vercel.json` is needed.
|
||||
|
||||
## Structure
|
||||
|
||||
```
|
||||
public/
|
||||
logo-mark-dark.png favicon
|
||||
devices/status.json device data (generated; rendered by the devices page)
|
||||
devices/img/ per-device photos (webp/png/jpg)
|
||||
src/
|
||||
assets/peacock-*.svg peacock marks, inlined at build time
|
||||
components/ Header, Footer, Mark, IridescentDefs
|
||||
layouts/Base.astro document shell, fonts, shared script
|
||||
pages/
|
||||
index.astro /
|
||||
project.astro /project
|
||||
devices.astro /devices (built from public/devices/status.json)
|
||||
404.astro /404.html
|
||||
scripts/site.js scroll reveals + path spine
|
||||
styles/global.css shared design system
|
||||
scripts/gen-devices.py regenerates status.json + images + wiki pages
|
||||
.github/workflows/devices.yml CI for the device pipeline
|
||||
```
|
||||
|
||||
## Device pages
|
||||
|
||||
`src/pages/devices.astro` reads `public/devices/status.json` at build time and
|
||||
renders the brand-grouped cards and search. To refresh the data, run
|
||||
`python3 scripts/gen-devices.py` (needs a `peacock-ports` checkout; see the
|
||||
workflow for the CI invocation). The same script also updates the wiki.
|
||||
|
||||
## Notes on the port
|
||||
|
||||
`../site` also contains leftovers from an older Next.js export (`404.html`,
|
||||
`_next/`, `*.txt`, `assets/site.css`, `assets/site.js`). Those are not part of
|
||||
the current site and were intentionally not ported. The 404 page was rebuilt
|
||||
in the current design language instead.
|
||||
@@ -0,0 +1,11 @@
|
||||
import { defineConfig } from 'astro/config';
|
||||
|
||||
// Static site, ported 1:1 from the hand-written build in `../site`.
|
||||
// Pages are emitted as `<route>/index.html`, matching the original layout.
|
||||
export default defineConfig({
|
||||
site: 'https://peacockos.org',
|
||||
build: {
|
||||
format: 'directory',
|
||||
},
|
||||
trailingSlash: 'ignore',
|
||||
});
|
||||
Generated
+3761
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "peacock-site",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"build": "astro build",
|
||||
"preview": "astro preview",
|
||||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^7.4.4"
|
||||
}
|
||||
}
|
||||
Whitespace-only changes.
@@ -0,0 +1,216 @@
|
||||
{
|
||||
"generated": "2026-10-31T12:42:29Z",
|
||||
"devices": [
|
||||
{
|
||||
"device": {
|
||||
"codename": "oppo6765",
|
||||
"name": "OPPO A16",
|
||||
"manufacturer": "OPPO",
|
||||
"released": 2021,
|
||||
"type": "handset"
|
||||
},
|
||||
"hardware": {
|
||||
"chipset": "MediaTek Helio G35 (MT6765)",
|
||||
"architecture": "aarch64",
|
||||
"display": "720x1600 IPS LCD",
|
||||
"storage": "32/64 GB",
|
||||
"memory": "3/4 GB"
|
||||
},
|
||||
"software": {
|
||||
"original_android": "Android 11 (ColorOS 11.1)",
|
||||
"max_android": "TODO",
|
||||
"kernel": "downstream 4.19",
|
||||
"maturity": "testing"
|
||||
},
|
||||
"support": {
|
||||
"basics": {
|
||||
"flashing": "works",
|
||||
"recovery": "works",
|
||||
"recovery_note": "PRP boots with SSH and touch.",
|
||||
"screen": "works",
|
||||
"touch": "works",
|
||||
"battery": "untested",
|
||||
"usb_net": "untested"
|
||||
},
|
||||
"multimedia": {
|
||||
"accel_3d": "untested",
|
||||
"audio": "untested",
|
||||
"camera_rear": "untested",
|
||||
"camera_front": "untested"
|
||||
},
|
||||
"connectivity": {
|
||||
"wifi": "untested",
|
||||
"bluetooth": "untested",
|
||||
"gps": "untested"
|
||||
},
|
||||
"modem": {
|
||||
"calls": "untested",
|
||||
"sms": "untested",
|
||||
"data": "untested"
|
||||
},
|
||||
"sensors": {
|
||||
"accelerometer": "untested",
|
||||
"ambient_light": "untested",
|
||||
"proximity": "untested",
|
||||
"gyroscope": "untested"
|
||||
}
|
||||
},
|
||||
"port": "oppo-a16"
|
||||
},
|
||||
{
|
||||
"device": {
|
||||
"codename": "qemu-x86_64",
|
||||
"name": "QEMU x86_64",
|
||||
"manufacturer": "QEMU",
|
||||
"released": 0,
|
||||
"type": "vm"
|
||||
},
|
||||
"hardware": {
|
||||
"chipset": "QEMU / virtio (UEFI)",
|
||||
"architecture": "x86_64",
|
||||
"display": "virtual framebuffer",
|
||||
"storage": "virtual disk",
|
||||
"memory": "host-allocated"
|
||||
},
|
||||
"software": {
|
||||
"original_android": "n/a",
|
||||
"kernel": "TODO",
|
||||
"maturity": "testing"
|
||||
},
|
||||
"support": {
|
||||
"basics": {
|
||||
"flashing": "works",
|
||||
"flashing_note": "Boots straight in QEMU; no flashing step.",
|
||||
"recovery": "works",
|
||||
"recovery_note": "PRP boots in QEMU via the GRUB dual-entry.",
|
||||
"screen": "works",
|
||||
"touch": "works",
|
||||
"touch_note": "Mouse/touch passthrough from the host.",
|
||||
"battery": "untested",
|
||||
"usb_net": "untested"
|
||||
},
|
||||
"multimedia": {
|
||||
"accel_3d": "untested",
|
||||
"audio": "untested"
|
||||
},
|
||||
"connectivity": {
|
||||
"wifi": "untested",
|
||||
"bluetooth": "untested"
|
||||
}
|
||||
},
|
||||
"port": "qemu-x86_64"
|
||||
},
|
||||
{
|
||||
"device": {
|
||||
"codename": "jflte",
|
||||
"name": "Samsung Galaxy S4 (Qualcomm)",
|
||||
"manufacturer": "Samsung",
|
||||
"released": 2013,
|
||||
"type": "handset"
|
||||
},
|
||||
"hardware": {
|
||||
"chipset": "Qualcomm Snapdragon 600 (APQ8064)",
|
||||
"architecture": "armv7",
|
||||
"display": "1080x1920 Super AMOLED",
|
||||
"storage": "16/32 GB",
|
||||
"memory": "2 GB"
|
||||
},
|
||||
"software": {
|
||||
"original_android": "Android 4.2.2",
|
||||
"max_android": "Android 5.0.1",
|
||||
"kernel": "TODO",
|
||||
"maturity": "testing"
|
||||
},
|
||||
"support": {
|
||||
"basics": {
|
||||
"flashing": "works",
|
||||
"recovery": "works",
|
||||
"recovery_note": "PRP boots with SSH and touch.",
|
||||
"screen": "works",
|
||||
"touch": "works",
|
||||
"battery": "untested",
|
||||
"usb_net": "untested"
|
||||
},
|
||||
"multimedia": {
|
||||
"accel_3d": "untested",
|
||||
"audio": "untested",
|
||||
"camera_rear": "untested",
|
||||
"camera_front": "untested"
|
||||
},
|
||||
"connectivity": {
|
||||
"wifi": "untested",
|
||||
"bluetooth": "untested",
|
||||
"gps": "untested"
|
||||
},
|
||||
"modem": {
|
||||
"calls": "untested",
|
||||
"sms": "untested",
|
||||
"data": "untested"
|
||||
},
|
||||
"sensors": {
|
||||
"accelerometer": "untested",
|
||||
"ambient_light": "untested",
|
||||
"proximity": "untested",
|
||||
"gyroscope": "untested"
|
||||
}
|
||||
},
|
||||
"port": "samsung-jflte"
|
||||
},
|
||||
{
|
||||
"device": {
|
||||
"codename": "daisy",
|
||||
"name": "Xiaomi Mi A2 Lite",
|
||||
"manufacturer": "Xiaomi",
|
||||
"released": 2018,
|
||||
"type": "handset"
|
||||
},
|
||||
"hardware": {
|
||||
"chipset": "Qualcomm Snapdragon 625 (MSM8953)",
|
||||
"architecture": "aarch64",
|
||||
"display": "1080x2280 IPS LCD",
|
||||
"storage": "32/64 GB",
|
||||
"memory": "3/4 GB"
|
||||
},
|
||||
"software": {
|
||||
"original_android": "Android 8.1",
|
||||
"max_android": "Android 10",
|
||||
"kernel": "TODO",
|
||||
"maturity": "testing"
|
||||
},
|
||||
"support": {
|
||||
"basics": {
|
||||
"flashing": "works",
|
||||
"recovery": "works",
|
||||
"recovery_note": "PRP boots with SSH and touch.",
|
||||
"screen": "works",
|
||||
"touch": "works",
|
||||
"battery": "untested",
|
||||
"usb_net": "untested"
|
||||
},
|
||||
"multimedia": {
|
||||
"accel_3d": "untested",
|
||||
"audio": "untested",
|
||||
"camera_rear": "untested",
|
||||
"camera_front": "untested"
|
||||
},
|
||||
"connectivity": {
|
||||
"wifi": "untested",
|
||||
"bluetooth": "untested",
|
||||
"gps": "untested"
|
||||
},
|
||||
"modem": {
|
||||
"calls": "untested",
|
||||
"sms": "untested",
|
||||
"data": "untested"
|
||||
},
|
||||
"sensors": {
|
||||
"accelerometer": "untested",
|
||||
"ambient_light": "untested",
|
||||
"proximity": "untested",
|
||||
"gyroscope": "untested"
|
||||
}
|
||||
},
|
||||
"port": "xiaomi-daisy"
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 69 KiB |
@@ -0,0 +1,215 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Generate device compatibility outputs from peacock-ports status.toml files.
|
||||
|
||||
Outputs:
|
||||
- public/devices/status.json machine-readable; src/pages/devices.astro renders
|
||||
the brand-grouped cards from it at build time
|
||||
- wiki `devices` index page: brand-grouped links
|
||||
- wiki `devices/<codename>` one page PER device with the detailed matrix in a
|
||||
marked block; author prose/photos around it are preserved
|
||||
|
||||
Device images: public/devices/img/<codename>.{webp,png,jpg} (git). Both site and
|
||||
wiki reference the same file. Drop one in per device.
|
||||
|
||||
Source of truth + design: peacock-ports/device/STATUS.md
|
||||
"""
|
||||
import os, json, glob, re, datetime, urllib.request, subprocess, shutil
|
||||
|
||||
PORTS = os.environ.get('PEACOCK_PORTS', os.path.expanduser('~/Documents/bro/PeacockProject/peacock-ports'))
|
||||
ROOT = os.environ.get('PEACOCK_SITE', os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
DATA = os.path.join(ROOT, 'public') # Astro copies this directory to the build as-is
|
||||
SITE_URL = os.environ.get('SITE_URL', 'https://peacockos.org')
|
||||
WIKI = os.environ.get('WIKI_URL', 'https://wiki.peacockos.org')
|
||||
|
||||
try:
|
||||
import tomllib
|
||||
except ModuleNotFoundError:
|
||||
import tomli as tomllib
|
||||
|
||||
GROUPS = [
|
||||
('basics', 'Basics', ['flashing', 'recovery', 'screen', 'touch', 'battery', 'usb_net']),
|
||||
('multimedia', 'Multimedia', ['accel_3d', 'audio', 'camera_rear', 'camera_front', 'camera_flash']),
|
||||
('connectivity', 'Connectivity', ['wifi', 'bluetooth', 'gps']),
|
||||
('modem', 'Modem', ['calls', 'sms', 'data']),
|
||||
('misc', 'Miscellaneous', ['usb_otg', 'fingerprint', 'fde']),
|
||||
('sensors', 'Sensors', ['accelerometer', 'ambient_light', 'proximity', 'gyroscope', 'haptics']),
|
||||
]
|
||||
LABELS = {'recovery': 'Recovery (PRP)', 'usb_net': 'USB networking', 'accel_3d': '3D acceleration',
|
||||
'camera_rear': 'Rear camera', 'camera_front': 'Front camera', 'camera_flash': 'Camera flash',
|
||||
'gps': 'GPS', 'sms': 'SMS', 'data': 'Mobile data', 'usb_otg': 'USB OTG',
|
||||
'fde': 'Full-disk encryption', 'ambient_light': 'Ambient light', 'fingerprint': 'Fingerprint'}
|
||||
EMOJI = {'works': '✅', 'partial': '🟡', 'broken': '❌', 'untested': '⚪'}
|
||||
WORD = {'works': 'Works', 'partial': 'Partial', 'broken': 'Broken', 'untested': 'Untested'}
|
||||
MARK_START = '<!-- peacock:status:start (generated — do not edit inside) -->'
|
||||
MARK_END = '<!-- peacock:status:end -->'
|
||||
VERIFIED_NOTE = ('Verified so far on each phone: the bootloader, PRP recovery (SSH + touch), '
|
||||
'and boot through to the XFCE desktop with working touch. Everything else is **untested**, not broken.')
|
||||
|
||||
def label(k): return LABELS.get(k, k.replace('_', ' ').capitalize())
|
||||
def codename(d): return d.get('device', {}).get('codename', d['_port'])
|
||||
def name(d): return d.get('device', {}).get('name', codename(d))
|
||||
|
||||
def platform(dev):
|
||||
soc = (dev.get('hardware', {}).get('chipset', '') or '').lower()
|
||||
if 'mediatek' in soc or soc.startswith('mt'): return ('MediaTek', 'MinKernel')
|
||||
if 'qualcomm' in soc or 'snapdragon' in soc or 'msm' in soc or 'apq' in soc: return ('Qualcomm', 'lk2nd')
|
||||
if 'qemu' in soc or dev.get('device', {}).get('type') == 'vm': return ('Virtual', '—')
|
||||
return (dev.get('hardware', {}).get('architecture', '—'), '—')
|
||||
|
||||
def load():
|
||||
devs = []
|
||||
for p in sorted(glob.glob(os.path.join(PORTS, 'device', '*', 'status.toml'))):
|
||||
with open(p, 'rb') as f:
|
||||
d = tomllib.load(f)
|
||||
d['_port'] = os.path.basename(os.path.dirname(p))
|
||||
devs.append(d)
|
||||
return devs
|
||||
|
||||
def by_brand(devs):
|
||||
brands = {}
|
||||
for d in devs:
|
||||
brands.setdefault(d.get('device', {}).get('manufacturer', 'Other'), []).append(d)
|
||||
order = sorted(brands, key=lambda b: (b.lower() == 'qemu', b.lower())) # QEMU last
|
||||
return [(b, sorted(brands[b], key=lambda d: name(d))) for b in order]
|
||||
|
||||
def support_items(dev):
|
||||
sup = dev.get('support', {})
|
||||
for gkey, glabel, keys in GROUPS:
|
||||
g = sup.get(gkey, {})
|
||||
rows = [(k, label(k), g[k], g.get(k + '_note')) for k in keys if k in g]
|
||||
if rows:
|
||||
yield glabel, rows
|
||||
|
||||
def build_images(devs):
|
||||
"""Convert each device package's image.* (peacock-ports/device/<port>/) into an
|
||||
optimized webp at public/devices/img/<codename>.webp. Devs drop the source photo in
|
||||
the port; CI does the conversion."""
|
||||
os.makedirs(os.path.join(DATA, 'devices', 'img'), exist_ok=True)
|
||||
magick = shutil.which('magick') or shutil.which('convert')
|
||||
cwebp = shutil.which('cwebp')
|
||||
for d in devs:
|
||||
src = next((p for ext in ('png', 'jpg', 'jpeg', 'webp', 'avif')
|
||||
for p in [os.path.join(PORTS, 'device', d['_port'], f'image.{ext}')]
|
||||
if os.path.exists(p)), None)
|
||||
if not src:
|
||||
continue
|
||||
code = codename(d)
|
||||
out = os.path.join(DATA, 'devices', 'img', f'{code}.webp')
|
||||
if magick:
|
||||
subprocess.run([magick, src, '-resize', '800x800>', '-strip', '-quality', '82', out], check=True)
|
||||
elif cwebp:
|
||||
subprocess.run([cwebp, '-quiet', '-q', '82', '-resize', '800', '0', src, '-o', out], check=True)
|
||||
else:
|
||||
shutil.copy(src, os.path.join(DATA, 'devices', 'img', f"{code}.{src.rsplit('.', 1)[1]}"))
|
||||
print(f' image {code}: no webp tool, copied source as-is'); continue
|
||||
print(f' image {code}: {os.path.relpath(src, PORTS)} -> {code}.webp')
|
||||
|
||||
# ---------------------------------------------------------------- wiki
|
||||
def matrix_md(dev):
|
||||
dd, hw, sw = dev['device'], dev.get('hardware', {}), dev.get('software', {})
|
||||
lines = ['| | |', '|---|---|']
|
||||
specs = [('Codename', codename(dev)), ('Chipset', hw.get('chipset')), ('Architecture', hw.get('architecture')),
|
||||
('Display', hw.get('display')), ('Memory', hw.get('memory')), ('Storage', hw.get('storage')),
|
||||
('Released', dd.get('released')), ('Ships with', sw.get('original_android')),
|
||||
('Kernel', sw.get('kernel')), ('Maturity', sw.get('maturity'))]
|
||||
for k, v in specs:
|
||||
if v and str(v) not in ('TODO', 'n/a', '0'):
|
||||
lines.append(f'| **{k}** | {v} |')
|
||||
lines += ['', '| Feature | Status |', '|---|---|']
|
||||
for glabel, rows in support_items(dev):
|
||||
lines.append(f'| **{glabel}** | |')
|
||||
for k, lab, status, note in rows:
|
||||
cell = f"{EMOJI.get(status, '')} {WORD.get(status, status)}"
|
||||
if note:
|
||||
cell += f" — {note}"
|
||||
lines.append(f'| {lab} | {cell} |')
|
||||
return '\n'.join(lines)
|
||||
|
||||
def device_stub(dev, block):
|
||||
n, code = name(dev), codename(dev)
|
||||
return (f"# {n}\n\n"
|
||||
f"_Add an overview, install notes and quirks for the {n} here. "
|
||||
f"Device photo: drop `image.png` (or .jpg) into this device's package in "
|
||||
f"`peacock-ports/device/{dev['_port']}/` — CI converts it to webp automatically. "
|
||||
f"The compatibility block below is generated — edit around it, not between the markers._\n\n"
|
||||
f"{MARK_START}\n{block}\n{MARK_END}\n")
|
||||
|
||||
def replace_marked(content, block):
|
||||
if MARK_START in content and MARK_END in content:
|
||||
pre = content.split(MARK_START)[0]
|
||||
post = content.split(MARK_END, 1)[1]
|
||||
return f"{pre}{MARK_START}\n{block}\n{MARK_END}{post}"
|
||||
return f"{content.rstrip()}\n\n{MARK_START}\n{block}\n{MARK_END}\n"
|
||||
|
||||
def index_md(devs):
|
||||
lines = ['# Supported devices', '', f'> {VERIFIED_NOTE}', '',
|
||||
'Each device has its own page with the full compatibility breakdown.', '']
|
||||
for brand, ds in by_brand(devs):
|
||||
lines.append(f'## {brand}')
|
||||
for d in ds:
|
||||
plat, boot = platform(d)
|
||||
lines.append(f"- [{name(d)}](/devices/{codename(d)}) — `{codename(d)}` · {plat} · "
|
||||
f"{boot} · {d.get('software',{}).get('maturity','')}")
|
||||
lines.append('')
|
||||
return '\n'.join(lines)
|
||||
|
||||
def token():
|
||||
t = os.environ.get('WIKI_API_TOKEN')
|
||||
if not t:
|
||||
sf = os.path.expanduser('~/Documents/bro/PeacockProject/infra/peacock-community/SECRETS.api-tokens.txt')
|
||||
if os.path.exists(sf):
|
||||
m = re.search(r'## Wiki\.js.*?TOKEN=(\S+)', open(sf).read(), re.DOTALL)
|
||||
t = m and m.group(1)
|
||||
return t
|
||||
|
||||
def gql(tok, query, variables=None):
|
||||
req = urllib.request.Request(WIKI + '/graphql',
|
||||
data=json.dumps({'query': query, 'variables': variables or {}}).encode(),
|
||||
headers={'Authorization': 'Bearer ' + tok, 'Content-Type': 'application/json'})
|
||||
return json.loads(urllib.request.urlopen(req).read().decode())
|
||||
|
||||
def wiki_save(tok, pid, path, title, content, desc):
|
||||
common = (f'content:$content,description:$description,editor:"markdown",isPrivate:false,'
|
||||
f'isPublished:true,locale:"en",path:$path,tags:[],title:$title')
|
||||
if pid:
|
||||
q = (f'mutation($content:String!,$description:String!,$path:String!,$title:String!)'
|
||||
f'{{pages{{update(id:{pid},{common}){{responseResult{{succeeded message}}}}}}}}')
|
||||
else:
|
||||
q = (f'mutation($content:String!,$description:String!,$path:String!,$title:String!)'
|
||||
f'{{pages{{create({common}){{responseResult{{succeeded message}} page{{id path}}}}}}}}')
|
||||
r = gql(tok, q, {'content': content, 'description': desc, 'path': path, 'title': title})
|
||||
node = r['data']['pages']['update' if pid else 'create']
|
||||
return node['responseResult'], node.get('page')
|
||||
|
||||
def sync_wiki(devs):
|
||||
tok = token()
|
||||
if not tok:
|
||||
print(' (no WIKI_API_TOKEN — skipping wiki)'); return
|
||||
pages = gql(tok, '{ pages { list { id path } } }')['data']['pages']['list']
|
||||
pmap = {p['path']: p['id'] for p in pages}
|
||||
rr, _ = wiki_save(tok, pmap.get('devices'), 'devices', 'Supported devices',
|
||||
index_md(devs), 'Devices that run PeacockOS, by brand.')
|
||||
print(' wiki devices (index):', rr['succeeded'])
|
||||
for d in devs:
|
||||
path = f'devices/{codename(d)}'; block = matrix_md(d)
|
||||
if path in pmap:
|
||||
cur = gql(tok, f'{{ pages {{ single(id:{pmap[path]}) {{ content }} }} }}')['data']['pages']['single']['content']
|
||||
content = replace_marked(cur, block)
|
||||
else:
|
||||
content = device_stub(d, block)
|
||||
rr, _ = wiki_save(tok, pmap.get(path), path, name(d), content, f'{name(d)} on PeacockOS.')
|
||||
print(f' wiki {path}:', rr['succeeded'], '' if rr['succeeded'] else rr.get('message'))
|
||||
|
||||
def main():
|
||||
devs = load()
|
||||
print('loaded %d devices: %s' % (len(devs), ', '.join(codename(d) for d in devs)))
|
||||
payload = {'generated': datetime.datetime.now(datetime.timezone.utc).strftime('%Y-%m-%dT%H:%M:%SZ'),
|
||||
'devices': [{k: v for k, v in d.items() if not k.startswith('_')} | {'port': d['_port']} for d in devs]}
|
||||
os.makedirs(os.path.join(DATA, 'devices', 'img'), exist_ok=True)
|
||||
open(os.path.join(DATA, 'devices', 'status.json'), 'w').write(json.dumps(payload, indent=1))
|
||||
print(' wrote devices/status.json')
|
||||
build_images(devs)
|
||||
sync_wiki(devs)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
|
||||
<svg width="195" height="225" viewBox="10 31 195 225" version="1.1" id="svg1" xml:space="preserve" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"><namedview id="namedview1" pagecolor="#505050" bordercolor="#ffffff" borderopacity="1"></namedview><defs id="defs1"></defs><g id="layer1"><path style="fill:#ffffff;fill-opacity:1;stroke-width:0.593633" d="m 92.524433,250.17477 c -3.153602,-2.60666 -6.823542,-6.41592 -8.561092,-8.88608 -3.92818,-5.58444 -5.23742,-9.26791 -5.03673,-14.17055 0.13397,-3.27259 0.86086,-5.3479 2.98695,-8.52786 0.55481,-0.82982 1.18732,-1.95565 1.40559,-2.50184 0.57179,-1.43086 0.81012,-3.91229 0.67132,-6.98968 -0.0616,-1.3667 -0.15859,-11.03713 -0.21545,-21.48982 l -0.10338,-19.00491 -0.78532,-0.39417 c -0.98288,-0.49332 -2.1324,-0.98615 -3.8543,-1.65242 -0.73769,-0.28544 -1.7272,-0.69185 -2.19891,-0.90312 -0.47172,-0.21128 -1.4231,-0.58056 -2.11419,-0.82063 -1.41252,-0.49069 -5.714792,-2.20605 -9.580976,-3.82004 -0.748392,-0.31243 -5.543893,-2.71592 -6.439679,-3.22755 -0.345541,-0.19736 -0.910976,-0.52027 -1.256524,-0.71758 -2.623078,-1.4978 -5.567258,-3.76086 -8.05899,-6.19458 -4.782737,-4.6714 -7.62787,-10.35186 -8.221069,-16.41382 -0.212413,-2.17068 -0.02582,-4.80378 0.474318,-6.69306 0.383184,-1.44749 1.608662,-4.5131 2.276261,-5.6942 1.432216,-2.53384 3.938437,-5.17077 6.378434,-6.71107 0.887195,-0.56006 3.91864,-2.12327 4.117542,-2.12327 0.08737,0 0.381575,-0.10265 0.653791,-0.22811 0.641474,-0.29564 2.709743,-0.80267 4.107433,-1.00692 4.96446,-0.72549 10.902039,-0.004 15.863589,1.92894 2.13923,0.83319 2.68215,1.03381 2.79784,1.03381 0.47742,0 5.79212,2.90808 8.23545,4.50624 4.905192,3.20844 9.154122,6.91112 14.294589,12.45681 1.51559,1.63507 4.83098,5.806 5.93028,7.4606 0.34436,0.51832 0.66932,0.97774 0.72214,1.02093 0.0528,0.0432 0.54171,0.78533 1.08643,1.64919 0.54472,0.86386 1.36733,2.14701 1.82802,2.85145 0.46069,0.70444 0.83762,1.32964 0.83762,1.38933 0,0.0597 0.13774,0.30198 0.30608,0.5384 0.30792,0.43243 0.64053,0.99406 3.29537,5.56436 1.72924,2.97687 1.9746,3.32538 3.805,5.40467 1.22119,1.38722 3.03245,3.02108 3.34911,3.02108 0.0544,0 0.30996,0.19719 0.56783,0.43818 0.25787,0.241 1.08452,0.81658 1.837,1.27907 0.75248,0.46248 1.55538,0.96894 1.78423,1.12545 0.22884,0.15652 1.14767,0.66286 2.04185,1.1252 1.42773,0.73823 2.09421,1.0427 3.35349,1.53198 0.17277,0.0671 0.67277,0.26733 1.11112,0.44489 2.488,1.0078 9.15165,2.75998 11.77,3.09487 0.78709,0.10067 0.78709,0.10067 1.14596,-0.53787 0.93402,-1.66185 2.64615,-2.61215 4.66987,-2.59194 2.06209,0.0206 3.77392,1.16604 4.71477,3.15484 0.39286,0.83045 0.39286,0.83045 2.39085,0.83149 1.09889,5.7e-4 3.87098,0.0453 6.16021,0.0995 l 4.16223,0.0984 2.98424,-2.9792 c 3.05221,-3.04707 11.40852,-11.57187 14.01808,-14.30074 0.79906,-0.8356 1.45285,-1.59458 1.45285,-1.68663 0,-0.0921 -0.11562,-0.33244 -0.25693,-0.53418 -0.38859,-0.55479 -0.20841,-2.42548 0.34197,-3.55041 0.51176,-1.04601 1.64985,-2.25114 2.50654,-2.65419 0.91762,-0.43171 2.66441,-0.51334 3.71004,-0.17337 0.86409,0.28095 1.73172,0.83103 2.21626,1.40512 0.14958,0.17722 0.35057,0.41466 0.44664,0.52766 0.0961,0.11299 0.34476,0.62402 0.55264,1.1356 1.34918,3.32034 -0.84582,6.88706 -4.41253,7.17007 -0.81796,0.0649 -1.25517,0.022 -1.70764,-0.16751 -0.3345,-0.14011 -0.74259,-0.25475 -0.90686,-0.25475 -0.17561,0 -1.05766,0.78313 -2.14047,1.90043 -1.01298,1.04523 -5.38866,5.46277 -9.72374,9.81675 l -7.88195,7.91632 -6.09685,-0.15466 c -3.35328,-0.0851 -6.42298,-0.15582 -6.82159,-0.15723 -0.71566,-0.002 -0.72811,0.006 -0.99644,0.70893 -0.14946,0.39134 -0.6008,1.04769 -1.003,1.45858 -1.82464,1.86403 -4.72082,2.12669 -6.90207,0.62595 -0.75633,-0.52036 -1.82325,-2.05169 -2.08049,-2.98607 -0.13502,-0.49045 -0.24054,-0.59492 -0.66652,-0.65994 -2.43066,-0.37098 -4.76843,-0.76844 -4.86726,-0.82752 -0.0662,-0.0396 -0.31359,-0.10468 -0.54973,-0.14465 -3.61016,-0.61118 -10.1318,-3.05575 -14.00022,-5.24784 -0.62956,-0.35675 -1.17262,-0.62067 -1.20681,-0.58648 -0.0768,0.0767 1.22766,1.85942 1.97556,2.69989 3.99964,4.49464 5.48063,5.95298 8.64278,8.51066 0.7327,0.59264 1.36752,1.12006 1.41071,1.17205 0.19742,0.23763 3.89967,2.71875 5.28739,3.54343 0.84972,0.50496 1.89835,1.15131 2.33028,1.43633 0.86544,0.57109 6.67863,3.53521 7.30353,3.72404 0.21597,0.0653 0.71073,0.25902 1.09946,0.43058 0.9423,0.41584 1.53648,0.65863 2.19892,0.89848 0.30234,0.10947 0.76176,0.29127 1.02092,0.40401 2.01354,0.87588 7.78758,2.49642 8.43413,2.36711 0.42886,-0.0858 0.90633,-0.28511 2.9035,-1.21213 1.20497,-0.5593 3.56305,-0.98737 4.66433,-0.84672 1.03893,0.13269 2.34722,0.60988 3.23854,1.18124 0.91357,0.58563 3.27494,3.03643 4.46609,4.63523 2.46761,3.31211 2.55492,3.45108 2.24557,3.57414 -2.54233,1.01128 -3.57697,1.42943 -3.96302,1.60163 -1.17258,0.52304 -3.7434,1.32536 -4.83388,1.5086 -1.50242,0.25244 -3.25235,0.0205 -4.34931,-0.57658 -1.04981,-0.57138 -2.637Line truncated
|
||||
|
After Width: | Height: | Size: 48 KiB |
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
|
||||
<svg width="158" height="198" viewBox="28 43 158 198" version="1.1" id="svg1" xml:space="preserve" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"><namedview id="namedview1" pagecolor="#505050" bordercolor="#ffffff" borderopacity="1"></namedview><defs id="defs1"></defs><g id="layer1"><path style="fill:#ffffff;fill-opacity:1;stroke-width:2.06637" d="m 80.884064,234.5248 c -2.800788,-0.94078 4.0184,-5.29627 4.920506,-6.57006 0.902105,-1.27376 2.524162,-3.40737 3.604593,-4.74135 2.258396,-2.78836 8.956833,-12.70898 11.088177,-16.42196 2.38896,-4.16175 6.31606,-14.17969 7.15979,-18.26454 1.51603,-7.33962 -0.55635,-14.36205 -5.55994,-18.84035 -3.004003,-2.68867 -8.4087,-5.72149 -12.369596,-6.94116 -2.527956,-0.77843 -3.170492,-1.23105 -3.633658,-2.5598 -0.775924,-2.22575 -0.704635,-3.96445 0.237048,-5.78568 1.041863,-2.01474 1.707651,-2.22561 7.035699,-2.22822 15.929567,-0.007 26.418887,-5.59221 32.026767,-17.05055 2.15901,-4.41142 5.97591,-17.11323 5.33508,-17.75406 -0.17509,-0.17509 -1.92733,0.11765 -3.89428,0.65002 -2.96111,0.80154 -4.39934,0.88411 -8.36149,0.48015 -2.6319,-0.26838 -7.61457,-0.48924 -11.07262,-0.4908 -7.600752,-0.003 -10.719518,0.89086 -15.855038,4.54679 -4.392943,3.1273 -5.547482,4.33356 -8.545184,8.92798 -2.9862,4.57684 -6.437899,7.63183 -11.069408,9.79726 -1.991705,0.9312 -4.940305,2.34897 -6.552444,3.15058 -2.739587,1.36221 -2.828935,1.46726 -1.366818,1.60712 2.667432,0.25515 9.180884,1.88351 9.941905,2.48542 1.293173,1.02286 2.883177,4.75694 3.213652,7.54718 0.322922,2.72668 0.322922,2.72668 -1.26032,2.34284 -0.870784,-0.21129 -2.120191,-0.58144 -2.776449,-0.82295 -2.366916,-0.87102 -11.977396,-1.16741 -17.718419,-0.54646 -6.431108,0.69562 -10.431861,1.74514 -17.685237,4.63943 -2.687721,1.07245 -4.945909,1.89078 -5.01821,1.81848 -0.07233,-0.0724 0.601684,-1.79555 1.497743,-3.82943 4.586547,-10.41051 11.871909,-17.12848 27.269265,-25.14551 2.856625,-1.48738 5.564393,-3.02924 6.017235,-3.4263 0.452824,-0.3971 2.044959,-3.13697 3.538052,-6.08859 2.258971,-4.46565 3.543382,-6.19694 7.650903,-10.31274 4.016027,-4.02411 5.893476,-5.43776 10.071474,-7.58352 6.932456,-3.56042 12.370748,-5.21043 18.510598,-5.6163 2.78147,-0.18379 5.05724,-0.53814 5.05724,-0.7873 0,-1.130941 -3.93197,-18.954661 -5.13375,-23.271373 -0.73711,-2.647559 -1.42117,-5.405393 -1.52024,-6.128511 -0.13331,-0.97503 -0.7409,-1.508127 -2.35071,-2.063293 -5.923552,-2.042791 -8.431424,-8.045608 -5.709965,-13.667407 4.013975,-8.291741 15.144445,-6.566581 17.475805,2.708683 0.55517,2.208655 0.51778,2.974867 -0.24227,4.964748 -0.49425,1.294158 -1.41164,2.903683 -2.03868,3.576712 -0.71122,0.763461 -1.0388,1.672181 -0.87092,2.416045 0.14794,0.655799 1.75433,7.096998 3.56961,14.313772 1.81528,7.216774 3.50803,14.086609 3.76172,15.26628 0.53365,2.481734 1.80689,3.325844 1.80689,1.197914 0,-1.253921 0.9955,-6.039647 4.44819,-21.384735 0.60891,-2.706281 1.42949,-6.590111 1.82346,-8.630709 0.71633,-3.710203 0.71633,-3.710203 -1.07841,-5.858325 -2.50628,-2.999824 -3.31669,-6.636198 -2.19042,-9.828446 1.5475,-4.386051 4.68576,-6.698714 9.09008,-6.698714 7.52918,0 12.11741,8.882342 7.77974,15.060699 -0.88324,1.258061 -2.64049,2.859301 -3.90503,3.558367 -1.32072,0.730115 -2.40811,1.777095 -2.55518,2.460253 -1.86631,8.668372 -5.49297,24.983686 -6.32403,28.449984 -0.5867,2.447165 -1.06846,4.879916 -1.07058,5.406156 -0.007,1.34721 1.22795,1.18973 2.14085,-0.27325 0.42213,-0.67658 4.24417,-5.904653 8.49349,-11.61793 4.24929,-5.713276 8.76267,-11.863961 10.02975,-13.668137 2.30371,-3.280384 2.30371,-3.280384 1.18687,-5.526563 -4.16968,-8.385794 7.73414,-16.824358 14.71129,-10.428758 3.3578,3.077935 4.21782,8.355754 1.98292,12.169304 -1.8094,3.087508 -4.33982,4.601796 -7.72352,4.62209 -2.66911,0.0174 -2.66911,0.0174 -6.22281,5.213596 -3.37155,4.931157 -5.31374,7.619617 -13.79171,19.090898 -1.99653,2.70141 -3.53866,5.00307 -3.42696,5.11478 0.11173,0.11173 2.3709,-1.03146 5.02048,-2.54039 2.64957,-1.50889 9.12283,-4.966102 14.38509,-7.682687 9.56769,-4.939233 9.56769,-4.939233 9.90729,-7.613595 0.65037,-5.122049 4.04548,-8.060854 9.22813,-7.98779 5.97964,0.08424 9.74097,3.945719 9.81706,10.078164 0.0313,2.648012 -2.05027,6.547888 -4.29398,8.038959 -2.49757,1.659759 -7.47474,1.733689 -9.49936,0.140976 -1.61067,-1.266937 -3.52325,-1.403945 -5.05974,-0.362465 -0.59314,0.402042 -5.99895,3.261448 -12.01295,6.354208 -6.01399,3.0928 -11.23503,5.86348 -11.60233,6.15713 -0.49603,0.39654 -0.10721,1.03709 1.51178,2.49047 2.88067,2.58605 8.87381,11.65034 10.98817,16.61902 2.22522,5.22922 4.11277,12.92963 5.06917,20.68062 1.5734,12.7505 -1.02581,29.13216 -7.24336,45.6516 -4.79314,12.73491 -7.77421,22.02977 -9.81724,24.87602 -6.47653,9.02258 -37.3033,19.98702 -59.980515,12.37001 z m 18.853573,-94.30403 c -2.938352,-1.57114 -4.092438,-4.15141 -3.876484,-8.66677 0.08981,-1.88031 3.141879,-4.98985 5.293587,-5.3934Line truncated
|
||||
|
After Width: | Height: | Size: 5.1 KiB |
@@ -0,0 +1,13 @@
|
||||
<footer class="ft">
|
||||
<div class="wrap">
|
||||
<div class="roller">Peacock<span class="b">Project</span></div>
|
||||
<div class="frow">
|
||||
<span>Open source · early days</span>
|
||||
<span class="sp"></span>
|
||||
<a href="https://github.com/orgs/PeacockProject/" target="_blank" rel="noopener">GitHub</a>
|
||||
<a href="https://wiki.peacockos.org">Wiki</a>
|
||||
<a href="https://forum.peacockos.org">Community</a>
|
||||
<a href="#top">Top ↑</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
import Mark from './Mark.astro';
|
||||
|
||||
// The homepage's wordmark points at "#", every other page points home.
|
||||
const { homeHref = '/' } = Astro.props;
|
||||
---
|
||||
|
||||
<header class="hdr">
|
||||
<div class="mk" aria-hidden="true"><Mark name="head" /></div>
|
||||
<a class="word" href={homeHref}>Peacock<span class="os">// OS</span></a>
|
||||
<nav>
|
||||
<a href="/project">The Project</a>
|
||||
<a href="https://wiki.peacockos.org">Wiki</a>
|
||||
<a href="https://forum.peacockos.org">Community</a>
|
||||
<a class="cta" href="https://github.com/orgs/PeacockProject/" target="_blank" rel="noopener">GitHub</a>
|
||||
</nav>
|
||||
</header>
|
||||
@@ -0,0 +1,10 @@
|
||||
---
|
||||
// Iridescent gradient shared by the header mark, hero mark and text accents.
|
||||
// Kept as a hidden inline SVG so CSS can reference `url(#irid)`.
|
||||
---
|
||||
|
||||
<svg width="0" height="0" style="position:absolute" aria-hidden="true"><defs>
|
||||
<linearGradient id="irid" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0%" stop-color="#2BD4C4"/><stop offset="48%" stop-color="#3BA0F0"/><stop offset="100%" stop-color="#8E7BF0"/>
|
||||
</linearGradient>
|
||||
</defs></svg>
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
// Inlined peacock mark. The original site fetched these SVGs at runtime and
|
||||
// swapped `fill:#...` for `fill:currentColor`; Astro can inline them at build
|
||||
// time instead, which produces the same DOM without a network round-trip.
|
||||
import headMark from '../assets/peacock-head.svg?raw';
|
||||
import fullMark from '../assets/peacock-full.svg?raw';
|
||||
|
||||
const { name = 'head' } = Astro.props;
|
||||
const source = name === 'full' ? fullMark : headMark;
|
||||
const markup = source
|
||||
.replace(/<\?xml[^>]*\?>/g, '')
|
||||
.replace(/fill:#[0-9a-fA-F]{3,8}/g, 'fill:currentColor')
|
||||
.trim();
|
||||
---
|
||||
|
||||
<Fragment set:html={markup} />
|
||||
@@ -0,0 +1,42 @@
|
||||
---
|
||||
import '../styles/global.css';
|
||||
import IridescentDefs from '../components/IridescentDefs.astro';
|
||||
import Header from '../components/Header.astro';
|
||||
import Footer from '../components/Footer.astro';
|
||||
|
||||
const {
|
||||
title,
|
||||
description = 'Peacock is an open mobile meta-distro. Turn a locked-down phone into a computer that answers to you, build the system yourself, and swap it out whenever you want. Early days, open to help.',
|
||||
homeHref = '/',
|
||||
} = Astro.props;
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{title}</title>
|
||||
<meta name="description" content={description} />
|
||||
<link rel="icon" href="/logo-mark-dark.png" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Hanken+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<IridescentDefs />
|
||||
|
||||
<div class="ambient" aria-hidden="true"></div>
|
||||
<div class="grain" aria-hidden="true"></div>
|
||||
|
||||
<div class="page">
|
||||
<Header homeHref={homeHref} />
|
||||
<slot />
|
||||
<Footer />
|
||||
</div>
|
||||
|
||||
<script>
|
||||
import '../scripts/site.js';
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,21 @@
|
||||
---
|
||||
import Base from '../layouts/Base.astro';
|
||||
---
|
||||
|
||||
<Base title="Page not found · Peacock // OS">
|
||||
<section class="module" style="padding-top:clamp(110px,16vh,170px);">
|
||||
<div class="wrap">
|
||||
<div class="reveal in">
|
||||
<span class="eyebrow"><span class="pip"></span>404</span>
|
||||
<h2>This page is <span class="grad">out of reach.</span></h2>
|
||||
</div>
|
||||
<div class="stmt reveal in">
|
||||
<p>The link you followed doesn't exist, or it moved. Head back to the start, or look for it on the wiki.</p>
|
||||
</div>
|
||||
<div class="actions reveal in">
|
||||
<a class="btn grad" href="/">Back to the start <span class="ar">→</span></a>
|
||||
<a class="btn ghost" href="https://wiki.peacockos.org">Browse the wiki</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</Base>
|
||||
@@ -0,0 +1,131 @@
|
||||
---
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import Base from '../layouts/Base.astro';
|
||||
|
||||
// The device list is generated from peacock-ports' status.toml by
|
||||
// scripts/gen-devices.py, which writes public/devices/status.json. Rendering it
|
||||
// here (instead of generating a whole HTML page) keeps the data pipeline and
|
||||
// the page markup independent.
|
||||
const root = process.cwd();
|
||||
const payload = JSON.parse(fs.readFileSync(path.join(root, 'public/devices/status.json'), 'utf8'));
|
||||
|
||||
const WIKI = 'https://wiki.peacockos.org';
|
||||
const IMG_EXTS = ['webp', 'png', 'jpg', 'jpeg', 'avif'];
|
||||
|
||||
const codename = (d) => d.device?.codename ?? d.port;
|
||||
const nameOf = (d) => d.device?.name ?? codename(d);
|
||||
|
||||
function platform(d) {
|
||||
const soc = (d.hardware?.chipset ?? '').toLowerCase();
|
||||
if (soc.includes('mediatek') || soc.startsWith('mt')) return 'MediaTek';
|
||||
if (soc.includes('qualcomm') || soc.includes('snapdragon') || soc.includes('msm') || soc.includes('apq')) return 'Qualcomm';
|
||||
if (soc.includes('qemu') || d.device?.type === 'vm') return 'Virtual';
|
||||
return d.hardware?.architecture ?? '—';
|
||||
}
|
||||
|
||||
function imageFor(code) {
|
||||
for (const ext of IMG_EXTS) {
|
||||
if (fs.existsSync(path.join(root, 'public/devices/img', `${code}.${ext}`))) {
|
||||
return `/devices/img/${code}.${ext}`;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// Group by manufacturer, alphabetically, with QEMU last (matches the generator).
|
||||
const byBrand = new Map();
|
||||
for (const d of payload.devices) {
|
||||
const brand = d.device?.manufacturer ?? 'Other';
|
||||
if (!byBrand.has(brand)) byBrand.set(brand, []);
|
||||
byBrand.get(brand).push(d);
|
||||
}
|
||||
const byName = (a, b) => (nameOf(a) < nameOf(b) ? -1 : nameOf(a) > nameOf(b) ? 1 : 0);
|
||||
const groups = [...byBrand.keys()]
|
||||
.sort((a, b) => {
|
||||
const qa = a.toLowerCase() === 'qemu' ? 1 : 0;
|
||||
const qb = b.toLowerCase() === 'qemu' ? 1 : 0;
|
||||
if (qa !== qb) return qa - qb;
|
||||
return a.toLowerCase() < b.toLowerCase() ? -1 : a.toLowerCase() > b.toLowerCase() ? 1 : 0;
|
||||
})
|
||||
.map((brand) => ({
|
||||
brand,
|
||||
devices: [...byBrand.get(brand)].sort(byName).map((d) => {
|
||||
const code = codename(d);
|
||||
const plat = platform(d);
|
||||
return {
|
||||
code,
|
||||
name: nameOf(d),
|
||||
plat,
|
||||
maturity: d.software?.maturity ?? '',
|
||||
image: imageFor(code),
|
||||
search: `${nameOf(d)} ${code} ${brand} ${plat}`.toLowerCase(),
|
||||
href: `${WIKI}/devices/${code}`,
|
||||
};
|
||||
}),
|
||||
}));
|
||||
---
|
||||
|
||||
<Base title="Supported devices · Peacock // OS">
|
||||
<section class="module" style="padding-top:clamp(110px,16vh,170px);">
|
||||
<div class="wrap dv-wrap">
|
||||
<div class="reveal">
|
||||
<span class="eyebrow"><span class="pip"></span>Supported devices</span>
|
||||
<h2>What runs <span class="grad">PeacockOS.</span></h2>
|
||||
</div>
|
||||
<div class="stmt reveal"><p>Phones we have PeacockOS on, grouped by maker. Verified so far on each phone: the bootloader, PRP recovery (SSH + touch), and boot through to the XFCE desktop with working touch. Everything else is untested, not broken.
|
||||
Tap a device for the full compatibility breakdown on the <a href="https://wiki.peacockos.org/devices" style="border-bottom:1px solid var(--line2)">wiki</a>.</p></div>
|
||||
|
||||
<style is:global>
|
||||
.dv-wrap{max-width:1080px;margin:0 auto;padding:0 24px}
|
||||
.dv-brand h3{font-family:var(--serif,'Instrument Serif',serif);font-size:26px;color:var(--ink-dim);border-bottom:1px solid rgba(255,255,255,.08);padding-bottom:8px;margin:44px 0 0}
|
||||
.dev-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px;margin-top:22px}
|
||||
.dev-card{display:block;border:1px solid rgba(255,255,255,.08);border-radius:14px;overflow:hidden;background:rgba(255,255,255,.02);text-decoration:none;color:inherit;transition:border-color .2s,transform .2s}
|
||||
.dev-card:hover{border-color:rgba(43,212,196,.5);transform:translateY(-2px)}
|
||||
.dc-img{aspect-ratio:4/3;background-size:cover;background-position:center;background-color:#0b1219}
|
||||
.dc-img.ph{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(43,212,196,.12),rgba(142,123,240,.14))}
|
||||
.dc-img.ph span{font-family:var(--serif,'Instrument Serif',serif);font-size:52px;color:rgba(244,241,232,.45)}
|
||||
.dc-body{padding:14px 16px}
|
||||
.dc-body h4{margin:0 0 8px;font-size:16px}
|
||||
.dc-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-family:var(--mono);font-size:11px;color:var(--ink-dim)}
|
||||
.badge{text-transform:uppercase;letter-spacing:.07em;padding:.15em .6em;border-radius:999px;border:1px solid rgba(255,255,255,.18);color:var(--ink-dim)}
|
||||
.badge.stable{color:#2BD4C4;border-color:rgba(43,212,196,.5)}
|
||||
.badge.testing{color:#E8B84B;border-color:rgba(232,184,75,.5)}
|
||||
.badge.experimental{color:#E8685B;border-color:rgba(232,104,91,.5)}
|
||||
.dev-search{width:100%;max-width:440px;margin:26px 0 4px;padding:12px 16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12);border-radius:10px;color:var(--ink,#f4f1e8);font-family:var(--mono);font-size:14px;outline:none}
|
||||
.dev-search:focus{border-color:rgba(43,212,196,.6)}
|
||||
.dev-search::placeholder{color:var(--ink-dim)}
|
||||
.dv-noresult{color:var(--ink-dim);font-family:var(--mono);font-size:14px;margin:30px 0;display:none}
|
||||
</style>
|
||||
|
||||
<input id="dev-search" class="dev-search reveal" type="search" placeholder="Search by device or brand…" autocomplete="off" aria-label="Search devices">
|
||||
{groups.map((group) => (
|
||||
<div class="dv-brand reveal">
|
||||
<h3>{group.brand}</h3>
|
||||
<div class="dev-grid">
|
||||
{group.devices.map((d) => (
|
||||
<a class="dev-card" data-s={d.search} href={d.href}>
|
||||
{d.image
|
||||
? <div class="dc-img" style={`background-image:url(${d.image})`}></div>
|
||||
: <div class="dc-img ph"><span>{d.name.slice(0, 1)}</span></div>}
|
||||
<div class="dc-body">
|
||||
<h4>{d.name}</h4>
|
||||
<div class="dc-meta"><code>{d.code}</code><span>{d.plat}</span><span class={`badge ${d.maturity}`}>{d.maturity}</span></div>
|
||||
</div>
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
<p class="dv-noresult" id="dv-noresult">No device matches that.</p>
|
||||
<script is:inline>
|
||||
(function(){var i=document.getElementById('dev-search'),nr=document.getElementById('dv-noresult');if(!i)return;
|
||||
i.addEventListener('input',function(){var q=i.value.toLowerCase().trim(),hits=0;
|
||||
document.querySelectorAll('.dv-brand').forEach(function(s){var a=false;
|
||||
s.querySelectorAll('.dev-card').forEach(function(c){var m=!q||c.dataset.s.indexOf(q)>-1;c.style.display=m?'':'none';if(m){a=true;hits++;}});
|
||||
s.style.display=a?'':'none';});
|
||||
if(nr)nr.style.display=hits?'none':'block';});})();
|
||||
</script>
|
||||
</div>
|
||||
</section>
|
||||
</Base>
|
||||
@@ -0,0 +1,72 @@
|
||||
---
|
||||
import Base from '../layouts/Base.astro';
|
||||
import Mark from '../components/Mark.astro';
|
||||
---
|
||||
|
||||
<Base title="Peacock // OS: your device, unshackled" homeHref="#">
|
||||
<section class="hero">
|
||||
<div class="hero-peacock shimmer" aria-hidden="true"><Mark name="full" /></div>
|
||||
<div class="hero-wrap">
|
||||
<span class="eyebrow"><span class="pip"></span>Open mobile meta-distro · early days</span>
|
||||
<h1 class="htitle">Your device,<br><span class="grad">unshackled.</span></h1>
|
||||
<p class="lead">Peacock turns a locked-down phone into a computer that answers to you, not the company that sold it. You build the system yourself, and it stays yours.</p>
|
||||
<p class="status">It's early days. Experimental, only a handful of devices, and nothing stable to download yet. This is where it's headed, and we could use the help.</p>
|
||||
<div class="actions">
|
||||
<a class="btn grad" href="https://wiki.peacockos.org">Explore the project <span class="ar">→</span></a>
|
||||
<a class="btn ghost" href="https://github.com/orgs/PeacockProject/" target="_blank" rel="noopener">Lend a hand</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cue"><span>Scroll</span><span class="bar"></span></div>
|
||||
</section>
|
||||
|
||||
<section class="module">
|
||||
<div class="wrap stmt reveal">
|
||||
<span class="eyebrow">Own your device</span>
|
||||
<h2>Your phone, <span class="grad">handed back.</span></h2>
|
||||
<p>Building the system, getting past the lock, recovering on its own when something breaks. The phone you paid for should listen to you, not the company that made it. That's the whole point.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="module path-module">
|
||||
<div class="wrap">
|
||||
<div class="path-head reveal">
|
||||
<span class="eyebrow">The path</span>
|
||||
<h2>From factory-locked to <span class="grad">truly yours.</span></h2>
|
||||
<p class="path-sub">Four steps, and they run into each other. Not four separate products, just one path from a stock phone to one that's actually yours.</p>
|
||||
</div>
|
||||
<div class="spine-wrap">
|
||||
<div class="spine"><div class="spine-fill" id="spineFill"></div></div>
|
||||
<div class="stages">
|
||||
<article class="stage reveal"><span class="node"></span><span class="k">01 · Build</span><h3>Make the OS your phone should've shipped with.</h3><p>Pick your device and choose how hands-on you want to be, from point-and-click to setting every flag yourself. What comes out is a complete system built for that one phone.</p></article>
|
||||
<article class="stage reveal"><span class="node"></span><span class="k">02 · Unlock</span><h3>Slip past the factory lock.</h3><p>Every phone controls what's allowed to boot. There are two ways in, one for MediaTek and one for Qualcomm, right where the stock bootloader says no.</p></article>
|
||||
<article class="stage reveal"><span class="node"></span><span class="k">03 · Live</span><h3>A real computer in your pocket, and it stays yours.</h3><p>Run actual Linux. Want a different distro tomorrow? Swap the whole thing out and your apps, files and settings stay put. They sit on a base layer the OS just rides on top of.</p></article>
|
||||
<article class="stage reveal"><span class="node"></span><span class="k">04 · Recover</span><h3>If it ever breaks, it catches itself.</h3><p>If something won't boot, a recovery layer comes up on its own so you can rescue, repair or reinstall right from the phone. You don't end up holding a brick.</p></article>
|
||||
</div>
|
||||
</div>
|
||||
<p class="path-coda"><b>And it's not only phones.</b> The same system runs on a laptop or desktop too. Open source, no accounts, nothing phoning home.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="module">
|
||||
<div class="wrap">
|
||||
<div class="reveal">
|
||||
<span class="eyebrow">Where it's heading</span>
|
||||
<h2>Two front doors, <span class="grad">now open.</span></h2>
|
||||
</div>
|
||||
<div class="doors reveal">
|
||||
<a class="door" href="https://wiki.peacockos.org">
|
||||
<span class="k">Knowledgebase</span>
|
||||
<h3>The Wiki</h3>
|
||||
<p>Guides, device notes and how-tos, written and kept current by the people actually running this. Anyone can edit it.</p>
|
||||
<span class="go">Browse the wiki <span class="ar">→</span></span>
|
||||
</a>
|
||||
<a class="door" href="https://forum.peacockos.org">
|
||||
<span class="k">Forum</span>
|
||||
<h3>The Community</h3>
|
||||
<p>Where the work happens in the open. Questions, device threads, build logs, and the back-and-forth a young project runs on. Come say hi.</p>
|
||||
<span class="go">Join the conversation <span class="ar">→</span></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</Base>
|
||||
@@ -0,0 +1,68 @@
|
||||
---
|
||||
import Base from '../layouts/Base.astro';
|
||||
---
|
||||
|
||||
<Base title="The Project · Peacock // OS">
|
||||
<section class="module" style="padding-top:clamp(110px,16vh,170px);">
|
||||
<div class="wrap">
|
||||
<div class="reveal">
|
||||
<span class="eyebrow"><span class="pip"></span>The Project</span>
|
||||
<h2>What we're <span class="grad">building.</span></h2>
|
||||
</div>
|
||||
<div class="stmt reveal">
|
||||
<p>Peacock isn't one program. It's a set of pieces that fit together to take a phone from factory-locked to fully yours. Here's what each one does, and where to find it.</p>
|
||||
</div>
|
||||
<div class="doors reveal" style="margin-top:48px;">
|
||||
<a class="door" href="https://github.com/PeacockProject/Peacock" target="_blank" rel="noopener">
|
||||
<span class="k">Core · C</span>
|
||||
<h3>Peacock</h3>
|
||||
<p>The core. It builds a complete, device-specific OS image and is the base system that runs on the phone, with a Linux distro of your choice layered on top. Includes the builder, command line and GUI, that turns a device pick into something you can flash.</p>
|
||||
<span class="go">View on GitHub <span class="ar">→</span></span>
|
||||
</a>
|
||||
<a class="door" href="https://github.com/PeacockProject/feather" target="_blank" rel="noopener">
|
||||
<span class="k">Packages · C</span>
|
||||
<h3>feather (ftr)</h3>
|
||||
<p>Peacock's package manager. Installs and updates the platform, your apps and compatibility layers from signed binaries, and keeps them separate from the OS underneath so swapping the distro doesn't touch your stuff.</p>
|
||||
<span class="go">View on GitHub <span class="ar">→</span></span>
|
||||
</a>
|
||||
<a class="door" href="https://github.com/PeacockProject/peacock-ports" target="_blank" rel="noopener">
|
||||
<span class="k">Recipes · C</span>
|
||||
<h3>peacock-ports</h3>
|
||||
<p>The recipe tree. Every package and device kernel is defined here as a build script, so the builder knows how to compile and assemble everything that ends up in an image.</p>
|
||||
<span class="go">View on GitHub <span class="ar">→</span></span>
|
||||
</a>
|
||||
<a class="door" href="https://github.com/PeacockProject/peacock-mkinitfs" target="_blank" rel="noopener">
|
||||
<span class="k">Early boot · Shell</span>
|
||||
<h3>peacock-mkinitfs</h3>
|
||||
<p>Builds the initramfs, the small environment that comes up first at boot, mounts the system and hands off to it. Produces the archive and boot scripts that the Peacock CLI flashes.</p>
|
||||
<span class="go">View on GitHub <span class="ar">→</span></span>
|
||||
</a>
|
||||
<a class="door" href="https://github.com/PeacockProject/MinKernel" target="_blank" rel="noopener">
|
||||
<span class="k">Chainloader · MediaTek</span>
|
||||
<h3>MinKernel</h3>
|
||||
<p>A tiny chainloader for MediaTek phones, heavily inspired by lk2nd. It runs right after the bootloader and hands control to Peacock or the recovery system.</p>
|
||||
<span class="go">View on GitHub <span class="ar">→</span></span>
|
||||
</a>
|
||||
<a class="door" href="https://github.com/PeacockProject/lk2nd_peacock" target="_blank" rel="noopener">
|
||||
<span class="k">Bootloader · Qualcomm</span>
|
||||
<h3>lk2nd_peacock</h3>
|
||||
<p>Our fork of lk2nd, the established secondary bootloader for Qualcomm phones. It loads Peacock or recovery through extlinux.</p>
|
||||
<span class="go">View on GitHub <span class="ar">→</span></span>
|
||||
</a>
|
||||
<a class="door" href="https://github.com/PeacockProject/PRP" target="_blank" rel="noopener">
|
||||
<span class="k">Recovery · Shell</span>
|
||||
<h3>PRP</h3>
|
||||
<p>The Peacock Recovery Project. A self-contained rescue system that boots on its own when the main OS won't start, so you can repair, reinstall or roll back right from the device.</p>
|
||||
<span class="go">View on GitHub <span class="ar">→</span></span>
|
||||
</a>
|
||||
<a class="door" href="https://github.com/orgs/PeacockProject/repositories" target="_blank" rel="noopener">
|
||||
<span class="k">Kernels · per device</span>
|
||||
<h3>Device support</h3>
|
||||
<p>Every supported phone gets its own kernel, forked and patched so Peacock can boot on it. The lead device today is the Oppo A16, and more land as the project grows.</p>
|
||||
<span class="go">Browse the repos <span class="ar">→</span></span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="path-coda" style="margin-top:42px;"><b>That's the public set.</b> It all lives in the open. Browse the full org on <a href="https://github.com/orgs/PeacockProject/" target="_blank" rel="noopener" style="border-bottom:1px solid var(--line2)">GitHub</a>.</p>
|
||||
</div>
|
||||
</section>
|
||||
</Base>
|
||||
@@ -0,0 +1,39 @@
|
||||
/* Shared page behaviour, ported from the original inline script.
|
||||
* The peacock marks are inlined at build time (see Mark.astro), so only the
|
||||
* scroll reveals and the path spine remain. */
|
||||
(function () {
|
||||
var reduce = matchMedia("(prefers-reduced-motion: reduce)").matches;
|
||||
|
||||
// scroll reveals
|
||||
var els = [].slice.call(document.querySelectorAll(".reveal"));
|
||||
if (reduce) {
|
||||
els.forEach(function (e) { e.classList.add("in"); });
|
||||
} else if ("IntersectionObserver" in window) {
|
||||
var io = new IntersectionObserver(function (en) {
|
||||
en.forEach(function (x) { if (x.isIntersecting) x.target.classList.add("in"); });
|
||||
}, { threshold: .15 });
|
||||
els.forEach(function (e) { io.observe(e); });
|
||||
}
|
||||
|
||||
// the spine "draws" as you scroll through the path
|
||||
var fill = document.getElementById("spineFill"),
|
||||
sw = document.querySelector(".spine-wrap"),
|
||||
tick = false;
|
||||
function spine() {
|
||||
tick = false;
|
||||
if (!fill || !sw) return;
|
||||
var r = sw.getBoundingClientRect();
|
||||
var p = (innerHeight * 0.5 - r.top) / r.height;
|
||||
fill.style.height = (Math.max(0, Math.min(1, p)) * 100) + "%";
|
||||
}
|
||||
if (fill && sw) {
|
||||
if (reduce) {
|
||||
fill.style.height = "100%";
|
||||
} else {
|
||||
var onsc = function () { if (!tick) { tick = true; requestAnimationFrame(spine); } };
|
||||
addEventListener("scroll", onsc, { passive: true });
|
||||
addEventListener("resize", onsc);
|
||||
spine();
|
||||
}
|
||||
}
|
||||
})();
|
||||
@@ -0,0 +1,147 @@
|
||||
:root{
|
||||
--bg:#070b10; /* deep jewel near-black */
|
||||
--bg2:#0b1219;
|
||||
--ink:#F4F1E8; /* warm cream */
|
||||
--ink2:#C9C7CE;
|
||||
--soft:#8C93A0;
|
||||
--faint:#5C636F;
|
||||
--line:rgba(255,255,255,.10);
|
||||
--line2:rgba(255,255,255,.18);
|
||||
--teal:#2BD4C4; --blue:#3BA0F0; --violet:#8E7BF0;
|
||||
--irid:linear-gradient(120deg,#2BD4C4,#3BA0F0 48%,#8E7BF0);
|
||||
--serif:'Instrument Serif',serif; --sans:'Hanken Grotesk',sans-serif; --mono:'Space Mono',monospace;
|
||||
}
|
||||
*{box-sizing:border-box}
|
||||
html,body{margin:0;background:var(--bg);color:var(--ink);}
|
||||
body{font-family:var(--sans);-webkit-font-smoothing:antialiased;line-height:1.5;overflow-x:hidden;}
|
||||
a{color:inherit;text-decoration:none;}
|
||||
svg{display:block;}
|
||||
|
||||
/* lush jewel-tone ambient + faint feather-eye field */
|
||||
.ambient{position:fixed;inset:0;z-index:0;pointer-events:none;
|
||||
background:
|
||||
radial-gradient(70vw 70vw at 86% -6%, rgba(142,123,240,.20), transparent 58%),
|
||||
radial-gradient(60vw 60vw at 2% 22%, rgba(43,212,196,.16), transparent 58%),
|
||||
radial-gradient(80vw 60vw at 60% 110%, rgba(59,160,240,.14), transparent 60%),
|
||||
var(--bg);}
|
||||
.grain{position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.5;mix-blend-mode:overlay;
|
||||
background-image:radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);background-size:3px 3px;}
|
||||
.page{position:relative;z-index:2;}
|
||||
|
||||
/* ---- top bar (new IA: Wiki / Community / GitHub) ---- */
|
||||
.hdr{position:fixed;top:0;left:0;right:0;z-index:40;height:64px;display:flex;align-items:center;gap:14px;
|
||||
padding:0 clamp(18px,4vw,52px);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
|
||||
background:linear-gradient(var(--bg),rgba(7,11,16,.4));border-bottom:1px solid var(--line);}
|
||||
.hdr .mk{width:30px;height:34px;flex:0 0 30px;}
|
||||
.hdr .mk svg{width:100%;height:100%;overflow:visible;}
|
||||
.hdr .mk svg path{fill:url(#irid)!important;}
|
||||
.hdr .word{font-family:var(--serif);font-size:23px;line-height:1;}
|
||||
.hdr .word .os{font-family:var(--mono);font-size:12px;color:var(--faint);margin-left:7px;}
|
||||
.hdr nav{margin-left:auto;display:flex;align-items:center;gap:4px;}
|
||||
.hdr nav a{font-family:var(--mono);font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--soft);
|
||||
padding:10px 13px;border-radius:9px;transition:color .15s,background .15s;}
|
||||
.hdr nav a:hover{color:var(--ink);background:rgba(255,255,255,.06);}
|
||||
.hdr nav a.soon{position:relative;}
|
||||
.hdr nav a.soon::after{content:"soon";position:absolute;top:-2px;right:-2px;font-size:7px;letter-spacing:.08em;
|
||||
color:#0a0a0a;background:var(--teal);border-radius:4px;padding:1px 3px;}
|
||||
.hdr nav .cta{color:var(--ink);border:1px solid var(--line2);}
|
||||
|
||||
/* ---- hero ---- */
|
||||
.hero{position:relative;min-height:100svh;display:flex;align-items:center;padding:0 clamp(18px,4vw,52px);overflow:hidden;}
|
||||
/* fade the peacock into the canvas at the bottom so it dissolves, not slices */
|
||||
.hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:34%;z-index:2;pointer-events:none;
|
||||
background:linear-gradient(to bottom, transparent, var(--bg) 92%);}
|
||||
.hero-peacock{position:absolute;right:clamp(-180px,-7vw,-60px);top:clamp(78px,11vh,150px);
|
||||
width:min(1020px,72vw);aspect-ratio:660/748;z-index:1;pointer-events:none;
|
||||
filter:drop-shadow(0 0 60px rgba(59,160,240,.35)) drop-shadow(0 30px 80px rgba(142,123,240,.25));}
|
||||
.hero-peacock svg{width:100%;height:100%;overflow:visible;}
|
||||
.hero-peacock svg path{fill:url(#irid)!important;}
|
||||
.hero-peacock.shimmer{animation:floaty 9s ease-in-out infinite;}
|
||||
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
|
||||
|
||||
.hero-wrap{position:relative;z-index:3;max-width:1240px;margin:0 auto;width:100%;}
|
||||
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-family:var(--mono);font-size:11px;letter-spacing:.22em;
|
||||
text-transform:uppercase;color:var(--ink2);background:rgba(255,255,255,.05);border:1px solid var(--line);
|
||||
padding:7px 14px;border-radius:999px;}
|
||||
.eyebrow .pip{width:7px;height:7px;border-radius:50%;background:#E0A82E;box-shadow:0 0 0 3px rgba(224,168,46,.2);
|
||||
animation:pip 2.4s ease-in-out infinite;}
|
||||
@keyframes pip{0%,100%{box-shadow:0 0 0 3px rgba(224,168,46,.2)}50%{box-shadow:0 0 0 6px rgba(224,168,46,.08)}}
|
||||
.htitle{font-family:var(--serif);font-size:clamp(64px,13vw,184px);line-height:.82;letter-spacing:-.015em;margin:26px 0 0;}
|
||||
.htitle .grad{font-style:italic;background:var(--irid);background-size:220% auto;
|
||||
-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:shift 7s ease infinite;}
|
||||
@keyframes shift{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
|
||||
.lead{margin:30px 0 0;max-width:38ch;font-size:clamp(16px,1.5vw,19px);line-height:1.55;color:var(--ink2);}
|
||||
.status{margin:18px 0 0;max-width:44ch;font-family:var(--mono);font-size:12px;line-height:1.6;color:var(--soft);}
|
||||
.actions{margin-top:34px;display:flex;gap:14px;flex-wrap:wrap;}
|
||||
.btn{display:inline-flex;align-items:center;gap:11px;border-radius:12px;padding:14px 22px;font-weight:600;font-size:14.5px;
|
||||
cursor:pointer;border:1px solid transparent;transition:transform .14s,box-shadow .2s,background .2s;}
|
||||
.btn .ar{opacity:.75;transition:transform .2s}
|
||||
.btn:hover .ar{transform:translateX(3px)}
|
||||
.btn.grad{background:var(--irid);background-size:200% auto;color:#041018;box-shadow:0 14px 36px -14px rgba(59,160,240,.7);animation:shift 5s ease infinite;}
|
||||
.btn.grad:hover{transform:translateY(-2px);}
|
||||
.btn.ghost{background:rgba(255,255,255,.04);border-color:var(--line2);color:var(--ink);}
|
||||
.btn.ghost:hover{background:rgba(255,255,255,.09);}
|
||||
|
||||
.cue{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);z-index:3;font-family:var(--mono);
|
||||
font-size:10px;letter-spacing:.24em;text-transform:uppercase;color:var(--faint);display:flex;flex-direction:column;align-items:center;gap:8px;}
|
||||
.cue .bar{width:1px;height:32px;background:linear-gradient(var(--line2),transparent);animation:cuep 2.2s ease-in-out infinite;}
|
||||
@keyframes cuep{0%,100%{transform:scaleY(.5);opacity:.4;transform-origin:top}50%{transform:scaleY(1);opacity:1;transform-origin:top}}
|
||||
|
||||
/* ---- sections ---- */
|
||||
.module{position:relative;padding:clamp(80px,14vh,160px) clamp(18px,4vw,52px);}
|
||||
.wrap{max-width:1100px;margin:0 auto;}
|
||||
.module h2{font-family:var(--serif);font-size:clamp(38px,6vw,76px);line-height:.98;letter-spacing:-.01em;margin:14px 0 0;}
|
||||
.module h2 .grad{font-style:italic;background:var(--irid);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;}
|
||||
.stmt p{margin:26px 0 0;max-width:54ch;font-size:clamp(16px,1.6vw,20px);line-height:1.6;color:var(--ink2);}
|
||||
|
||||
.doors{margin-top:50px;display:grid;grid-template-columns:1fr 1fr;gap:22px;}
|
||||
.door{position:relative;display:block;padding:34px 32px 30px;border-radius:18px;border:1px solid var(--line2);
|
||||
background:linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,255,255,.02));overflow:hidden;
|
||||
transition:transform .25s,border-color .25s,box-shadow .25s;}
|
||||
.door:hover{transform:translateY(-4px);border-color:rgba(59,160,240,.5);box-shadow:0 26px 64px -32px rgba(59,160,240,.55);}
|
||||
.door::before{content:"";position:absolute;inset:0;background:var(--irid);opacity:0;transition:opacity .25s;}
|
||||
.door:hover::before{opacity:.06;}
|
||||
.door>*{position:relative;}
|
||||
.door .k{font-family:var(--mono);font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--teal);}
|
||||
.door h3{font-family:var(--serif);font-size:clamp(28px,3.4vw,42px);margin:10px 0 10px;}
|
||||
.door p{font-size:15px;line-height:1.6;color:var(--ink2);margin:0 0 18px;max-width:42ch;}
|
||||
.door .go{font-family:var(--mono);font-size:12px;color:var(--ink);border:1px solid var(--line2);border-radius:999px;padding:7px 14px;display:inline-flex;gap:8px;}
|
||||
.door .soon-tag{position:absolute;top:24px;right:26px;font-family:var(--mono);font-size:9px;letter-spacing:.1em;
|
||||
text-transform:uppercase;color:#04101a;background:var(--teal);border-radius:5px;padding:3px 7px;}
|
||||
|
||||
.ft{border-top:1px solid var(--line);padding:clamp(56px,9vh,100px) clamp(18px,4vw,52px) 46px;}
|
||||
.ft .roller{font-family:var(--serif);font-size:clamp(46px,11vw,128px);line-height:.9;letter-spacing:-.01em;}
|
||||
.ft .roller .b{font-style:italic;background:var(--irid);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;}
|
||||
.ft .frow{margin-top:30px;display:flex;flex-wrap:wrap;align-items:center;gap:18px;font-family:var(--mono);font-size:11.5px;color:var(--soft);}
|
||||
.ft .frow .sp{flex:1;}
|
||||
.ft .frow a{color:var(--ink2);border-bottom:1px solid var(--line2);padding-bottom:1px;}
|
||||
.ft .frow a:hover{color:var(--teal);border-color:var(--teal);}
|
||||
|
||||
.reveal{opacity:0;transform:translateY(40px);transition:opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);}
|
||||
.reveal.in{opacity:1;transform:none;}
|
||||
|
||||
/* ---- the path: a feather-spine journey that draws on scroll ---- */
|
||||
.path-sub{margin:24px 0 0;max-width:52ch;font-size:16px;line-height:1.6;color:var(--ink2);}
|
||||
.spine-wrap{--spine-x:30px;--pad:84px;position:relative;margin-top:clamp(54px,9vh,100px);padding-left:var(--pad);}
|
||||
.spine{position:absolute;left:var(--spine-x);top:10px;bottom:10px;width:2px;background:var(--line2);border-radius:2px;overflow:hidden;}
|
||||
.spine-fill{position:absolute;left:0;top:0;width:100%;height:0;background:var(--irid);box-shadow:0 0 18px rgba(59,160,240,.65);}
|
||||
.stages{display:flex;flex-direction:column;gap:clamp(56px,11vh,120px);}
|
||||
.stage{position:relative;max-width:60ch;}
|
||||
.node{position:absolute;top:7px;left:calc(var(--spine-x) - var(--pad) - 11px);width:22px;height:22px;border-radius:50%;z-index:2;
|
||||
background:radial-gradient(circle at 50% 42%, #fff 0 9%, #2BD4C4 16% 40%, #3BA0F0 52% 70%, #8E7BF0 82%);
|
||||
box-shadow:0 0 0 5px rgba(59,160,240,.08), 0 0 14px rgba(59,160,240,.35);transition:box-shadow .4s,transform .4s;}
|
||||
.stage.in .node{box-shadow:0 0 0 7px rgba(59,160,240,.14), 0 0 28px rgba(59,160,240,.6);transform:scale(1.1);}
|
||||
.stage .k{font-family:var(--mono);font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--teal);}
|
||||
.stage h3{font-family:var(--serif);font-size:clamp(30px,4.6vw,56px);line-height:1.0;letter-spacing:-.01em;margin:10px 0 12px;}
|
||||
.stage p{font-size:clamp(15px,1.5vw,18px);line-height:1.6;color:var(--ink2);margin:0;}
|
||||
.path-coda{margin-top:clamp(54px,9vh,100px);padding-left:var(--pad,84px);font-family:var(--mono);font-size:12.5px;line-height:1.8;color:var(--soft);max-width:62ch;}
|
||||
.path-coda b{color:var(--ink2);font-weight:400;}
|
||||
|
||||
@media (max-width:760px){
|
||||
.hero-peacock{opacity:.28;right:-30vw;}
|
||||
.hdr nav a:not(.cta){display:none;}
|
||||
.doors{grid-template-columns:1fr;}
|
||||
.spine-wrap{--pad:56px;--spine-x:18px;}
|
||||
.path-coda{padding-left:56px;}
|
||||
}
|
||||
@media (prefers-reduced-motion:reduce){*{animation:none!important}}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": "astro/tsconfigs/strict",
|
||||
"include": [".astro/types.d.ts", "**/*"],
|
||||
"exclude": ["dist"]
|
||||
}
|
||||
Reference in new issue
Block a user