style register page with auth-card layout
apply the shared auth-shell + auth-card layout to the register template, mirroring the login page. ids and the #register-error element are preserved for the existing cypress auth tests.
This commit is contained in:
parent
a20d12177e
commit
8d38a092d8
1 changed files with 26 additions and 18 deletions
|
|
@ -7,24 +7,32 @@
|
|||
<link rel="stylesheet" href="/css/app.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Register</h1>
|
||||
<form id="register-form">
|
||||
<label>Email
|
||||
<input type="email" id="email" name="email" required />
|
||||
</label>
|
||||
<label>Password (min 8 characters)
|
||||
<input
|
||||
type="password"
|
||||
id="password"
|
||||
name="password"
|
||||
minlength="8"
|
||||
required
|
||||
/>
|
||||
</label>
|
||||
<button type="submit">Register</button>
|
||||
</form>
|
||||
<p id="register-error" hidden></p>
|
||||
<p><a href="/login">Already have an account? Login</a></p>
|
||||
<main class="auth-shell">
|
||||
<div class="auth-card stack">
|
||||
<h1>Register</h1>
|
||||
<form id="register-form" class="stack">
|
||||
<label>Email
|
||||
<input type="email" id="email" name="email" required />
|
||||
</label>
|
||||
<label>Password (min 8 characters)
|
||||
<input
|
||||
type="password"
|
||||
id="password"
|
||||
name="password"
|
||||
minlength="8"
|
||||
required
|
||||
/>
|
||||
</label>
|
||||
<button type="submit" class="btn btn-primary full-width">
|
||||
Register
|
||||
</button>
|
||||
</form>
|
||||
<p id="register-error" class="error" hidden></p>
|
||||
<p class="muted">
|
||||
<a href="/login">Already have an account? Login</a>
|
||||
</p>
|
||||
</div>
|
||||
</main>
|
||||
<script src="/js/auth.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue