Skip to content

Redesign landing page with catalog-grid layout#92

Open
peter941221 wants to merge 4 commits into
w3-kit:feat/docs-websitefrom
peter941221:feat/landing-redesign-v1
Open

Redesign landing page with catalog-grid layout#92
peter941221 wants to merge 4 commits into
w3-kit:feat/docs-websitefrom
peter941221:feat/landing-redesign-v1

Conversation

@peter941221
Copy link
Copy Markdown

Continuing the catalog-grid landing redesign from #91 on a writable fork branch.

This keeps the new landing experience and fixes the blocker that made the website non-standalone. The generation scripts now work from the repo and worktree layout, generated learn content is self-contained instead of depending on sibling repositories at runtime, and the generated UI mirror plus landing stats needed by the page are committed so this repository can build on its own.

I verified npm ci and npm run build locally in the dedicated worktree. The build still emits the existing Vite dependency warnings from Base UI and Shiki, but it completes successfully.

PetarStoev02 and others added 3 commits April 21, 2026 15:13
Replace bento/ecosystem landing with a new catalog-grid design featuring:
- Interactive component catalog with 12 live mini-demos and filter chips
- Coordinate-labeled grid layout (like a parts manual)
- Feature comparison table (w3-kit vs Thirdweb, RainbowKit, Wagmi)
- Chains/tokens registry strip with colored marks
- Recipe cards with time estimates and CLI commands
- Stats section with key metrics
- Terminal mockup CTA with copy-to-clipboard
- Custom landing nav with dark/light toggle
- Custom multi-column footer
- Instrument Serif font for accent typography
- New CSS tokens (surface, accent-wash, grid-line) with dark mode support
Replaces hand-maintained preview duplicates with a build-time mirror
of the ui submodule, eliminating drift between landing demos and the
real registry components.

- Add scripts/generate-ui-mirror.ts (wired via predev/prebuild) that
  copies ui/registry/w3-kit/ into src/shared/ui/w3-kit/ on each build.
- Add src/shared/ui/w3-kit-demos.tsx exporting a DEMOS map keyed by
  component slug — single rendering authority used by landing,
  ui-explorer, and component-detail pages.
- Delete 27 src/shared/ui/previews/*.tsx files and 6 orphaned
  landing/ui/<slug>/ directories that duplicated component logic.
- Add scripts/generate-stats.ts and entities/stats for landing stats.
- Gitignore the mirror output and *.gen.ts files (generated at build).
- Update landing-nav to split mega menu into 3 dropdowns.
@peter941221 peter941221 requested a review from PetarStoev02 as a code owner May 16, 2026 16:19
@vercel
Copy link
Copy Markdown

vercel Bot commented May 16, 2026

@peter941221 is attempting to deploy a commit to the petar-stoev-projects Team on Vercel.

A member of the Team first needs to authorize it.

@peter941221
Copy link
Copy Markdown
Author

I pushed a small follow-up pass on top of this PR to address the review issues I found while validating the replacement branch. First, the docs fallback no longer replaces /docs pages with the one-line migration placeholder when the learn docs source is absent; it now generates usable local fallback content instead. Second, the landing copy no longer hard-codes metrics that contradict the generated stats, so the hero and catalog stay aligned with the actual component and chain counts. Third, the recipes section now uses the real CLI slug for the NFT example, changing the invalid nft-mint command to mint-nft. I re-ran npm run generate and npm run build after these fixes, and the build still completes successfully.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
w3-kit Ready Ready Preview, Comment May 18, 2026 6:09am

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.

2 participants