diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2022-12-29 02:26:20 +0100 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2022-12-29 02:26:20 +0100 |
commit | 8c46de38348c421c0c9f102d604fcfc18807c0bb (patch) | |
tree | 3174b4392ca3eadd24c1da06929830b220764e38 /src/frontend/tau/components/loading.cljs | |
parent | dfcc61063822dfb0fe699896da312249e93d5439 (diff) |
feat(frontend): Add further features and address quirks
Diffstat (limited to 'src/frontend/tau/components/loading.cljs')
-rw-r--r-- | src/frontend/tau/components/loading.cljs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/frontend/tau/components/loading.cljs b/src/frontend/tau/components/loading.cljs index 66954a1..9b1fee8 100644 --- a/src/frontend/tau/components/loading.cljs +++ b/src/frontend/tau/components/loading.cljs @@ -1,16 +1,20 @@ -(ns tau.components.loading - (:require - [re-frame.core :as rf])) +(ns tau.components.loading) (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 + [:i.fas.fa-circle-notch.fa-spin.text-5xl {:style {:color service-color}}]]) -(defn pagination-loading-icon +(defn items-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}}]]) + +(defn comments-pagination-loading-icon + [service-color] + [:div.w-full.flex.justify-center.items-center.flex-auto + [:i.fas.fa-circle-notch.fa-spin + {:style {:color service-color}}]]) |