diff options
Diffstat (limited to 'web/templates')
-rw-r--r-- | web/templates/login.html | 52 | ||||
-rw-r--r-- | web/templates/register.html | 52 |
2 files changed, 104 insertions, 0 deletions
diff --git a/web/templates/login.html b/web/templates/login.html new file mode 100644 index 0000000..88024e3 --- /dev/null +++ b/web/templates/login.html @@ -0,0 +1,52 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>Login · Perseus</title> + <link rel="stylesheet" href="https://andinus.nand.sh/static/style.css"> + <link rel="stylesheet" href="https://andinus.nand.sh/static/perseus/style.css"> + <link rel="icon" href="https://andinus.nand.sh/static/perseus/favicon.png" type="image/png"> + </head> + <body> + <div id="content"> + <h1 class="title">Perseus</h1>{{ if .SafeList }} + <ul>{{ range .SafeList }} + <li>{{ . }}</li>{{ end }} + </ul>{{end}} {{ if .List }} + <ul>{{ range .List }} + <li>{{ . }}</li>{{ end }} + </ul>{{end}} {{ if .Error }} + <ul class="error">{{ range .Error }} + <li>{{ . }}</li>{{ end }} + </ul>{{end}} {{ if .Success }} + <ul class="success">{{ range .Success }} + <li>{{ . }}</li>{{ end }} + </ul>{{end}} {{ if .Notice }} + <ul class="notice">{{ range .Notice }} + <li>{{ . }}</li>{{ end }} + </ul>{{end}} + <form action="./login" method="post"> + <h4>Username</h4> + <input type="text" name="username" required> + <h4>Password</h4> + <input type="password" name="password" required> + <input type="submit" name="submit" value="Login!"> + </form> + </div> + <div id="postamble" class="status"> + <p class="postamble"> + <a href="https://andinus.nand.sh/">Andinus</a> + / + <a href="https://andinus.nand.sh/perseus">Perseus</a> + <span style="float:right"> + Perseus {{ if .Version}} {{ . }} {{ end }} + / + <a href="https://tildegit.org/andinus/perseus"> + Source Code + </a> + </span> + </p> + </div> + </body> +</html> diff --git a/web/templates/register.html b/web/templates/register.html new file mode 100644 index 0000000..998e012 --- /dev/null +++ b/web/templates/register.html @@ -0,0 +1,52 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>Register · Perseus</title> + <link rel="stylesheet" href="https://andinus.nand.sh/static/style.css"> + <link rel="stylesheet" href="https://andinus.nand.sh/static/perseus/style.css"> + <link rel="icon" href="https://andinus.nand.sh/static/perseus/favicon.png" type="image/png"> + </head> + <body> + <div id="content"> + <h1 class="title">Perseus</h1>{{ if .SafeList }} + <ul>{{ range .SafeList }} + <li>{{ . }}</li>{{ end }} + </ul>{{end}} {{ if .List }} + <ul>{{ range .List }} + <li>{{ . }}</li>{{ end }} + </ul>{{end}} {{ if .Error }} + <ul class="error">{{ range .Error }} + <li>{{ . }}</li>{{ end }} + </ul>{{end}} {{ if .Success }} + <ul class="success">{{ range .Success }} + <li>{{ . }}</li>{{ end }} + </ul>{{end}} {{ if .Notice }} + <ul class="notice">{{ range .Notice }} + <li>{{ . }}</li>{{ end }} + </ul>{{end}} + <form action="./register" method="post"> + <h4>Username</h4> + <input type="text" name="username" required> + <h4>Password</h4> + <input type="password" name="password" required> + <input type="submit" name="submit" value="Register!"> + </form> + </div> + <div id="postamble" class="status"> + <p class="postamble"> + <a href="https://andinus.nand.sh/">Andinus</a> + / + <a href="https://andinus.nand.sh/perseus">Perseus</a> + <span style="float:right"> + Perseus {{ if .Version}} {{ . }} {{ end }} + / + <a href="https://tildegit.org/andinus/perseus"> + Source Code + </a> + </span> + </p> + </div> + </body> +</html> |