From b5404ac06a3a09d83bef66552083254fdff12196 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Mon, 26 Dec 2022 22:02:33 +0100 Subject: feat(frontend): Modularize components and add pagination --- src/frontend/tau/components/loading.cljs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/frontend/tau/components/loading.cljs (limited to 'src/frontend/tau/components/loading.cljs') diff --git a/src/frontend/tau/components/loading.cljs b/src/frontend/tau/components/loading.cljs new file mode 100644 index 0000000..66954a1 --- /dev/null +++ b/src/frontend/tau/components/loading.cljs @@ -0,0 +1,16 @@ +(ns tau.components.loading + (:require + [re-frame.core :as rf])) + +(defn page-loading-icon + [service-color] + [:div.w-full.flex.justify-center.items-center.flex-auto + [:i.fas.fa-circle-notch.fa-spin.text-8xl + {:style {:color service-color}}]]) + +(defn pagination-loading-icon + [service-color loading?] + [:div.w-full.flex.items-center.justify-center.py-4 + {:class (when-not loading? "invisible")} + [:i.fas.fa-circle-notch.fa-spin.text-2xl + {:style {:color service-color}}]]) -- cgit v1.2.3