aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tubo/components/loading.cljs
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/tubo/components/loading.cljs')
-rw-r--r--src/frontend/tubo/components/loading.cljs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/frontend/tubo/components/loading.cljs b/src/frontend/tubo/components/loading.cljs
new file mode 100644
index 0000000..08c37de
--- /dev/null
+++ b/src/frontend/tubo/components/loading.cljs
@@ -0,0 +1,8 @@
+(ns tubo.components.loading)
+
+(defn loading-icon
+ [service-color & styles]
+ [:div.w-full.flex.justify-center.items-center.flex-auto
+ [:i.fas.fa-circle-notch.fa-spin
+ {:class (apply str (if (> (count styles) 1) (interpose " " styles) styles))
+ :style {:color service-color}}]])