From 9f16a8300e17850e839f137c8ba9861d256a9543 Mon Sep 17 00:00:00 2001 From: Fili <126945152+filiksyos@users.noreply.github.com> Date: Fri, 9 Oct 2026 16:59:13 +0300 Subject: [PATCH] Move homepage advertising link beside Discord in footer --- components/reverse-prompt-home.tsx | 18 +++++++++--------- tests/sponsorship-ui.test.ts | 17 ++++++----------- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git a/components/reverse-prompt-home.tsx b/components/reverse-prompt-home.tsx index 9efa8bb..869ac81 100644 --- a/components/reverse-prompt-home.tsx +++ b/components/reverse-prompt-home.tsx @@ -487,15 +487,6 @@ export function ReversePromptHome({ ))} -
-

Advertise your website

- - Claim spot - -
) : null} @@ -649,6 +640,15 @@ export function ReversePromptHome({ > Discord + + ยท + + + Advertise +

) : null} diff --git a/tests/sponsorship-ui.test.ts b/tests/sponsorship-ui.test.ts index 77df1f5..4297e52 100644 --- a/tests/sponsorship-ui.test.ts +++ b/tests/sponsorship-ui.test.ts @@ -68,20 +68,15 @@ test("sponsor page has requested audience snapshot and logos, with contact only }); -test("home footer preserves Discord while claim card sits below the example repos", () => { +test("home footer places Advertise beside Discord without a repo-example ad card", () => { const home = readFileSync("components/reverse-prompt-home.tsx", "utf8"); const footer = home.slice(home.indexOf("")); assert.match(footer, /href="https:\/\/discord\.gg\/eHN86K7rBj"/); assert.match(footer, /Discord/); - assert.doesNotMatch(footer, /Advertise|Claim spot/); assert.match(footer, /href="https:\/\/filiksyos.com"/); - const examplesEnd = home.indexOf("Advertise your website"); - assert.ok(examplesEnd > home.indexOf("Try example repos:")); - assert.ok(examplesEnd < home.indexOf("")); - const card = home.slice(examplesEnd, home.indexOf("")); - assert.match(card, /href="\/sponsor"/); - assert.match(card, /Claim spot/); - assert.doesNotMatch(home, /Sponsor this spot/); + assert.match(footer, /href="\/sponsor"/); + assert.ok(footer.indexOf("Advertise") > footer.indexOf("Discord")); + assert.doesNotMatch(home, /Advertise your website|Claim spot|Sponsor this spot/); + assert.match(home, /Try example repos:/); + assert.doesNotMatch(home.slice(0, home.indexOf("