Skip to content

Commit 62330b7

Browse files
hsnice16claude
andcommitted
chore: add Peerlist Launchpad banner on home hero
Theme-aware (light/dark via <picture>) image links to the project's Peerlist Launchpad page; small ArrowUpRight chip marks it as external. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a390e12 commit 62330b7

3 files changed

Lines changed: 45 additions & 16 deletions

File tree

app/page.tsx

Lines changed: 45 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -180,23 +180,52 @@ export default async function Page({ searchParams }: { searchParams: Promise<Sea
180180
__html: JSON.stringify(itemListJsonLd).replace(/</g, "\\u003c"),
181181
}}
182182
/>
183-
<section className="mb-5">
184-
<h1 className="mb-3 text-[26px] font-bold leading-[1.2] tracking-tight sm:text-[32px] sm:leading-[1.18]">
185-
Which public repos are friendliest to an AI coding agent?
186-
</h1>
187-
<p className="m-0 max-w-[68ch] text-[15px] text-ink-dim sm:text-base">
188-
Ranked per model across GitHub, GitLab, and Bitbucket — because agents aren&apos;t interchangeable.
189-
</p>
190-
<p className="mt-2 max-w-[68ch] text-[13px] text-muted">
191-
Looking up a dependency?{" "}
192-
<Link
193-
href="/package"
194-
className="border-b border-dotted border-ink-dim/60 text-ink-dim hover:border-ink-soft hover:text-ink-soft"
183+
<section className="mb-5 flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between sm:gap-6">
184+
<div className="min-w-0 flex-1">
185+
<h1 className="mb-3 text-[26px] font-bold leading-[1.2] tracking-tight sm:text-[32px] sm:leading-[1.18]">
186+
Which public repos are friendliest to an AI coding agent?
187+
</h1>
188+
<p className="m-0 max-w-[68ch] text-[15px] text-ink-dim sm:text-base">
189+
Ranked per model across GitHub, GitLab, and Bitbucket — because agents aren&apos;t interchangeable.
190+
</p>
191+
192+
<p className="mt-2 max-w-[68ch] text-[13px] text-muted">
193+
Looking up a dependency?{" "}
194+
<Link
195+
href="/package"
196+
className="border-b border-dotted border-ink-dim/60 text-ink-dim hover:border-ink-soft hover:text-ink-soft"
197+
>
198+
Check any npm / PyPI / Cargo package
199+
</Link>{" "}
200+
by name.
201+
</p>
202+
</div>
203+
204+
<a
205+
target="_blank"
206+
rel="noopener noreferrer"
207+
href="https://peerlist.io/hsnice16/project/agent-friendly-code"
208+
aria-label="Live on Peerlist Launchpad — open the Agent Friendly Code project page (new tab)"
209+
className="group relative block w-full max-w-[340px] shrink-0 self-start overflow-hidden rounded-lg border border-line transition-colors hover:border-line-strong sm:w-[300px]"
210+
>
211+
<picture>
212+
<source media="(prefers-color-scheme: dark)" srcSet="/launch/peerlist-dark.png" />
213+
<img
214+
height={630}
215+
width={1200}
216+
className="block h-auto w-full"
217+
alt="Live on Peerlist Launchpad"
218+
src="/launch/peerlist-light.png"
219+
/>
220+
</picture>
221+
222+
<span
223+
aria-hidden="true"
224+
className="absolute right-2 top-2 inline-flex h-6 w-6 items-center justify-center rounded-full bg-bg/85 text-ink-dim ring-1 ring-line backdrop-blur-sm transition-colors group-hover:bg-bg group-hover:text-ink"
195225
>
196-
Check any npm / PyPI / Cargo package
197-
</Link>{" "}
198-
by name.
199-
</p>
226+
<ArrowUpRight size={13} weight="bold" />
227+
</span>
228+
</a>
200229
</section>
201230

202231
<ModelPills

public/launch/peerlist-dark.png

101 KB
Loading

public/launch/peerlist-light.png

102 KB
Loading

0 commit comments

Comments
 (0)