Add username/password auth and login UI
This commit is contained in:
@@ -9,11 +9,30 @@
|
||||
<meta name="app-base" content="">
|
||||
</head>
|
||||
<body>
|
||||
<section class="card hidden" id="auth-card">
|
||||
<div class="stack horizontal">
|
||||
<button class="ghost active" data-auth-tab="login" type="button">Log in</button>
|
||||
<button class="ghost" data-auth-tab="register" type="button">Register</button>
|
||||
</div>
|
||||
<form id="login-form" class="stack auth-form" data-mode="login">
|
||||
<input id="login-username" name="username" maxlength="64" placeholder="Username" autocomplete="username" required />
|
||||
<input id="login-password" name="password" type="password" placeholder="Password" autocomplete="current-password" required />
|
||||
<button type="submit">Log in</button>
|
||||
</form>
|
||||
<form id="register-form" class="stack auth-form hidden" data-mode="register">
|
||||
<input id="register-username" name="username" maxlength="64" placeholder="Username" autocomplete="username" required />
|
||||
<input id="register-password" name="password" type="password" placeholder="Password" autocomplete="new-password" required />
|
||||
<input id="register-displayName" name="displayName" maxlength="64" placeholder="Display name (shows to group)" />
|
||||
<button type="submit">Create account</button>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<div class="status-bar">
|
||||
<div class="name-bar">
|
||||
<label for="name-input" class="label">Name</label>
|
||||
<input id="name-input" maxlength="64" placeholder="Pick a name" />
|
||||
<button id="save-name" class="ghost">Save</button>
|
||||
<button id="logout" class="ghost">Logout</button>
|
||||
<span class="hint warning hidden" id="name-warning">Name required</span>
|
||||
</div>
|
||||
<div class="phase-bar">
|
||||
|
||||
Reference in New Issue
Block a user