Theme helpers and better theming

This commit is contained in:
David Botton 2022-04-26 22:43:59 -04:00
parent 99f7d663cb
commit 222b2c9d54
3 changed files with 132 additions and 93 deletions

View file

@ -71,7 +71,9 @@
(let ((profile (get-profile body *sql-connection*)))
(create-web-site body
:settings '(:color-class "w3-blue-gray"
:border-class "")
:border-class ""
:signup-link "/signup"
:login-link "/login")
:profile profile
:roles (if profile
(if (equalp "admin"
@ -93,7 +95,6 @@
(create-web-page
body
:login `(:menu ,*menu*
:sign-up "/signup"
:on-submit ,(lambda (obj)
(if (login body *sql-connection*
(name-value obj "username")