Define navbar-brand macro

This commit is contained in:
Marcus Kammer 2023-07-10 17:42:17 +02:00
parent 7645904ef4
commit 76a31d40c1

View file

@ -0,0 +1,24 @@
(defmacro navbar-brand ((&key (logo-src nil)) &body body)
`(spinneret:with-html
(:div :class "container-fluid"
(:a :class "navbar-brand"
:href "#"
,(if (null logo-src)
nil
(:img :src logo-src
:alt "Logo"
:width 30
:height 24
:class "d-inline-block align-text-top"))
,@body))))
(defmacro navbar-nav ())
(defmacro navbar-toggler ())
(defmacro navbar-text ())
(defmacro navbar (&body body)
`(spinneret:with-html
(:nav :class "navbar"
,@body)))