All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m15s
Remove the separate sub-admin header rows (data, entries, edit, settings) that caused duplicate/stale rows on HTMX navigation and font styling breaks. Instead, pass selected= to the admin row to highlight the active nav item via aria-selected styling. External nav items (calendars, markets, payments) also gain is-selected and select-colours support. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
987 B
Plaintext
25 lines
987 B
Plaintext
;; Blog header components
|
|
|
|
(defcomp ~blog-header-label ()
|
|
(div))
|
|
|
|
(defcomp ~blog-container-nav (&key container-nav-html)
|
|
(div :class "flex flex-col sm:flex-row sm:items-center gap-2 border-r border-stone-200 mr-2 sm:max-w-2xl"
|
|
:id "entries-calendars-nav-wrapper" (raw! container-nav-html)))
|
|
|
|
(defcomp ~blog-admin-label ()
|
|
(<> (i :class "fa fa-shield-halved" :aria-hidden "true") " admin"))
|
|
|
|
(defcomp ~blog-admin-nav-item (&key href nav-btn-class label is-selected select-colours)
|
|
(div :class "relative nav-group"
|
|
(a :href href
|
|
:aria-selected (when is-selected "true")
|
|
:class (str (or nav-btn-class "justify-center cursor-pointer flex flex-row items-center gap-2 rounded bg-stone-200 text-black p-3") " " (or select-colours ""))
|
|
label)))
|
|
|
|
(defcomp ~blog-sub-settings-label (&key icon label)
|
|
(<> (i :class icon :aria-hidden "true") " " label))
|
|
|
|
(defcomp ~blog-sub-admin-label (&key icon label)
|
|
(<> (i :class icon :aria-hidden "true") (div label)))
|