Skip to content

Commit

Permalink
change the button to ornament styled
Browse files Browse the repository at this point in the history
  • Loading branch information
humorless committed Jul 20, 2024
1 parent 76ba6b8 commit cd1fe72
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/co/gaiwan/compass/html/home.clj
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,24 @@
[clojure.datafy :as df]
[lambdaisland.ornament :as o]))

(defn filters-hidden []
[:section#filters
[:button
{:hx-get "/show-filters"
(o/defstyled ui-filter-button :button
([hx-action-link caption]
[:<>
{:hx-get hx-action-link
:hx-target "#filters"
:hx-select "#filters"}
caption]))

(defn filters-hidden []
[:section#filters
[ui-filter-button
"/show-filters"
"Open Session Filters"]])

(defn filters-showed []
[:section#filters
[:button
{:hx-get "/hide-filters"
:hx-target "#filters"
:hx-select "#filters"}
[ui-filter-button
"/hide-filters"
"Close Session Filters"]
[:div
[:label "Starred"]
Expand Down

0 comments on commit cd1fe72

Please sign in to comment.