nixos-config/modules/home/tww/dist/templates/flash_msg.html

15 lines
915 B
HTML
Raw Permalink Normal View History

2025-04-02 19:09:02 -04:00
<div class="items-center justify-center gap-4 rounded-lg bg-black px-5 py-3 text-white z-50"
hx-trigger="load delay:{{ timeout }}s" hx-get="/msg_clr" id="flash_msg" hx-swap="outerHTML">
<span class="text-sm font-medium hover:opacity-75">{{ msg }} {{ timeout }}</span>
<button class="rounded bg-white/20 p-1 hover:bg-white/10" hx-get="/msg_clr" hx-target="#toast" hx-swap="innerHTML">
<span class="sr-only">Close ,,,</span>
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor">
<path
fillRule="evenodd"
d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
clipRule="evenodd"
/>
</svg>
</button>
</div>