aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/home.lisp
diff options
context:
space:
mode:
authorGrant Shoshin Shangreaux <shoshin@cicadas.surf>2024-07-06 21:33:01 -0500
committerGrant Shoshin Shangreaux <shoshin@cicadas.surf>2024-07-06 21:33:01 -0500
commit9494ccb01b7d7e02ffe92e3a37341e47a2bbfa84 (patch)
tree18a922a6cf583a1c037b7ee00863d7dcf5c885db /site/home.lisp
parenta95cdd714187903ed24e40804c449e8e4737f027 (diff)
Add: some more refinement of hypno pages88-user-home-page
Diffstat (limited to 'site/home.lisp')
-rw-r--r--site/home.lisp30
1 files changed, 15 insertions, 15 deletions
diff --git a/site/home.lisp b/site/home.lisp
index ebc644b..5efb5c8 100644
--- a/site/home.lisp
+++ b/site/home.lisp
@@ -5,18 +5,18 @@
:get :route ""
:returns "text/html"
:handle
- (page
- "V A M P I R E"
- (<div>
- ($vcenter
- (<div> (<h3> "hey " (user-name user))
- (<form> (@ :method "POST" :action (wknd:route-to 'destroy.session))
- (<button> (@ :type "submit") "Logout"))))
- (<div>
- (<form> (@ :method "POST" :action (wknd:route-to 'create.invite))
- (<p> "Initiate an invitation...")
- (<button> (@ :type "submit") "Bite Someone")))
- (<h2> "Outstanding inBites:")
- (apply #'<ul>
- (mapcar (lambda (i) (<li> (key i)))
- (invites-by-maker (user-with-name "alucard")))))))
+ (page "V A M P I R E"
+ (<div> ($ :width "100%")
+ (<navbar>)
+ (<div> ($ :height "70%" )
+ (<h3> "hey " (user-name user))
+ (<form> (@ :method "POST" :action (wknd:route-to 'create.invite))
+ (<p> "Initiate an invitation...")
+ (<submit> "Bite Someone"))
+ (<h2> "Outstanding inBites:")
+ (<invite-list> user)))))
+
+(defun <invite-list> (user)
+ (apply #'<ul>
+ (mapcar (lambda (i) (<li> (key i)))
+ (invites-by-maker user))))