This commit is contained in:
@@ -0,0 +1,407 @@
|
||||
---
|
||||
import { getCollection } from 'astro:content';
|
||||
import RecentMaintenance from '../components/RecentMaintenance.astro';
|
||||
import StoryCard from '../components/StoryCard.astro';
|
||||
import BaseLayout from '../layouts/BaseLayout.astro';
|
||||
import { formatDate, guidesByReview, newestFirst } from '../lib/content';
|
||||
import { site } from '../site.config';
|
||||
|
||||
const stories = newestFirst(await getCollection('stories', ({ data }) => !data.draft));
|
||||
const briefings = newestFirst(await getCollection('briefings', ({ data }) => !data.draft));
|
||||
const guides = guidesByReview(await getCollection('guides', ({ data }) => !data.draft));
|
||||
const episodes = newestFirst(await getCollection('episodes', ({ data }) => !data.draft));
|
||||
|
||||
const featured = stories.find(({ data }) => data.featured) ?? stories[0];
|
||||
const latestBriefing = briefings[0];
|
||||
const latestEpisode = episodes[0];
|
||||
---
|
||||
|
||||
<BaseLayout>
|
||||
<section class="hero shell">
|
||||
<p class="eyebrow">{site.author.note}</p>
|
||||
<div class="hero-grid">
|
||||
<h1 class="display">{site.proposition}</h1>
|
||||
<div class="hero-note">
|
||||
<p>{site.description}</p>
|
||||
<p>
|
||||
We follow claims of verification, safety, privacy, and autonomy to the
|
||||
people who hold the keys—and to the people who live with the consequences.
|
||||
</p>
|
||||
<div class="hero-actions">
|
||||
{featured && <a class="button primary" href={`/stories/${featured.id}`}>Read the current story</a>}
|
||||
<a class="button" href="/podcast">Listen to the podcast</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="shell current">
|
||||
<div class="section-rule">
|
||||
<h2 class="section-title">Current issue</h2>
|
||||
<a href="/stories">All stories →</a>
|
||||
</div>
|
||||
<div class="current-grid">
|
||||
<div>
|
||||
{featured ? <StoryCard entry={featured} featured /> : <p class="empty-state">The first story is being prepared.</p>}
|
||||
</div>
|
||||
<aside class="briefing-card">
|
||||
<p class="eyebrow">This week in trust</p>
|
||||
{latestBriefing ? (
|
||||
<>
|
||||
<p class="issue">Issue {String(latestBriefing.data.issue).padStart(3, '0')}</p>
|
||||
<h3><a href={`/briefing/${latestBriefing.id}`}>{latestBriefing.data.title}</a></h3>
|
||||
<p>{latestBriefing.data.description}</p>
|
||||
<div class="briefing-foot">
|
||||
<time datetime={latestBriefing.data.published.toISOString()}>{formatDate(latestBriefing.data.published)}</time>
|
||||
<a href={`/briefing/${latestBriefing.id}`}>Read issue →</a>
|
||||
</div>
|
||||
</>
|
||||
) : (
|
||||
<p>The weekly briefing begins here: three failures, two new systems, one overreach, and one surprisingly good idea.</p>
|
||||
)}
|
||||
</aside>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="shell listening">
|
||||
<div class="section-rule">
|
||||
<h2 class="section-title">Listen</h2>
|
||||
<a href="/podcast">Podcast archive →</a>
|
||||
</div>
|
||||
<div class="listen-grid">
|
||||
<div class="sound-mark" aria-hidden="true">
|
||||
<span></span><span></span><span></span><span></span><span></span>
|
||||
</div>
|
||||
<div>
|
||||
{latestEpisode ? (
|
||||
<>
|
||||
<p class="eyebrow">Episode {latestEpisode.data.episode}</p>
|
||||
<h3><a href={`/podcast/${latestEpisode.id}`}>{latestEpisode.data.title}</a></h3>
|
||||
<p>{latestEpisode.data.description}</p>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<p class="eyebrow">Podcast</p>
|
||||
<h3>Who gets to act in our name?</h3>
|
||||
<p>Conversations about authority, recovery, delegation, and the human lives hidden inside technical systems. Episodes and full transcripts will live here.</p>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="shell guides">
|
||||
<div class="section-rule">
|
||||
<h2 class="section-title">Field guides</h2>
|
||||
<a href="/guides">All guides →</a>
|
||||
</div>
|
||||
{guides.length > 0 ? (
|
||||
<div class="guide-grid">
|
||||
{guides.slice(0, 3).map((guide, index) => (
|
||||
<article>
|
||||
<span class="guide-number">0{index + 1}</span>
|
||||
<h3><a href={`/guides/${guide.id}`}>{guide.data.title}</a></h3>
|
||||
<p>{guide.data.description}</p>
|
||||
<small>Reviewed {formatDate(guide.data.reviewed)}</small>
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
) : (
|
||||
<div class="guide-grid planned">
|
||||
{['Passkeys', 'Government wallets', 'Agent authority'].map((title, index) => (
|
||||
<article>
|
||||
<span class="guide-number">0{index + 1}</span>
|
||||
<h3>{title}</h3>
|
||||
<p>In preparation. Published only when the review date means something.</p>
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</section>
|
||||
|
||||
<section class="shell book-strip">
|
||||
<div class="book-object" aria-hidden="true"><span>THE<br />BOOK</span></div>
|
||||
<div>
|
||||
<p class="eyebrow">The book</p>
|
||||
<h2>A permanent home, not a checkout widget.</h2>
|
||||
<p>The book page is ready for its real title, cover, sample chapter, argument, and purchase route—without inventing details before they are supplied.</p>
|
||||
<a class="button" href="/book">Visit the book page</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="shell maintenance-wrap">
|
||||
<RecentMaintenance />
|
||||
</div>
|
||||
</BaseLayout>
|
||||
|
||||
<style>
|
||||
.hero {
|
||||
padding-top: clamp(4rem, 9vw, 8rem);
|
||||
padding-bottom: clamp(5rem, 10vw, 9rem);
|
||||
}
|
||||
|
||||
.hero-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.65fr);
|
||||
gap: clamp(2rem, 6vw, 6rem);
|
||||
align-items: end;
|
||||
}
|
||||
|
||||
.hero-note {
|
||||
padding-left: 1.5rem;
|
||||
border-left: 1px solid var(--ink);
|
||||
}
|
||||
|
||||
.hero-note p:first-child {
|
||||
font-family: 'Newsreader', Georgia, serif;
|
||||
font-size: 1.45rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.hero-note p:not(:first-child) {
|
||||
color: var(--muted);
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
|
||||
.hero-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.65rem;
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.current-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.7fr);
|
||||
}
|
||||
|
||||
.briefing-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 2rem;
|
||||
border-top: 1px solid var(--rule);
|
||||
border-left: 1px solid var(--rule);
|
||||
border-bottom: 1px solid var(--rule);
|
||||
background: var(--paper-raised);
|
||||
}
|
||||
|
||||
.briefing-card .issue {
|
||||
margin: 0;
|
||||
color: var(--amend);
|
||||
font-family: 'IBM Plex Mono', monospace;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
.briefing-card h3,
|
||||
.listen-grid h3,
|
||||
.guide-grid h3,
|
||||
.book-strip h2 {
|
||||
margin: 0.35rem 0;
|
||||
font-family: 'Newsreader', Georgia, serif;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.025em;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.briefing-card h3 {
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
|
||||
.briefing-card h3 a,
|
||||
.listen-grid h3 a,
|
||||
.guide-grid h3 a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.briefing-card > p:not(.eyebrow, .issue) {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.briefing-foot {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
margin-top: auto;
|
||||
padding-top: 2rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.listening,
|
||||
.guides,
|
||||
.book-strip,
|
||||
.maintenance-wrap {
|
||||
margin-top: clamp(5rem, 10vw, 9rem);
|
||||
}
|
||||
|
||||
.listen-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1.4fr;
|
||||
gap: clamp(2rem, 7vw, 7rem);
|
||||
padding: 3rem 0;
|
||||
}
|
||||
|
||||
.sound-mark {
|
||||
display: flex;
|
||||
height: 180px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
background: var(--ink);
|
||||
}
|
||||
|
||||
.sound-mark span {
|
||||
width: 3px;
|
||||
height: 28%;
|
||||
background: var(--paper);
|
||||
}
|
||||
|
||||
.sound-mark span:nth-child(2),
|
||||
.sound-mark span:nth-child(4) {
|
||||
height: 60%;
|
||||
}
|
||||
|
||||
.sound-mark span:nth-child(3) {
|
||||
height: 88%;
|
||||
background: var(--amend);
|
||||
}
|
||||
|
||||
.listen-grid h3 {
|
||||
max-width: 18ch;
|
||||
font-size: clamp(2rem, 5vw, 4.2rem);
|
||||
}
|
||||
|
||||
.listen-grid p:not(.eyebrow) {
|
||||
max-width: 55ch;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.guide-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
|
||||
.guide-grid article {
|
||||
min-height: 240px;
|
||||
padding: 1.5rem;
|
||||
border-right: 1px solid var(--rule);
|
||||
border-bottom: 1px solid var(--rule);
|
||||
}
|
||||
|
||||
.guide-grid article:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
.guide-number {
|
||||
color: var(--amend);
|
||||
font-family: 'IBM Plex Mono', monospace;
|
||||
font-size: 0.72rem;
|
||||
}
|
||||
|
||||
.guide-grid h3 {
|
||||
margin-top: 3rem;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.guide-grid p,
|
||||
.guide-grid small {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.guide-grid small {
|
||||
font-family: 'IBM Plex Mono', monospace;
|
||||
font-size: 0.65rem;
|
||||
}
|
||||
|
||||
.planned article {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
.book-strip {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(200px, 0.6fr) 1.4fr;
|
||||
gap: clamp(2rem, 8vw, 8rem);
|
||||
align-items: center;
|
||||
padding: clamp(2rem, 5vw, 5rem);
|
||||
background: var(--blue);
|
||||
color: var(--paper);
|
||||
}
|
||||
|
||||
.book-object {
|
||||
display: grid;
|
||||
max-width: 260px;
|
||||
aspect-ratio: 3 / 4;
|
||||
place-items: center;
|
||||
border: 1px solid #7690ad;
|
||||
box-shadow: 18px 18px 0 #0e2c51;
|
||||
background: #102f55;
|
||||
font-family: 'Newsreader', Georgia, serif;
|
||||
font-size: 2.5rem;
|
||||
line-height: 0.9;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.book-strip h2 {
|
||||
max-width: 15ch;
|
||||
font-size: clamp(2.6rem, 6vw, 5.2rem);
|
||||
}
|
||||
|
||||
.book-strip p:not(.eyebrow) {
|
||||
max-width: 58ch;
|
||||
color: #c5d1df;
|
||||
}
|
||||
|
||||
.book-strip .eyebrow {
|
||||
color: #9fb8d4;
|
||||
}
|
||||
|
||||
.book-strip .button {
|
||||
border-color: var(--paper);
|
||||
color: var(--paper);
|
||||
}
|
||||
|
||||
.book-strip .button:hover {
|
||||
background: var(--paper);
|
||||
color: var(--blue);
|
||||
}
|
||||
|
||||
@media (max-width: 850px) {
|
||||
.hero-grid,
|
||||
.current-grid,
|
||||
.listen-grid,
|
||||
.book-strip {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.hero-note {
|
||||
padding-top: 1.5rem;
|
||||
padding-left: 0;
|
||||
border-top: 1px solid var(--ink);
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
.briefing-card {
|
||||
min-height: 310px;
|
||||
border-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 650px) {
|
||||
.guide-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.guide-grid article {
|
||||
min-height: auto;
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
.guide-grid h3 {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.book-strip {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user