{#
Feather's UI foundation: the macros behind static/css/ui.css and
/feather-static/ui.js.
{% from "components/ui.html" import page_header, empty_state, uploader, lightbox_item, dialog, notice, skeleton %}
page_header("Your photos", "Everything you have shared so far") with a
caller block for actions; empty_state("photo_camera", "No photos yet",
"Share the first one", action_href="/upload", action_text="Add photos");
uploader("photos", multiple=True, accept="image/*"); lightbox_item(url,
thumb_url, alt, group="album", caption=...); dialog("share", "Share this
album") with a caller block for the body; notice("error", "...");
skeleton("media") while something loads.
#}
{% from "components/icon.html" import icon %}
{% macro page_header(title, subtitle=None, eyebrow=None) %}
{{ eyebrow }} {{ subtitle }}{{ title }}
{% if subtitle %}
{{ title }}
{% if text %}{{ text }}
{% endif %} {% if caller %}{{ caller() }}{% elif action_href and action_text %}{{ action_text }}{% endif %}