Add ticket-sales countdown to The Vibes banner#440
Merged
Conversation
The site-wide Vibes banner now shows a live d/h/m/s countdown to ticket sales closing at midnight Boston time on July 30 (04:00 UTC). The deadline is defined once and drives both a server-side render guard and the Alpine timer, so the whole banner disappears the moment sales close - on page loads after the deadline and live in already-open tabs. Also adds the php attribute to the webview example on the SuperNative docs page, matching the documented PHP mode. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
simonhamp
marked this pull request as ready for review
July 23, 2026 02:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a live d/h/m/s countdown to the site-wide The Vibes banner, counting down to ticket sales closing at midnight Boston time on July 30, 2026 (
2026-07-30T00:00:00-04:00= 04:00 UTC) — and makes the whole banner disappear once that deadline hits.@if (now()->isBefore(...))) — pages loaded after the deadline don't render the banner at all (works without JS, no flash), andx-show="! expired") — tabs already open at midnight watch the banner vanish live.x-course.countdown, with zero-paddedtabular-numsdigits and dark-mode styles matching the masterclass countdown.flex-wraps so on smaller screens the countdown drops to its own centered row instead of squeezing the headline text.Also a drive-by docs fix: the webview example on the SuperNative page ("Is the web view still an option?") now includes the
phpattribute, matching the PHP mode documented in #437 — without it the example's pre-v4 behavior wouldn't work.Why
The Vibes is a week away and tickets are only on sale until midnight before the event — the banner should create urgency while sales are open and get out of the way the moment they close, without needing a manual deploy at 4am UTC.
Testing
tests/Feature/TheVibesBannerTest.php(4 tests, time-frozen withtravelToso they stay deterministic): countdown renders during the sales window, banner gone at exactly the deadline (component + homepage), homepage shows the countdown beforehand.🤖 Generated with Claude Code