Skip to content

refactor(renderers): satori migration — Phase 3: renderStatCard #47

@evirunurm

Description

@evirunurm

Part of #44

Tasks

  • Create scripts/renderers/StatCard.tsx
  • Replace TextAttr/CardAttr interfaces and mountText/mountIcons imperative loops with flexbox column layout
  • Embed SVG icon assets using satori's img or inline <svg> children
  • Handle the peng/color variants via props
  • Make renderStatCard async, update api/stats.ts
  • Update or add tests

Depends on

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions