summaryrefslogtreecommitdiff
path: root/login.lisp
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-10-27 07:52:50 -0500
committerColin Okay <colin@cicadas.surf>2022-10-27 07:52:50 -0500
commit0b21729661ed1905eb886b1eba6f8b062305c9a3 (patch)
treec3071c5238d1dc174bfaf42ccad59a88d710f043 /login.lisp
parent52c0408569a0b1de932d52e71fee5fb0163782e2 (diff)
Modify+Add: Added pw hashing stuff to user. Add login file.
Diffstat (limited to 'login.lisp')
-rw-r--r--login.lisp21
1 files changed, 21 insertions, 0 deletions
diff --git a/login.lisp b/login.lisp
new file mode 100644
index 0000000..2e7c652
--- /dev/null
+++ b/login.lisp
@@ -0,0 +1,21 @@
+;;;; login.lisp
+
+(in-package :vampire)
+
+(defun login-page (body)
+ (with-clog-create body
+ (div ()
+ (div ()
+ (section (:h3 :content "LOGIN"))
+ (form ()
+ (form-element (:text :bind name-input))
+ (br ())
+ (form-element (:password :bind pw-input))
+ (br ())
+ (button (:bind btn :content "Click here to log in"))))
+ (div ()
+ (:p ()
+ (:a (:link "/new-account" :content "Create an account")))))
+ (setf (place-holder name-input) "Name"
+ (place-holder pw-input) "Password")))
+