Skip to content

feat(web): add Card component #161

@Kneesal

Description

@Kneesal

Background

The CMS will expose Card blocks (see feat(cms) schema issue #151). The web app needs a Card component that renders card content (image, title, description, optional link) for use in grids or lists.

Expected outcome

  • A Card component in apps/web that consumes Card block data (title, description, optional media, link, variant) and renders a card with correct semantics and styling.

Acceptance criteria

  • Card component implemented and wired to API/GraphQL shape.
  • Renders title, description, optional image and link; supports variant (e.g. default, featured) if in schema.
  • Accessible (link semantics, focus); responsive; styled per design system.
  • Integrated into grids/sections where cards are used (e.g. repeatable in Container or dedicated card grid).

Possible solution(s)

  1. Add apps/web/src/components/shared/Card.tsx or sections/Card.tsx; map schema fields to props; use shared typography and media components.
  2. Reuse existing card or tile primitive if present; keep one source of truth for card layout and styling.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions