summaryrefslogtreecommitdiff
path: root/site/css.lisp
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2024-06-01 05:59:17 -0700
committercolin <colin@cicadas.surf>2024-06-01 05:59:17 -0700
commit132bb57d594894f7c9bdfea23e17971028acaedf (patch)
tree37ee92488f3bc925a729eba474774d6369e7d6e0 /site/css.lisp
parenta98270e2f8d90a9026394aff0aaa104824f045fa (diff)
Add: page macro, css. Refactor: endpoints for consistent naming
Diffstat (limited to 'site/css.lisp')
-rw-r--r--site/css.lisp29
1 files changed, 29 insertions, 0 deletions
diff --git a/site/css.lisp b/site/css.lisp
new file mode 100644
index 0000000..ab01990
--- /dev/null
+++ b/site/css.lisp
@@ -0,0 +1,29 @@
+(in-package #:vampire)
+
+(defparameter +main-style+
+ (lass:compile-and-write
+ ;; Add variables here, not just for reuse, but also for at-a-glance
+ ;; documentation and easy-of-fiddling
+ '(:let ((main-bg "#1c1c1c")
+ (secondary-bg "#2e2e2e")
+ (tertiary-bg "#cccccc")
+ (main-color "#e8e7d5")
+ (secondary-color "#ffffff")
+ (tertiary-color "#000000"))
+ (body
+ :background #(main-bg)
+ :color #(main-color)
+ :justify-content center
+ :display flex
+ :width 90vw
+ :margin auto)
+
+ ;;(button)
+
+ ;;((and button :hover))
+ )))
+
+(wknd:defendpoint style.css
+ :get :route "css" "style.css"
+ :returns "text/css"
+ :handle +main-style+)