feat: Card・Navbar と Footer のレシピ(軸 103〜105、ADR-0129〜0132) - #19
Merged
Merged
Conversation
…103–105 - Card: default and nested types, whole-card link via href or render (Next.js Link); hover fills, darkens the outline and scales the image, press sinks - Navbar: brand, links and actions in one row; folds the links into a Drawer menu by its own width; currentIndicator, sticky with stickyEdge and stickyBackdrop - Recipes: a README section and Storybook Recipes/ for things built from existing parts instead of components, starting with Footer Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
概要
Card と Navbar を足し、Footer は部品にせず「レシピ」(既存の部品を組み合わせて作るものの見本)として置きました。
Card(ADR-0129・軸 103)
Card・CardImage・CardBody。型はdefault(画像を端まで)とnested(内側に収める)。角・比率・余白は ADR-0014・0016・0017 のままhrefでカード全体が 1 つのリンクになります。Next.js のLinkはrenderに渡しますNavbar(ADR-0130・0131・軸 104・105)
Navbar・NavbarLink。ロゴ・行き先・操作を 1 行に並べますmenuSideで固定可)currentIndicator:text(既定)・neutral・primary・underlinesticky(既定 false)。貼り付けたときの境目stickyEdge(line既定・shadow)と面stickyBackdrop(solid既定・blur)レシピ(ADR-0132)
Recipes/(src/recipes/)に Footer の見本を 2 つ置きました。公開の入口には足していませんsrc/recipes/の行を足しました記録
確かめたこと
pnpm typecheck・pnpm lint・pnpm format:check・pnpm test(58 ファイル・291 件)🤖 Generated with Claude Code