Skip to content

Surface Kokage's Discord server and X account prominently - #22

Merged
dummyx merged 2 commits into
mainfrom
prominent-community-links
Dec 3, 2026
Merged

dummyx merged 2 commits into
mainfrom
prominent-community-links

Conversation

@dummyx

@dummyx dummyx commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Kokage's Discord server and X account (@KokageApp) were only linked as small unbordered muted icons at the far end of the site footer, making them easy to miss on kokage.moe.

Resulting behaviour

  • Home hero (above the fold): Adds secondary labeled pill links (Join Discord / Follow on X, localized across en, ja, zh-hans, and zh-hant) directly beneath the App Store and Google Play buttons, stacking cleanly on single lines at narrow mobile widths (320px–421px) and sitting side-by-side at wider widths.
  • Home closing section (#status): Adds a Community block beneath the platform links with two interactive cards showing Discord (Kokage Discord server, localized) and X (@KokageApp), collapsing cleanly to one column at <= 640px.
  • Site footer (all pages): Upgrades the footer social links from bare muted icons to bordered pills with visible Discord and X labels alongside their icons while preserving localized aria-label names, rel="external me" on X, and a 12rem minimum descriptor track above 900px so Japanese footer links wrap cleanly without squeezing the descriptor.
  • Single-sourced icons, llms.txt & tests: Extracts src/components/CommunityIcon.astro (currentcolor SVG fills for forced-colors compatibility), wires src/seo/llms.ts to en.community.title, and expands tests/site.test.mjs to cover hero, closing, and footer community links across all four locales.

Checks (bc84642)

  • mise run verify (mise run whitespace + npm test: astro check && astro build + node --test tests/*.test.mjs): passed (0 Astro errors/warnings/hints, 12 localized static pages built, 22/22 static tests passed).
  • Browser visual, responsive & keyboard inspection (npm run dev on http://localhost:4321): inspected /, /ja/, /zh-hans/, /zh-hant/, and /ja/support/ across 1280x900, 910x900, 375x812, and 320x640 in dark and light modes, plus sequential Tab focus order and :focus-visible outlines across hero pills, closing cards, and footer pills.

Review passes (origin/main...bc84642)

  • Round 1: Contract pass returned Blockers: none (noted wiring llms.ts to en.community.title). Adversarial pass and browser inspection caught mid-label pill wrapping at 360px–385px (flex: 1 1 160px) and Japanese footer descriptor squeezing at 901px–980px (grid-template-columns: auto 1fr auto), plus non-blocking notes on currentcolor SVG fills and test regex escaping; all fixed in bc84642.
  • Round 2 (on bc84642):
    • Contract pass: Blockers: none (0 notes).
    • Adversarial pass: Blockers: none (0 notes).

Not checked

  • Live https://kokage.moe production origin build (verified against the documented test and loopback origins; Cloudflare Workers Builds checks the preview build on GitHub).

Add labeled Discord and X pill links below the store buttons in the home
page hero, add a Community showcase with Discord and X cards in the
closing section, and replace the footer's bare social icons with labeled
pills across all four locales.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
project-kokage-website bc84642 Commit Preview URL

Branch Preview URL
Dec 03 2026, 08:06 AM

Raise the mobile community pill flex-basis to 12rem so 360px-412px phones
stack both pills cleanly on single lines instead of wrapping mid-label,
give the footer descriptor track a 12rem minimum width above 900px so
Japanese footer links wrap instead of squeezing the descriptor, align SVG
icon fill with currentcolor for forced-colors mode, wire llms.txt to
en.community.title, and tighten the community test regexes.
@dummyx
dummyx marked this pull request as ready for review December 3, 2026 08:16
@dummyx
dummyx merged commit 1930e5c into main Dec 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant