Repository navigation
feat(campaign): a Black Friday notice, light mode light throughout, no dot, arrow or glow - #190
Merged
Merged
Conversation
…low on the sale
- CampaignNotice opens once per page load while the sale is live: a modal
dialog from 640px (the two offers, the countdown, Buy Pro one-time, See both
offers, Not now), a non-blocking card at the bottom below it.
- It stays shut on /black-friday and Pricing (the banner prop's `notice`),
while the consent bar asks, for a reader whose regional discount takes
more off, and once closed: `tablepro:campaign-closed` holds `{id}:notice`,
which keeps the banner; closing the banner still closes both.
- The sale's banner, the license banner, the language bar and /black-friday
lose the accent dot, the trailing arrows, the glow and the light under the
pointer. The banner writes its call to action out at every width.
- The language bar now takes the slot from the sale's banner: the rule that
hid it lost on specificity, so both bars stacked.
- The sale's banner, its notice and /black-friday follow the reader's theme instead of holding a dark island in light mode (owner, 2026-11-28). - The forced theme goes: no `data-theme-forced` from Blade, no `forceDark` or `alwaysDark`, no sale `theme-color`, and the theme control shows on every page again. - The banner sits on `--surface` under a `--rule` line; the dialog and the card on `--raised`. - CLAUDE.md, positioning and the design system say so.
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.
CampaignNoticeopens once per page load while the sale is live. From 640px it is a modal<dialog>on--raised, in the reader's theme: the percentage off, Pro one-time and Pro yearly as ruled rows with struck list prices, the countdown, Buy Pro one-time for $47.40 (checkout with the sale's code), See both offers and Not now. Below 640px it is a card at the bottom that blocks nothing, following Google's guidance on intrusive dialogs./black-fridayand Pricing (Banner::CAMPAIGN_NOTICE_HIDDEN_ON, sent as the banner prop'snotice);noticeOpens), so it never shows a price checkout does not charge;tablepro:campaign-closedholds{id}:notice, which keeps the banner; closing the banner still closes both. The privacy policy already lists the key as the closed sale notice.useSettledRegionalPricingtells the notice whenGET /v2/pricinghas answered. The request is made only for a reader the notice may open for.Countdowngains arowvariant. All 12 catalogs gaincampaign.notice, reusing the sale page's translated plan names, window and footnote./black-fridaylose the accent dot, the trailing arrows, the glow and the light under the pointer. The sale's banner writes its call to action out at every width; links that followed a sentence are underlined instead (WCAG 1.4.1)./black-fridayfollow the reader's theme. The forced theme goes entirely: nodata-theme-forcedfrom Blade, noforceDarkoralwaysDark, no saletheme-color, and the theme control shows on every page again. CLAUDE.md, positioning and the design system say so. The share card, an image shown off the site, keeps its black ground.positioning.md(the notice, owner decision 2026-11-28),design-system.mdand the analytics events inarchitecture.md(campaign_notice_view,campaign_notice_click,campaign_notice_close) are updated.npm run typecheck: passed, catalog parity includednpm run test:js: 248 passed, 0 failed (the two forced-theme tests are gone withforceDark)npm run build: passedvendor/bin/pint --test: passed./vendor/bin/pest: 1181 passed, 114 skipped (SSR)REQUIRE_SSR=1 ./vendor/bin/pest --group=ssrwith a local SSR service: 117 passed/black-fridaycarries.dark; the notice opens; Escape storesblack-friday-2026:noticeand a reload keeps it shut with the banner still shown; it stays shut on/pricingand after the banner is closed. The sale's banner fits at 320, 360, 390, 768, 1024 and 1440px in all 12 languages (72 of 72).Screenshots
The sale's banner: no dot or arrow, in the reader's theme
The language bar takes the slot: one bar, not two
🤖 Generated with Claude Code