Polish navigation, footer, focus states, and related pages

This commit is contained in:
yigid authored and Yigid BALABAN committed 2026-11-01 08:05:39 +03:00
1 parent a051a7c314
commit dc153ba354
7 files changed
+63 -45

No files matched your search

+3 -2
View File
@@ -2,12 +2,13 @@
<div class="wrap"> <div class="wrap">
<div class="roller">Peacock<span class="b">Project</span></div> <div class="roller">Peacock<span class="b">Project</span></div>
<div class="frow"> <div class="frow">
<span>Open source · early days</span> <span>Open source, built in the open.</span>
<span class="sp"></span> <span class="sp"></span>
<a href="/project">The Project</a>
<a href="https://github.com/orgs/PeacockProject/" target="_blank" rel="noopener">GitHub</a> <a href="https://github.com/orgs/PeacockProject/" target="_blank" rel="noopener">GitHub</a>
<a href="https://wiki.peacockos.org">Wiki</a> <a href="https://wiki.peacockos.org">Wiki</a>
<a href="https://forum.peacockos.org">Community</a> <a href="https://forum.peacockos.org">Community</a>
<a href="#top">Top &#8593;</a> <a href="#top">Back to top &#8593;</a>
</div> </div>
</div> </div>
</footer> </footer>
+3 -1
View File
@@ -3,13 +3,15 @@ import Mark from './Mark.astro';
// The homepage's wordmark points at "#", every other page points home. // The homepage's wordmark points at "#", every other page points home.
const { homeHref = '/' } = Astro.props; const { homeHref = '/' } = Astro.props;
const path = Astro.url.pathname.replace(/\/+$/, '') || '/';
const here = (p) => path === p || path.startsWith(p + '/');
--- ---
<header class="hdr"> <header class="hdr">
<div class="mk" aria-hidden="true"><Mark name="head" /></div> <div class="mk" aria-hidden="true"><Mark name="head" /></div>
<a class="word" href={homeHref}>Peacock<span class="os">// OS</span></a> <a class="word" href={homeHref}>Peacock<span class="os">// OS</span></a>
<nav> <nav>
<a href="/project">The Project</a> <a class="nav-project" href="/project" aria-current={here('/project') ? 'page' : undefined}>The Project</a>
<a href="https://wiki.peacockos.org">Wiki</a> <a href="https://wiki.peacockos.org">Wiki</a>
<a href="https://forum.peacockos.org">Community</a> <a href="https://forum.peacockos.org">Community</a>
<a class="cta" href="https://github.com/orgs/PeacockProject/" target="_blank" rel="noopener">GitHub</a> <a class="cta" href="https://github.com/orgs/PeacockProject/" target="_blank" rel="noopener">GitHub</a>
+1 -1
View File
@@ -1,5 +1,5 @@
--- ---
// Iridescent gradient shared by the header mark, hero mark and text accents. // Iridescent gradient shared by the header and hero marks.
// Kept as a hidden inline SVG so CSS can reference `url(#irid)`. // Kept as a hidden inline SVG so CSS can reference `url(#irid)`.
--- ---
+8 -3
View File
@@ -6,7 +6,7 @@ import Footer from '../components/Footer.astro';
const { const {
title, 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.', description = 'Peacock is an open mobile system. Build Linux for the phone you own, choose your software, and keep control when you change your mind. Early days, open to help.',
homeHref = '/', homeHref = '/',
} = Astro.props; } = Astro.props;
--- ---
@@ -18,6 +18,7 @@ const {
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{title}</title> <title>{title}</title>
<meta name="description" content={description} /> <meta name="description" content={description} />
<meta name="theme-color" content="#070b10" />
<link rel="icon" href="/logo-mark-dark.png" /> <link rel="icon" href="/logo-mark-dark.png" />
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
@@ -29,9 +30,13 @@ const {
<div class="ambient" aria-hidden="true"></div> <div class="ambient" aria-hidden="true"></div>
<div class="grain" aria-hidden="true"></div> <div class="grain" aria-hidden="true"></div>
<div class="page"> <a class="skip" href="#main">Skip to content</a>
<div class="page" id="top">
<Header homeHref={homeHref} /> <Header homeHref={homeHref} />
<slot /> <main id="main">
<slot />
</main>
<Footer /> <Footer />
</div> </div>
+6 -6
View File
@@ -2,18 +2,18 @@
import Base from '../layouts/Base.astro'; import Base from '../layouts/Base.astro';
--- ---
<Base title="Page not found · Peacock // OS"> <Base title="Page not found · Peacock OS">
<section class="module" style="padding-top:clamp(110px,16vh,170px);"> <section class="module page-head">
<div class="wrap"> <div class="wrap">
<div class="reveal"> <div class="reveal in">
<h2>This page is out of reach.</h2> <h2>This page is out of reach.</h2>
</div> </div>
<div class="stmt reveal in"> <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> <p>The link doesn't exist, or it moved. Go back to the homepage, or search the wiki for what you were after.</p>
</div> </div>
<div class="actions reveal in"> <div class="actions reveal in">
<a class="btn primary" href="/">Back to the start <span class="ar">&#8594;</span></a> <a class="btn primary" href="/">Back to the homepage <span class="ar">&#8594;</span></a>
<a class="btn secondary" href="https://wiki.peacockos.org">Browse the wiki</a> <a class="btn secondary" href="https://wiki.peacockos.org">Search the wiki</a>
</div> </div>
</div> </div>
</section> </section>
+13 -13
View File
@@ -66,35 +66,35 @@ const groups = [...byBrand.keys()]
})); }));
--- ---
<Base title="Supported devices · Peacock // OS"> <Base title="Supported devices · Peacock OS">
<section class="module" style="padding-top:clamp(110px,16vh,170px);"> <section class="module page-head">
<div class="wrap dv-wrap"> <div class="wrap dv-wrap">
<div class="reveal"> <div class="reveal">
<h2>What runs PeacockOS.</h2> <h2>What runs PeacockOS.</h2>
</div> </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. <div class="stmt reveal"><p>Phones that run PeacockOS, grouped by maker. On each phone we've verified the bootloader, PRP recovery over SSH and 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> Open a device for the full compatibility notes on the <a class="txt-link" href="https://wiki.peacockos.org/devices">wiki</a>.</p></div>
<style is:global> <style is:global>
.dv-wrap{max-width:1080px;margin:0 auto;padding:0 24px} .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} .dv-brand h3{font-family:var(--serif,'Instrument Serif',serif);font-size:26px;color:var(--ink2);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-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{display:block;border:1px solid rgba(255,255,255,.08);border-radius:3px;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)} .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{aspect-ratio:4/3;background-size:cover;background-position:center;background-color:var(--bg2)}
.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{display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.03)}
.dc-img.ph span{font-family:var(--serif,'Instrument Serif',serif);font-size:52px;color:rgba(244,241,232,.45)} .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{padding:14px 16px}
.dc-body h4{margin:0 0 8px;font-size: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)} .dc-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-family:var(--mono);font-size:11px;color:var(--soft)}
.badge{text-transform:uppercase;letter-spacing:.07em;padding:.15em .6em;border-radius:2px;border:1px solid rgba(255,255,255,.18);color:var(--ink-dim)} .badge{font-size:11px;padding:.15em .6em;border-radius:2px;border:1px solid rgba(255,255,255,.18);color:var(--soft)}
.badge.stable{color:#2BD4C4;border-color:rgba(43,212,196,.5)} .badge.stable{color:#2BD4C4;border-color:rgba(43,212,196,.5)}
.badge.testing{color:#E8B84B;border-color:rgba(232,184,75,.5)} .badge.testing{color:#E8B84B;border-color:rgba(232,184,75,.5)}
.badge.experimental{color:#E8685B;border-color:rgba(232,104,91,.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{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:3px;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:focus{border-color:rgba(43,212,196,.6)}
.dev-search::placeholder{color:var(--ink-dim)} .dev-search::placeholder{color:var(--soft)}
.dv-noresult{color:var(--ink-dim);font-family:var(--mono);font-size:14px;margin:30px 0;display:none} .dv-noresult{color:var(--soft);font-family:var(--mono);font-size:14px;margin:30px 0;display:none}
</style> </style>
<input id="dev-search" class="dev-search reveal" type="search" placeholder="Search by device or brand…" autocomplete="off" aria-label="Search devices"> <input id="dev-search" class="dev-search reveal" type="search" placeholder="Search by device or brand…" autocomplete="off" aria-label="Search devices">
+29 -19
View File
@@ -16,35 +16,37 @@
body{font-family:var(--sans);-webkit-font-smoothing:antialiased;line-height:1.5;overflow-x:hidden;} body{font-family:var(--sans);-webkit-font-smoothing:antialiased;line-height:1.5;overflow-x:hidden;}
a{color:inherit;text-decoration:none;} a{color:inherit;text-decoration:none;}
svg{display:block;} svg{display:block;}
::selection{background:var(--teal);color:var(--bg);}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--teal);outline-offset:3px;}
.skip{position:fixed;left:16px;top:-60px;z-index:100;background:var(--ink);color:var(--bg);
padding:10px 16px;border-radius:3px;font-weight:600;transition:top .15s;}
.skip:focus{top:12px;}
/* lush jewel-tone ambient + faint feather-eye field */ /* lush jewel-tone ambient + faint feather-eye field */
.ambient{position:fixed;inset:0;z-index:0;pointer-events:none; .ambient{position:fixed;inset:0;z-index:0;pointer-events:none;
background: background:
radial-gradient(70vw 70vw at 86% -6%, rgba(142,123,240,.20), transparent 58%), radial-gradient(60vw 60vw at 88% -10%, rgba(142,123,240,.14), transparent 60%),
radial-gradient(60vw 60vw at 2% 22%, rgba(43,212,196,.16), transparent 58%), radial-gradient(50vw 50vw at 0% 30%, rgba(43,212,196,.10), transparent 60%),
radial-gradient(80vw 60vw at 60% 110%, rgba(59,160,240,.14), transparent 60%),
var(--bg);} var(--bg);}
.grain{position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.5;mix-blend-mode:overlay; .grain{position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.35;mix-blend-mode:overlay;
background-image:radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);background-size:3px 3px;} background-image:radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);background-size:3px 3px;}
.page{position:relative;z-index:2;} .page{position:relative;z-index:2;}
/* ---- top bar (new IA: Wiki / Community / GitHub) ---- */ /* ---- top bar ---- */
.hdr{position:fixed;top:0;left:0;right:0;z-index:40;height:64px;display:flex;align-items:center;gap:14px; .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); 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);} background:rgba(7,11,16,.82);border-bottom:1px solid var(--line);}
.hdr .mk{width:30px;height:34px;flex:0 0 30px;} .hdr .mk{width:30px;height:34px;flex:0 0 30px;}
.hdr .mk svg{width:100%;height:100%;overflow:visible;} .hdr .mk svg{width:100%;height:100%;overflow:visible;}
.hdr .mk svg path{fill:url(#irid)!important;} .hdr .mk svg path{fill:url(#irid)!important;}
.hdr .word{font-family:var(--serif);font-size:23px;line-height:1;} .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 .word .os{font-family:var(--mono);font-size:11px;color:var(--faint);margin-left:7px;}
.hdr nav{margin-left:auto;display:flex;align-items:center;gap:4px;} .hdr nav{margin-left:auto;display:flex;align-items:center;gap:2px;}
.hdr nav a{font-family:var(--mono);font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--soft); .hdr nav a{font-family:var(--sans);font-size:13.5px;font-weight:500;color:var(--soft);
padding:10px 13px;border-radius:9px;transition:color .15s,background .15s;} padding:9px 12px;border-radius:3px;transition:color .15s,background .15s;}
.hdr nav a:hover{color:var(--ink);background:rgba(255,255,255,.06);} .hdr nav a:hover{color:var(--ink);background:rgba(255,255,255,.06);}
.hdr nav a.soon{position:relative;} .hdr nav a[aria-current="page"]{color:var(--ink);}
.hdr nav a.soon::after{content:"soon";position:absolute;top:-2px;right:-2px;font-size:7px;letter-spacing:.08em; .hdr nav .cta{color:var(--bg);background:var(--ink);border:1px solid var(--ink);font-weight:600;padding:9px 14px;}
color:#0a0a0a;background:var(--teal);border-radius:4px;padding:1px 3px;}
.hdr nav .cta{color:var(--bg);background:var(--ink);border:1px solid var(--ink);font-weight:600;padding:8px 14px;}
.hdr nav .cta:hover{color:var(--bg);background:#fff;border-color:#fff;} .hdr nav .cta:hover{color:var(--bg);background:#fff;border-color:#fff;}
/* ---- hero ---- */ /* ---- hero ---- */
@@ -59,7 +61,7 @@
.hero-peacock svg path{fill:url(#irid)!important;} .hero-peacock svg path{fill:url(#irid)!important;}
.hero-wrap{position:relative;z-index:3;max-width:1240px;margin:0 auto;width:100%;} .hero-wrap{position:relative;z-index:3;max-width:1240px;margin:0 auto;width:100%;}
.htitle{font-family:var(--serif);font-size:clamp(64px,13vw,184px);line-height:.82;letter-spacing:-.015em;margin:0;} .htitle{font-family:var(--serif);font-size:clamp(54px,13vw,184px);line-height:.82;letter-spacing:-.015em;margin:0;}
.lead{margin:30px 0 0;max-width:38ch;font-size:clamp(16px,1.5vw,19px);line-height:1.55;color:var(--ink2);} .lead{margin:30px 0 0;max-width:38ch;font-size:clamp(16px,1.5vw,19px);line-height:1.55;color:var(--ink2);}
.status{margin:20px 0 0;max-width:46ch;font-size:14.5px;line-height:1.65;color:var(--soft);} .status{margin:20px 0 0;max-width:46ch;font-size:14.5px;line-height:1.65;color:var(--soft);}
.actions{margin-top:34px;display:flex;gap:12px;flex-wrap:wrap;} .actions{margin-top:34px;display:flex;gap:12px;flex-wrap:wrap;}
@@ -99,6 +101,8 @@
.coda b{color:var(--ink);font-weight:600;} .coda b{color:var(--ink);font-weight:600;}
.coda a{color:var(--ink2);border-bottom:1px solid var(--line2);padding-bottom:1px;} .coda a{color:var(--ink2);border-bottom:1px solid var(--line2);padding-bottom:1px;}
.coda a:hover{color:var(--teal);border-color:var(--teal);} .coda a:hover{color:var(--teal);border-color:var(--teal);}
.txt-link{color:var(--ink2);border-bottom:1px solid var(--line2);padding-bottom:1px;}
.txt-link:hover{color:var(--teal);border-color:var(--teal);}
.doors{margin-top:54px;display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line2);} .doors{margin-top:54px;display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line2);}
.door{position:relative;display:flex;flex-direction:column;padding:34px 44px 4px 0;min-height:250px;} .door{position:relative;display:flex;flex-direction:column;padding:34px 44px 4px 0;min-height:250px;}
@@ -114,12 +118,12 @@
.ft{border-top:1px solid var(--line);padding:clamp(56px,9vh,100px) clamp(18px,4vw,52px) 46px;} .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{font-family:var(--serif);font-size:clamp(46px,11vw,128px);line-height:.9;letter-spacing:-.01em;}
.ft .roller .b{font-style:italic;color:var(--ink2);} .ft .roller .b{font-style:italic;color:var(--ink2);}
.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{margin-top:30px;display:flex;flex-wrap:wrap;align-items:center;gap:18px;font-size:13px;color:var(--soft);}
.ft .frow .sp{flex:1;} .ft .frow .sp{flex:1;}
.ft .frow a{color:var(--ink2);border-bottom:1px solid var(--line2);padding-bottom:1px;} .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);} .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{opacity:0;transform:translateY(18px);transition:opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);}
.reveal.in{opacity:1;transform:none;} .reveal.in{opacity:1;transform:none;}
/* ---- the path: a feather-spine journey that draws on scroll ---- */ /* ---- the path: a feather-spine journey that draws on scroll ---- */
@@ -140,7 +144,7 @@
@media (max-width:760px){ @media (max-width:760px){
.hero-peacock{opacity:.28;right:-30vw;} .hero-peacock{opacity:.28;right:-30vw;}
.hdr nav a:not(.cta){display:none;} .hdr nav a:not(.cta):not(.nav-project){display:none;}
.doors{grid-template-columns:1fr;} .doors{grid-template-columns:1fr;}
.door{min-height:0;padding:32px 0 0;} .door{min-height:0;padding:32px 0 0;}
.door + .door{border-left:0;border-top:1px solid var(--line);margin-top:32px;padding-left:0;padding-top:32px;} .door + .door{border-left:0;border-top:1px solid var(--line);margin-top:32px;padding-left:0;padding-top:32px;}
@@ -148,4 +152,10 @@
.spine-wrap{--pad:56px;--spine-x:18px;} .spine-wrap{--pad:56px;--spine-x:18px;}
.path-coda{padding-left:56px;} .path-coda{padding-left:56px;}
} }
@media (prefers-reduced-motion:reduce){*{animation:none!important}} @media (max-width:380px){
.hdr nav .nav-project{display:none;}
}
@media (prefers-reduced-motion:reduce){
*{animation:none!important;transition:none!important}
.reveal{opacity:1;transform:none;}
}