{# Data Card Component (mobile-optimized list item) Params: title: string (required) — main title subtitle: string (optional) meta: string (optional) — tertiary text (e.g. date) url: string (optional) — makes card clickable status_badge: hash (optional) — { label: string, variant: string } badges: array (optional) — [{ label: string, variant: string }] data_pairs: array (optional) — [{ label: string, value: string }] accent: string (optional, default: 'navy') — navy|coral|gold|green|danger class: string (optional) #} {% set _accent = accent|default('navy') %} {% set _tag = url is defined and url ? 'a' : 'div' %} <{{ _tag }}{% if url is defined and url %} href="{{ url }}"{% endif %} class="m-data-card m-data-card--{{ _accent }}{{ class is defined and class ? ' ' ~ class : '' }}">
{{ title }}
{% if subtitle is defined and subtitle %}{{ subtitle }}
{% endif %} {% if meta is defined and meta %} {% endif %}