Skip to content

feat(web): add Container component (side-by-side items) #153

@Kneesal

Description

@Kneesal

Background

The CMS will expose Container blocks with side-by-side items (see feat(cms) schema issue). The web app needs a Container component that renders these items in a configurable side-by-side (or multi-column) layout.

Expected outcome

  • A Container component in apps/web that accepts container block data (items, optional layout/ratio) and renders children side by side with correct responsive behavior.

Acceptance criteria

  • Container component implemented and wired to API/GraphQL shape.
  • Renders repeatable items (e.g. text, image, nested components) in side-by-side layout.
  • Supports layout options (e.g. ratio, order) from schema; responsive (stack on small screens if needed).
  • Integrated into dynamic zone or section rendering.

Possible solution(s)

  1. Add apps/web/src/components/sections/Container.tsx; map items to child component by type (text, image, etc.) and apply layout via CSS grid/flex.
  2. Use existing layout primitives; keep one component per schema component for clear ownership.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions