From 132bb57d594894f7c9bdfea23e17971028acaedf Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 1 Jun 2024 05:59:17 -0700 Subject: Add: page macro, css. Refactor: endpoints for consistent naming --- site/css.lisp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 site/css.lisp (limited to 'site/css.lisp') 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+) -- cgit v1.2.3