Carbon/src/login.pug

33 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2020-10-19 08:16:16 +00:00
doctype html
html
2020-10-21 05:23:44 +00:00
head
meta(charset="utf-8")
title Carbon
meta(name="viewport" content="width=device-width, initial-scale=1")
2020-10-21 06:33:36 +00:00
link(rel="stylesheet" type="text/css" href=getStatic("/sass/login.sass"))
script(type="module" src=getStatic("/js/login.js"))
2020-10-20 18:22:13 +00:00
2020-10-21 05:23:44 +00:00
body
main.main
.center-login-container
2020-10-21 07:40:24 +00:00
h1 Welcome to Carbon!
2020-10-21 06:33:36 +00:00
form.login-form(method="post" onsubmit="return false")#form
2020-10-21 05:23:44 +00:00
.data-input
.form-input-container
2020-10-21 06:33:36 +00:00
label(for="username") Username
input(type="text" name="username" autocomplete="username" placeholder="@username:server.tld" pattern="^@?[a-z0-9._=/-]+(?::[a-zA-Z0-9.:\\[\\]-]+)?$" required)#username
2020-10-21 05:23:44 +00:00
.form-input-container
label(for="password") Password
input(name="password" autocomplete="current-password" type="password" required)#password
.form-input-container
label(for="homeserver") Homeserver
2020-10-21 06:33:36 +00:00
input(type="text" name="homeserver" value="matrix.org" placeholder="matrix.org" required)#homeserver
2020-10-21 05:23:44 +00:00
2020-10-21 07:23:51 +00:00
#feedback
2020-10-21 05:23:44 +00:00
.form-input-container
2020-10-21 06:33:36 +00:00
input(type="submit" value="Log in")#submit
2020-10-21 07:23:51 +00:00