feat: replace Bootstrap with custom CSS and add profile page
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- Add self-hosted style.css replacing Bootstrap CDN dependency - Add profile.html with tabbed view (account info, emails/aliases, API token) - Refactor login handler to pass structured data to template instead of building HTML strings - Add brand-name and brand-logo flags/env vars for UI customization - Update CSP to allow brand logo domain and remove CDN references - Update all templates to pass template vars to header/footer and use new CSS classes Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
910dd7b47a
commit
99def55e80
12 changed files with 796 additions and 107 deletions
|
|
@ -1,18 +1,21 @@
|
|||
{{template "header"}}
|
||||
<h1 class="display-4">Sign in <small class="text-muted">Don't have an account? <a href="/register">Create one!</a></small></h1>
|
||||
{{template "header" .}}
|
||||
<h1 class="page-title">Sign in</h1>
|
||||
<p class="page-subtitle">Don't have an account? <a href="/register">Create one!</a></p>
|
||||
|
||||
<form method="post" action="login">
|
||||
{{if .error}}<div class="alert alert-danger" role="alert">{{.error}}</div>{{end}}
|
||||
<div class="form-group">
|
||||
{{if .error}}<div class="alert alert-error" role="alert">{{.error}}</div>{{end}}
|
||||
<div class="form-field">
|
||||
<input name="login" required="" class="form-control" id="input_0" type="text" placeholder="Login" autofocus>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
<input name="password" required="" class="form-control" id="input_1" type="password" placeholder="Current password">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form-field">
|
||||
<altcha-widget challengeurl="altcha-challenge"></altcha-widget>
|
||||
</div>
|
||||
<button class="btn btn-primary" type="submit">Sign in</button>
|
||||
<a href="/lost" class="btn btn-outline-secondary">Forgot your password?</a>
|
||||
</form>
|
||||
{{template "footer"}}
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-primary" type="submit">Sign in</button>
|
||||
<a href="/lost" class="btn btn-secondary">Forgot your password?</a>
|
||||
</div>
|
||||
</form>
|
||||
{{template "footer" .}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue