Adds new default admin page

This commit is contained in:
2023-10-31 13:59:03 -07:00
parent f8690edbb8
commit 25b397325a
11 changed files with 128 additions and 10 deletions

View File

@@ -1,11 +1,13 @@
(ns auto-ap.ssr.components.card)
(ns auto-ap.ssr.components.card
(:require [auto-ap.ssr.hiccup-helper :as hh]
[auto-ap.ssr.hx :as hx]))
(defn card- [params & children]
(into [:div (update params :class str " shadow-md dark:bg-gray-800 sm:rounded-lg border-2 border-gray-200 dark:border-gray-900 bg-white overflow-hidden")]
children))
(defn content-card- [params & children]
[:section {:class " py-3 sm:py-5"}
[:section {:class (hh/add-class " py-3 sm:py-5" (:class params))}
[:div {:class "max-w-screen-2xl"}
(into
[:div {:class "relative overflow-hidden shadow-md dark:bg-gray-800 sm:rounded-lg border-2 border-gray-200 dark:border-gray-900 bg-white"}]