Auth: prettier ui
diff --git a/core/auth/ui/templates/consent.html b/core/auth/ui/templates/consent.html
index 9131e99..1eb4a1e 100644
--- a/core/auth/ui/templates/consent.html
+++ b/core/auth/ui/templates/consent.html
@@ -2,20 +2,20 @@
<html lang="en">
<head>
<meta charset="utf-8" />
+ <link rel="stylesheet" type="text/css" href="/static/main.css?v=0.0.1">
<title>Consent</title>
</head>
<body>
- <a href="/">whoami</a>
- <a href="/login">login</a>
- <a href="/logout">logout</a>
- <a href="/registration">registration</a><br/>
- <form action="" method="POST">
- {{range .}}
- <input type="checkbox" name="scope" value="{{.}}" />{{.}}<br />
- {{end}}
- <input type="submit" name="allow" value="Allow" />
- <input type="submit" name="reject" value="Reject" />
- </form>
+ <div class="main">
+ <form action="" method="POST">
+ {{range .}}
+ <label><input type="checkbox" name="scope" value="{{.}}" checked />{{.}}</label>
+ {{end}}
+ <input type="submit" name="allow" value="Allow" />
+ <input type="submit" name="reject" value="Reject" />
+ <a href="/logout">logout</a>
+ </form>
+ </div>
</body>
</html>
diff --git a/core/auth/ui/templates/login.html b/core/auth/ui/templates/login.html
index b5f73db..285d936 100644
--- a/core/auth/ui/templates/login.html
+++ b/core/auth/ui/templates/login.html
@@ -2,21 +2,19 @@
<html lang="en">
<head>
<meta charset="utf-8" />
+ <link rel="stylesheet" type="text/css" href="/static/main.css?v=0.0.1">
<title>Login</title>
</head>
<body>
- <a href="/">whoami</a>
- <a href="/login">login</a>
- <a href="/logout">logout</a>
- <a href="/registration">registration</a><br/>
- <form action="" method="POST">
- <label for="username">Username:</label><br />
- <input type="text" name="username" autofocus /><br />
- <label for="password">Password:</label><br />
- <input type="password" name="password" /><br />
- <input type="hidden" name="csrf_token" value="{{.}}" /><br />
- <input type="submit" value="Login" />
- </form>
+ <div class="main">
+ <form action="" method="POST">
+ <input class="field" type="text" name="username" placeholder="Username" autofocus />
+ <input class="field" type="password" name="password" placeholder="Password" />
+ <input type="submit" value="Sign In" />
+ <input type="hidden" name="csrf_token" value="{{.}}" />
+ <a href="/registration">Create Account</a>
+ </form>
+ </div>
</body>
</html>
diff --git a/core/auth/ui/templates/registration.html b/core/auth/ui/templates/registration.html
index 9d3c0fd..bb2a357 100644
--- a/core/auth/ui/templates/registration.html
+++ b/core/auth/ui/templates/registration.html
@@ -2,21 +2,19 @@
<html lang="en">
<head>
<meta charset="utf-8" />
- <title>Create New Account</title>
+ <link rel="stylesheet" type="text/css" href="/static/main.css?v=0.0.1">
+ <title>Create Account</title>
</head>
<body>
- <a href="/">whoami</a>
- <a href="/login">login</a>
- <a href="/logout">logout</a>
- <a href="/registration">registration</a><br/>
- <form action="" method="POST">
- <label for="username">Username:</label><br />
- <input type="text" name="username" autofocus /><br />
- <label for="password">Password:</label><br />
- <input type="password" name="password" /><br />
- <input type="hidden" name="csrf_token" value="{{.}}" /><br />
- <input type="submit" value="Create New Account" />
- </form>
+ <div class="main">
+ <form action="" method="POST">
+ <input class="field" type="text" name="username" placeholder="Username" autofocus />
+ <input class="field" type="password" name="password" placeholder="Password" />
+ <input type="submit" value="Create Account" />
+ <input type="hidden" name="csrf_token" value="{{.}}" />
+ <a href="/login">Sign In</a>
+ </form>
+ </div>
</body>
</html>
diff --git a/core/auth/ui/templates/whoami.html b/core/auth/ui/templates/whoami.html
index 58a007b..70e36ab 100644
--- a/core/auth/ui/templates/whoami.html
+++ b/core/auth/ui/templates/whoami.html
@@ -2,13 +2,11 @@
<html lang="en">
<head>
<meta charset="utf-8" />
- <title>Create New Account</title>
+ <link rel="stylesheet" type="text/css" href="/static/main.css?v=0.0.1">
+ <title>Hello {{.}}!</title>
</head>
<body>
- <a href="/">whoami</a>
- <a href="/login">login</a>
<a href="/logout">logout</a>
- <a href="/registration">registration</a><br/>
Hello {{.}}!
</body>
</html>