Initial Commit
This commit is contained in:
19
templates/base.html
Normal file
19
templates/base.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@1.0.2/css/bulma.min.css">
|
||||
<title>Registration for #(instURL.Host)</title>
|
||||
#include("?head")
|
||||
</head>
|
||||
<body>
|
||||
<section class="hero is-fullheight is-dark">
|
||||
<div class="hero-body">
|
||||
<main class="container">
|
||||
#macro("content")
|
||||
</main>
|
||||
</div>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
9
templates/error.html
Normal file
9
templates/error.html
Normal file
@@ -0,0 +1,9 @@
|
||||
#macro("content"):
|
||||
<p class="has-text-danger has-text-centered">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24"><g fill="currentColor"><path d="M16.34 9.322a1 1 0 1 0-1.364-1.463l-2.926 2.728L9.322 7.66A1 1 0 0 0 7.86 9.024l2.728 2.926l-2.927 2.728a1 1 0 1 0 1.364 1.462l2.926-2.727l2.728 2.926a1 1 0 1 0 1.462-1.363l-2.727-2.926z"/><path fill-rule="evenodd" d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12m11 9a9 9 0 1 1 0-18a9 9 0 0 1 0 18" clip-rule="evenodd"/></g></svg>
|
||||
</p>
|
||||
<p class="title has-text-centered has-text-danger">Something went wrong :(</p>
|
||||
<p class="subtitle has-text-centered">#(errMsg)</p>
|
||||
#!macro
|
||||
|
||||
#include("base.html")
|
||||
34
templates/form.html
Normal file
34
templates/form.html
Normal file
@@ -0,0 +1,34 @@
|
||||
#macro("content"):
|
||||
<p class="title">Register for #(instURL.Host)</p>
|
||||
<form class="form" method="post" action="/register">
|
||||
<div class="field">
|
||||
<label class="label" for="username">Username</label>
|
||||
<div class="control">
|
||||
<input class="input" id="username" name="username" placeholder="hello-world">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="label" for="display_name">Display Name</label>
|
||||
<div class="control">
|
||||
<input class="input" id="display_name" name="display_name" placeholder="Hello World :3">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="label" for="password">Password</label>
|
||||
<div class="control">
|
||||
<input class="input" id="password" name="password" type="password">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field is-display-none">
|
||||
<label class="label" for="nothing">Nothing</label>
|
||||
<div class="control">
|
||||
<input class="input" id="nothing" name="nothing">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<button class="button is-primary is-fullwidth" type="submit">Register</button>
|
||||
</div>
|
||||
</form>
|
||||
#!macro
|
||||
|
||||
#include("base.html")
|
||||
9
templates/success.html
Normal file
9
templates/success.html
Normal file
@@ -0,0 +1,9 @@
|
||||
#macro("content"):
|
||||
<p class="has-text-primary has-text-centered">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24"><g fill="currentColor"><path d="M10.243 16.314L6 12.07l1.414-1.414l2.829 2.828l5.656-5.657l1.415 1.415z"/><path fill-rule="evenodd" d="M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12m11 9a9 9 0 1 1 0-18a9 9 0 0 1 0 18" clip-rule="evenodd"/></g></svg>
|
||||
</p>
|
||||
<p class="title has-text-centered has-text-primary">Welcome, #(dispName)!</p>
|
||||
<p class="subtitle has-text-centered">Your account has been created successfully. You can now log in from any Matrix client!</p>
|
||||
#!macro
|
||||
|
||||
#include("base.html")
|
||||
Reference in New Issue
Block a user