Upload files to "frontend/components"
This commit is contained in:
parent
57ee7f3419
commit
392bdfca2f
5 changed files with 77 additions and 0 deletions
13
frontend/components/Alert.jinja
Normal file
13
frontend/components/Alert.jinja
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{#def type="info", message="" #}
|
||||
<div role="alert" class="alert alert-{{ type }}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="stroke-current shrink-0 w-6 h-6">
|
||||
{% if type == "error" %}
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" />
|
||||
{% elif type == "success" %}
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
|
||||
{% else %}
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
||||
{% endif %}
|
||||
</svg>
|
||||
<span>{{ message }}</span>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue