feat: streamlined alerts

This commit is contained in:
Björn Fromme committed 2026-03-02 14:50:51 +01:00
1 parent 7f16b95e79
commit 6d85982eb0
4 files changed
+23 -17

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
{% set type = type|default('info') %}
<div class="{{ html_classes('p-4 mb-4 flex items-start space-x-2 text-gray-100 rounded-md', { 'bg-blue-600': type == 'info', 'bg-red-600': type == 'warning' }) }}">
{{ icon('alert', 'w-5 h-5 flex-shrink-0') }}
<div class="leading-relaxed text-base">
{% block message %}
{{ message | nl2br }}
{% endblock %}
</div>
</div>