Add auth-managed proxy UI improvements
This commit is contained in:
101
internal/assets/templates/login.html
Normal file
101
internal/assets/templates/login.html
Normal file
@ -0,0 +1,101 @@
|
||||
<!DOCTYPE html>
|
||||
<html data-theme="dark">
|
||||
<head>
|
||||
<title>Infinite-Noodles Login</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="/static/pub/bulma.min.css">
|
||||
<link rel="stylesheet" href="/static/pub/all.min.css">
|
||||
<style>
|
||||
body {
|
||||
min-height: 100vh;
|
||||
background-color: #000;
|
||||
color: #f5f5f5;
|
||||
}
|
||||
.banner-container {
|
||||
background-image: url("/static/pub/long-banner.jpg");
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
position: relative;
|
||||
flex: 1 1 auto;
|
||||
width: 100%;
|
||||
min-height: 50px;
|
||||
}
|
||||
img.banner {
|
||||
height: 50px;
|
||||
}
|
||||
.login-shell {
|
||||
min-height: calc(100vh - 52px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
.login-card {
|
||||
width: 100%;
|
||||
max-width: 440px;
|
||||
background: #111;
|
||||
border-radius: 18px;
|
||||
border: 1px solid #2f2f2f;
|
||||
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
|
||||
overflow: hidden;
|
||||
}
|
||||
.login-body {
|
||||
padding: 2rem;
|
||||
}
|
||||
.login-body .label,
|
||||
.login-body .help,
|
||||
.login-body p,
|
||||
.login-body strong {
|
||||
color: #f5f5f5;
|
||||
}
|
||||
.login-body .input {
|
||||
background: #1b1b1b;
|
||||
border-color: #3d3d3d;
|
||||
color: #f5f5f5;
|
||||
}
|
||||
.login-body .input::placeholder {
|
||||
color: #9a9a9a;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar is-fixed-top" role="navigation" aria-label="main navigation">
|
||||
<div class="navbar-brand">
|
||||
<img class="banner" src="/static/pub/logo.jpg"/>
|
||||
</div>
|
||||
<div class="banner-container"></div>
|
||||
</nav>
|
||||
<main class="login-shell">
|
||||
<section class="login-card">
|
||||
<div class="login-body">
|
||||
{{if .Error}}
|
||||
<article class="message is-danger">
|
||||
<div class="message-body">{{.Error}}</div>
|
||||
</article>
|
||||
{{end}}
|
||||
<form method="post" action="/login" autocomplete="off">
|
||||
<div class="field">
|
||||
<label class="label">Username</label>
|
||||
<div class="control has-icons-left">
|
||||
<input class="input" type="text" name="username" required autofocus>
|
||||
<span class="icon is-small is-left"><i class="fas fa-user"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label class="label">Password</label>
|
||||
<div class="control has-icons-left">
|
||||
<input class="input" type="password" name="password" required>
|
||||
<span class="icon is-small is-left"><i class="fas fa-lock"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<button class="button is-link is-fullwidth" type="submit">Login</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user