summaryrefslogtreecommitdiffstats
path: root/layouts/partials/toast-container.html
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-22 12:42:56 +0200
committerDanilo M. <danix@danix.xyz>2026-04-22 12:42:56 +0200
commit631547a75142326a7c71bdf123e1475217a5ad73 (patch)
treef3cfef6b3c5b42bf626fc823ddcf63b8dcf4cdbb /layouts/partials/toast-container.html
parent77ccbe72fad5a4870185fff374f75471c16a9043 (diff)
downloaddanixxyz-theme-631547a75142326a7c71bdf123e1475217a5ad73.tar.gz
danixxyz-theme-631547a75142326a7c71bdf123e1475217a5ad73.zip
chore: replace with extracted danix.xyz-hacker theme (danix2-hugo-theme)
Diffstat (limited to 'layouts/partials/toast-container.html')
-rw-r--r--layouts/partials/toast-container.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/partials/toast-container.html b/layouts/partials/toast-container.html
new file mode 100644
index 0000000..7bbd3c0
--- /dev/null
+++ b/layouts/partials/toast-container.html
@@ -0,0 +1,13 @@
+{{ define "toast-container" }}
+
+<!-- Toast notification container with Alpine.js integration -->
+<div class="toast-container" x-data="formComponentsData()">
+ <template x-for="toast in toasts" :key="toast.id">
+ <div class="toast" :class="`toast-${toast.type}`" x-show="toasts.length > 0">
+ <span x-text="toast.message"></span>
+ <button class="toast-close" @click="removeToast(toast.id)" type="button" aria-label="Close notification"></button>
+ </div>
+ </template>
+</div>
+
+{{ end }}