Repository navigation
Blocks: fix background placement, refresh dated blocks, add six new blocks - #563
Merged
Merged
Conversation
…locks Placement - 35 absolute layers (Background, MatrixFx, fill overlays) had no top/left, so they sat at their parent's padding offset instead of its corner. Every one now has top="0" left="0", as the harness's decoration rule says. - The blocks surface framed Sections/Misc previews with padding, which pushed every full-bleed hero and background in from the frame's edge. A `bleed` flag on BlockPage (and per example) drops that frame; Hero, Background, CTA and Stats use it. Refreshes - Bento1/Bento2: the media panels were forced into the light theme inside dark pages; they now follow the theme on a surface/page pair, and the logo marquee uses a light/dark wordmark with a fade instead of clipped logos. - Blog4: the featured post's text sat on a busy UI screenshot; it now sits on a photo with a page-coloured scrim. - Testimonial8: the logo row used the light-theme wordmark only, invisible in dark mode. New blocks - Cta1, Cta2 (new CTA category), Stats1 (new Stats category), Changelog1 (landing page), Billing1 and Onboarding1 (application), with their catalogue entries and category images. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtw8h8hmSytmc6VKwVg
The docs icon registry and blockIcons re-registered 60 names Once UI ships (sparkle, check, settings, copy, home...) with react-icons, so once-ui.com and every block showed Heroicons instead of our library. Drop those, point the older docs and block names at Once UI's glyphs, and keep react-icons only for brand marks and shapes we do not draw yet. blockIcons is spread after an app's own icons by `once-ui add`, so it must never carry a built-in name. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtw8h8hmSytmc6VKwVg
Merged
2 tasks done
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.
Requested by Lorant · project thread
A sweep of all 175 blocks on the blocks surface (every block screenshotted in dark and light before and after).
Placement
top/left(Background,MatrixFx,filloverlays in About4–6, Background1/2/4/5/6, BankCard, Blog2/4, Book, Careers3/4, DesignEngineersClub1/2, Faq7, Features6/18, Footer4/5, Hero5/13/14, Login1/5, Plans5/7, Sidebar7, Testimonial7, plusBookin@once-ui-system/blocks). They sat at the parent's padding offset instead of its corner. Each now hastop="0" left="0", as the harness's decoration rule says. Blocks whose parent had no padding render the same.padding="l", which pushed every hero and background in from the frame's edge.BlockPagegets ableedflag (page-wide, or per example). Hero, Background, CTA and Stats use it.Our own icons
src/resources/icons.ts) andblockIcons.tsre-registered 60 names Once UI ships (sparkle, check, settings, copy, home, …) with react-icons, so once-ui.com and every block showed Heroicons instead of our library. Those are gone.email,delete,darkMode,notification, …) now point at Once UI's own glyphs. react-icons is left only for brand marks (GitHub, Visa, Claude…), the filled heart/bookmark, and two shapes we don't draw yet (package,modules).blockIconsis spread after an app's own icons byonce-ui add, so it must never carry a built-in name. The file now says so.Refreshes
New blocks
Cta1(closing band) andCta2(install command + product shot): new Call to action categoryStats1(four metrics with sparklines): new Stats categoryChangelog1(release timeline): new Changelog category under Landing pageBilling1(plan, seats, card, usage meters that warn at 80%, invoices) andOnboarding1(first-run checklist): new Billing and Onboarding categories under ApplicationAll are built from core components and props only.
once-ui-validate-ai-codepasses on each, except one false positive on Cta2 (the async clipboard copy reads as data loading). Category images were generated from the blocks' own screenshots.Checks
tsc --noEmit(docs) is clean, and Biome formatting is clean on the touched files.These are docs-surface and block-source changes only.
packages/blocks/src/Book.tsxis the one package file touched, and it rides the weekend patch with core#560/#561.🤖 Generated with Claude Code
https://claude.ai/code/session_016gNJtw8h8hmSytmc6VKwVg