glacier-web-cli 0.5.0

Command-line tool for creating and running Glacier applications.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% props heading: String, variant: String = "", title: String = "", id: String = "notification-banner", inner_block: Slot = Slot::default() %}
{#- `variant="success"` confirms an action (an alert, focused on load); the default is a service-wide notice. `title` is the strip's word. -#}
{%- let success = variant == "success" %}
{%- let title = if !title.is_empty() { title } else if success { "Success".to_owned() } else { "Important".to_owned() } %}
<div class="ui-banner"{% if !variant.is_empty() %} data-variant="{{ variant }}"{% end %}{% if success %} role="alert" tabindex="-1"{% else %} role="region"{% end %} aria-labelledby="{{ id }}-title">
  <div class="ui-banner-header" id="{{ id }}-title">
    {%- if success %}
    <svg class="ui-icon" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/></svg>
    {%- else %}
    <svg class="ui-icon" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>
    {%- end %}
    {{ title }}
  </div>
  <div class="ui-banner-content">
    <h3 class="ui-banner-heading">{{ heading }}</h3>
    {{ inner_block }}
  </div>
</div>