aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tubo/views.cljs
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/tubo/views.cljs')
-rw-r--r--src/frontend/tubo/views.cljs20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/frontend/tubo/views.cljs b/src/frontend/tubo/views.cljs
index aabd7b6..12fbe54 100644
--- a/src/frontend/tubo/views.cljs
+++ b/src/frontend/tubo/views.cljs
@@ -1,23 +1,21 @@
(ns tubo.views
(:require
[re-frame.core :as rf]
- [tubo.components.audio-player :as player]
[tubo.components.navigation :as navigation]
- [tubo.components.notification :as notification]
- [tubo.components.play-queue :as queue]
- [tubo.events :as events]))
+ [tubo.notifications.views :as notifications]
+ [tubo.player.views :as player]
+ [tubo.queue.views :as queue]))
(defn app
[]
- (let [current-match @(rf/subscribe [:current-match])
- auto-theme @(rf/subscribe [:auto-theme])
- {:keys [theme]} @(rf/subscribe [:settings])]
- [:div {:class (when (or (and (= theme "auto") (= auto-theme :dark)) (= theme "dark")) "dark")}
- [:div.min-h-screen.flex.flex-col.h-full.dark:text-white.bg-neutral-100.dark:bg-neutral-900.relative.font-nunito-sans
+ (let [current-match @(rf/subscribe [:current-match])
+ dark-theme? @(rf/subscribe [:dark-theme])]
+ [:div {:class (when dark-theme? :dark)}
+ [:div.font-nunito-sans.min-h-screen.h-full.relative.flex.flex-col.dark:text-white.bg-neutral-100.dark:bg-neutral-900
[navigation/navbar current-match]
- [notification/notifications-panel]
+ [notifications/notifications-panel]
[:div.flex.flex-col.flex-auto.justify-between.relative
(when-let [view (-> current-match :data :view)]
[view current-match])
[queue/queue]
- [player/player]]]]))
+ [player/background-player]]]]))