Upload files to "frontend/components"

This commit is contained in:
Thierry 2026-03-26 11:31:34 +01:00
parent 57ee7f3419
commit 392bdfca2f
5 changed files with 77 additions and 0 deletions

View 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>