aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tau/components/loading.cljs
blob: 9b1fee8520296fd9d79739b0e28004b910d5a28d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(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-5xl
    {:style {:color service-color}}]])

(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}}]])