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,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>
|
||||
Reference in new issue
Block a user