Skip to content

feat: add repair day countdown page and homepage banner - #172

Merged
m1ngsama merged 4 commits into
mainfrom
feat/repair-day-countdown
Nov 24, 2026
Merged

m1ngsama merged 4 commits into
mainfrom
feat/repair-day-countdown

Conversation

@m1ngsama

@m1ngsama m1ngsama commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

The 11.28 repair day needs a place on the site where students can see when it starts, book a repair, and claim a pass.

  • The pass links point to https://card.nbtca.space/e/repair-day-2026-11-28, set in pass in src/repair-day.ts. That event does not exist yet. Create it on card with this slug before merging, or update pass to match.
  • The page uses the navy of the 2025-03 poster. If the new poster in 维修日海报设计 Roadmap#109 uses another color, the page should follow.

The homepage shows a banner above the posts with a countdown to 9:30 at NB122. It switches to "正在进行" during the event and removes itself at 17:00, so the site does not need a rebuild afterward.

/repair-day is a new event page. It covers services, what to bring, photos from past repair days, and history since 2008. Each call to action offers both "预约维修" and "领取入场券". A pass gets a student in even without a repair, and nbtca/card#54 adds a "预约维修" link to repair-day passes. /repair-day.ics adds the event to a calendar app, with both links in the description, and nginx.conf now serves .ics as text/calendar.

Photos come from the member album. Shots that show metal tools touching a live mainboard were left out. The page loads about 1.2 MB of WebP images on desktop, and images below the fold are lazy loaded.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Deploying home with  Cloudflare Pages  Cloudflare Pages

Latest commit: 889e1fa
Status: ✅  Deploy successful!
Preview URL: https://3ca05e25.fuji-2ku.pages.dev
Branch Preview URL: https://feat-repair-day-countdown.fuji-2ku.pages.dev

View logs

@m1ngsama
m1ngsama requested a review from sheepkinn November 24, 2026 10:27
@m1ngsama
m1ngsama merged commit 0ff3880 into main Nov 24, 2026
4 checks passed
@m1ngsama
m1ngsama deleted the feat/repair-day-countdown branch November 24, 2026 12:02
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