Design system / Molecules
Molecule / Navigation
CatalogueHomeCard
CatalogueHomeCard combines one decorative banner, Catalogue heading, supporting copy and a visual action cue inside one accessible link.
Live example
Current component with fictional data. Example changes are not persisted.
Catalogue
Explore selected work across your tenant's programs and editions.
Catalogue
Explore selected work across your tenant's programs and editions.
Review
Find your assigned review rounds and track your review progress.
Submissions
Your entries
1 draft · 2 submitted
Responsibility
One destination combines featured media, a heading, supporting copy and an action cue. Catalogue vocabulary belongs to the feature, not generic UI.
Public contract
The table describes supported inputs, exported parts and caller responsibilities. A callback supplies a command, such as saving a draft. These notes are maintained manually; check current source types before integration.
| Prop / part | Type | Requirement | Responsibility |
|---|---|---|---|
| href | string | Required | Authorized route supplies the tenant Catalogue destination. |
| imageUrl | string | null | Required | Existing configured Catalogue banner resolved by the server. Null uses the themed gradient. |
| headingId | string | Optional | Unique heading ID for an enclosing section's aria-labelledby. |
API notes are curated documentation, not generated types. The source linked above is the current implementation; update these notes alongside API changes.
State and behavior
Identify which values the caller controls and which behavior the component or underlying primitive owns. A local example does not supply persistence, authorization or a complete product lifecycle.
The Catalogue adapter has no state. Shared GatewayArtwork owns only a local failed-URL flag: browser delivery failure reveals the same gradient. Native links provide Tab focus and Enter navigation. No requests, Context or store.
Dependencies
- GatewayCard
- GatewayArtwork
- Next Link
- Card / CardHeader / CardContent
Token and styling contract
These notes identify theme roles, utilities and direct style values used by the source. Direct colors or timings are implementation exceptions, not recommendations to bypass the theme.
from-primary / via-primary/90 / to-secondary/70- Existing themed Catalogue gradient.
text-lg / text-supporting / text-link- Unchanged fluid heading, copy and action sizes.
h-20 / h-full / gap-4 / px-4- Shallow shared artwork, stretchable equal-height cards and compact internal spacing. Content remains complete and actions align at the bottom.
focus-visible:ring-ring / group-hover:border-primary/50- Whole-card focus and hover feedback.
Boundaries and limitations
- The entire card is one link named Browse Catalogue; do not nest links or buttons.
- The single banner is decorative with empty alt text. Do not add collage or image configuration.
- The server reads tenant settings and resolves the configured asset with tenant ID; it does not load catalogue results for decoration. Unavailable assets fall back to the gradient.
Where to make a change
Change shared gateway structure in editorial/gatewayCard.tsx and decorative failure handling in gatewayArtwork.tsx. CatalogueHomeCard binds Catalogue copy; Home composes the same molecule for Submissions and Review. GatewayCard accepts href, imageUrl, title, action, optional headingId and noninteractive children. Keep identity, authorization and asset resolution at the server boundary. The real examples include all three gateways with fictional media/local anchors.
Selected real uses
ConsoleTenantHomePage
Validates tenant identity, loads activity/settings and resolves authorized gateway artwork. CatalogueHomeCard binds Catalogue copy; Review and Submissions compose GatewayCard directly. The screen-reader Home heading identifies the page without a repeated introduction. Invitations retain adjacent destinations, and authorized tools remain in Administration rather than Home.
Repository path: src/app/(tenants)/console/[tenantCode]/page.tsx
These traces describe selected uses, not every dependency. Repository-only paths are shown as references; only approved files have public source views.
Usage contract
import { CatalogueHomeCard } from "@/components/catalogue/catalogueHomeCard";
<CatalogueHomeCard href={catalogueHref} imageUrl={resolvedBannerUrl} />Illustrative consumer bindings, not a self-contained product workflow. Live examples supply only local state or explicit fictional props.