Skip to content

Commit c9d7a05

Browse files
DanielMevitclaude
andcommitted
Site: Store-first download layout, gated behind a storeLive flag
Adds the paid Microsoft Store as the recommended path in the hero and the download section (accent-outlined, "Recommended"-badged card, $7.99 shown), with the free direct download kept as the secondary option. All of it is gated on storeLive, which stays false until the Store listing is published (its URL 410s until certification passes) -- so production keeps the current free-download layout and no live button points at a dead page. Flip storeLive to true on publication day to switch the site over in one line. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 4ce7771 commit c9d7a05

1 file changed

Lines changed: 41 additions & 5 deletions

File tree

‎site/src/pages/index.astro‎

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ const releases = `${repo}/releases`;
2222
const latest = `${repo}/releases/latest`;
2323
const year = 2026;
2424
25+
// Microsoft Store. The listing URL 410s until the app passes certification, so
26+
// storeLive stays false until it is published: the site keeps its free-download
27+
// layout in production, and flipping this one flag to true switches the hero and
28+
// download section to the Store-first layout (price shown, Store as the lead).
29+
const storeUrl = "https://apps.microsoft.com/detail/9PM61P4NC8J2";
30+
const storePrice = "$7.99";
31+
const storeLive = false;
32+
2533
const features = [
2634
{
2735
title: "No gaps. No overlaps. Ever.",
@@ -312,6 +320,14 @@ const cmp = [
312320
.dl h3 { margin: 0 0 0.2rem; font-size: 1rem; }
313321
.dl .os { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.9rem; }
314322
.dl .sub-dl { color: var(--muted); font-size: 0.85rem; margin: 0.8rem 0 0; }
323+
/* the Store card: the recommended, paid path — accent-outlined and badged */
324+
.dl-store { position: relative; border-color: var(--accent); background: var(--card-hover); }
325+
.dl-badge {
326+
position: absolute; top: -0.6rem; left: 50%; transform: translateX(-50%);
327+
background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700;
328+
letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap;
329+
padding: 0.15rem 0.6rem; border-radius: 999px;
330+
}
315331
.note {
316332
margin-top: 1.4rem; padding: 0.9rem 1.1rem; border-radius: 10px;
317333
background: var(--bg-soft); border: 1px solid var(--border);
@@ -381,8 +397,17 @@ const cmp = [
381397
between shapes. Free, open source, and it runs on your machine.
382398
</p>
383399
<div class="cta">
384-
<a class="btn big" id="dl-hero" href={latest}>Download for Windows</a>
385-
<a class="btn big ghost" href="#download">All downloads</a>
400+
{storeLive ? (
401+
<>
402+
<a class="btn big" href={storeUrl}>Get it on the Microsoft Store — {storePrice}</a>
403+
<a class="btn big ghost" href="#download">Or download free</a>
404+
</>
405+
) : (
406+
<>
407+
<a class="btn big" id="dl-hero" href={latest}>Download for Windows</a>
408+
<a class="btn big ghost" href="#download">All downloads</a>
409+
</>
410+
)}
386411
</div>
387412
<p class="under-cta">
388413
One file, no install — v{version} · MIT · CLI for Linux &amp; macOS · nothing uploaded, no account
@@ -485,14 +510,25 @@ const cmp = [
485510
<div class="wrap">
486511
<div class="section-head">
487512
<h2>Download Vecto {version}</h2>
488-
<p>Free under the MIT open-source license. No account, no strings.</p>
513+
{storeLive
514+
? <p>One click and {storePrice} on the Microsoft Store, or the free open-source build direct.</p>
515+
: <p>Free under the MIT open-source license. No account, no strings.</p>}
489516
</div>
490517
<div class="dl-grid">
518+
{storeLive && (
519+
<div class="dl dl-store">
520+
<div class="dl-badge">Recommended</div>
521+
<h3>Microsoft Store</h3>
522+
<p class="os">Windows 10 / 11 · one-click install</p>
523+
<a class="btn" href={storeUrl}>Get on the Store — {storePrice}</a>
524+
<p class="sub-dl">Auto-updates, signed &amp; certified, and it directly supports development.</p>
525+
</div>
526+
)}
491527
<div class="dl">
492-
<h3>Windows</h3>
528+
<h3>{storeLive ? "Windows — direct" : "Windows"}</h3>
493529
<p class="os">10 / 11 · 64-bit · desktop app</p>
494530
<a class="btn" id="dl-win-exe" href={latest}>Get the app (.exe)</a>
495-
<p class="sub-dl">One self-contained file — no install.<br /><a id="dl-win-zip" href={latest}>App + CLI portable ZIP</a> also available</p>
531+
<p class="sub-dl">{storeLive ? "Free, unsigned — you update it yourself." : "One self-contained file — no install."}<br /><a id="dl-win-zip" href={latest}>App + CLI portable ZIP</a> also available</p>
496532
</div>
497533
<div class="dl">
498534
<h3>Linux</h3>

0 commit comments

Comments
 (0)