{#- chirp-ui: Story Card Customer outcome card for product pages, case-study strips, and proof grids. Data-in: customer, outcome, optional summary, metric, href, logo_src, logo_alt. Default slot replaces summary when a page needs richer escaped markup. Named slots: logo, metric, footer. Usage: from "chirpui/story_card.html" import story_card story_card( customer="Acme", outcome="Reduced review time", summary="Teams debugged production runs without escalating.", href="/customers/acme", metric="80%", ) -#} {% def story_card(customer, outcome, summary=none, href=none, metric=none, logo_src=none, logo_alt=none, cta_label="Read story", cls="") %} {% set _root_class = "chirpui-story-card" ~ (" chirpui-story-card--link" if href else "") ~ (" " ~ cls if cls else "") %} {% if href %} {% else %}
{% endif %}
{% if metric %} {{ metric }} {% else %} {% slot metric %} {% endif %}

{{ customer }}

{{ outcome }}

{% slot %} {% if summary %}

{{ summary }}

{% endif %}
{% if href %}
{% else %}
{% endif %} {% end %}