From a1e15f3deb7ec2f2e7cfa44dd81be68ffddcfff4 Mon Sep 17 00:00:00 2001 From: Bad Date: Mon, 19 Oct 2020 10:16:16 +0200 Subject: [PATCH] Add login pug file --- .gitignore | 3 ++- spec.js | 5 +++++ src/login.pug | 21 +++++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/login.pug diff --git a/.gitignore b/.gitignore index ad113a9..5cac20b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,10 @@ # Generated files node_modules +build # Editor artifacts .vscode *~ \#*# .#* -._* \ No newline at end of file +._* diff --git a/spec.js b/spec.js index 0b119e2..0ebbc17 100644 --- a/spec.js +++ b/spec.js @@ -108,5 +108,10 @@ module.exports = [ type: "pug", source: "/home.pug", target: "/index.html" + }, + { + type: "pug", + source: "/login.pug", + target: "/login.html" } ] diff --git a/src/login.pug b/src/login.pug new file mode 100644 index 0000000..105b6bd --- /dev/null +++ b/src/login.pug @@ -0,0 +1,21 @@ +doctype html +html + head + meta(charset="utf-8") + link(rel="stylesheet" type="text/css" href=getStatic("/sass/main.sass")) + title Carbon + body + main.main + form + div + label(for="login") Username + input(type="text" name="login" autocomplete="username" placeholder="example:matrix.org" required)#login + div + label(for="password") Password + input(type="text" name="password" autocomplete="current-password" required)#password + div + + label(for="homeserver") Homeserver + input(type="text" name="homeserver" value="matrix.org" required)#homeserver + div + input(type="submit" value="Login")