diff --git a/fs/templates/auth/register.html b/fs/templates/auth/register.html new file mode 100644 index 0000000..46210ab --- /dev/null +++ b/fs/templates/auth/register.html @@ -0,0 +1,6 @@ +
+ + + + +
\ No newline at end of file diff --git a/fs/templates/base.html b/fs/templates/base.html new file mode 100644 index 0000000..0a4c143 --- /dev/null +++ b/fs/templates/base.html @@ -0,0 +1,12 @@ + + + + + + {{ title }} - Dragon Knight + + + + {{{ content }}} + + \ No newline at end of file diff --git a/moonshark b/moonshark index 56ad4d8..d597451 100755 Binary files a/moonshark and b/moonshark differ diff --git a/public/css/style.css b/public/css/style.css new file mode 100644 index 0000000..21052c1 --- /dev/null +++ b/public/css/style.css @@ -0,0 +1,10 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + color: white; + background-color: #333; +} \ No newline at end of file diff --git a/routes/auth/login/get.lua b/routes/auth/login/get.lua new file mode 100644 index 0000000..e69de29 diff --git a/routes/auth/login/post.lua b/routes/auth/login/post.lua new file mode 100644 index 0000000..e69de29 diff --git a/routes/auth/register/get.lua b/routes/auth/register/get.lua new file mode 100644 index 0000000..ec340b3 --- /dev/null +++ b/routes/auth/register/get.lua @@ -0,0 +1,6 @@ +local base_template = fs.read("templates/base.html") +local login_form = fs.read("templates/auth/register.html") +return send.html(render(base_template, { + title = "Register", + content = login_form +})) \ No newline at end of file diff --git a/routes/auth/register/post.lua b/routes/auth/register/post.lua new file mode 100644 index 0000000..e69de29