ui: animate loading indicator
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
package ui
|
package ui
|
||||||
|
|
||||||
templ LoadingIndicator(text string) {
|
templ LoadingIndicator(text string) {
|
||||||
<div class="inline-flex items-center gap-2 text-sm text-(--text-muted)">
|
<div class="flex flex-col items-center justify-center gap-4 py-12">
|
||||||
<div class="h-1.5 w-1.5 bg-(--text-faint)"></div>
|
<div class="flex gap-1.5">
|
||||||
<div class="h-1.5 w-1.5 bg-(--text-faint)"></div>
|
<span class="h-2 w-2 rounded-full bg-(--text-faint) animate-bounce" style="animation-delay: 0ms;"></span>
|
||||||
<div class="h-1.5 w-1.5 bg-(--text-faint)"></div>
|
<span class="h-2 w-2 rounded-full bg-(--text-faint) animate-bounce" style="animation-delay: 150ms;"></span>
|
||||||
<span>{ text }</span>
|
<span class="h-2 w-2 rounded-full bg-(--text-faint) animate-bounce" style="animation-delay: 300ms;"></span>
|
||||||
|
</div>
|
||||||
|
<span class="text-xs uppercase tracking-widest text-(--text-faint)">{ text }</span>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user