Skip to content
Snippets Groups Projects
Commit 1e00ef9f authored by Eugen Ciur's avatar Eugen Ciur
Browse files

pretty login view

parent 7651af44
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,11 @@
@import "./node";
@import "./nav/sidebar";
@import "./nav/topbar";
@import "./login.scss";
body {
background-color: #e9ecef;
}
main {
display: flex;
......
main.form-sign-in {
text-align: center;
display: flex;
align-items: center;
justify-content: center;
margin: auto;
.card {
width: 400px;
}
}
\ No newline at end of file
<form {{on "submit" this.authenticate}}>
<main class="form-sign-in">
<div>
<div class="papermerge-logo">
<img src="/assets/images/logo_120x116_wbg.png">
</div>
<label for="identification">Login</label>
<input id='identification' placeholder="Enter Login" value={{this.identification}} {{on "change" this.updateIdentification}}>
<div class="card px-2 py-3">
<div class="card-body">
<label for="password">Password</label>
<input id='password' placeholder="Enter Password" value={{this.password}} {{on "change" this.updatePassword}}>
<p class="card-title text-secondary">
Please sign in to start your session
</p>
<button type="submit">Login</button>
{{#if this.errorMessage}}
<p>{{this.errorMessage}}</p>
{{/if}}
<form {{on "submit" this.authenticate}}>
</form>
<div class="mb-3 form-floating">
<input id='identification'
class="form-control"
placeholder="Username or email"
value={{this.identification}}
{{on "change" this.updateIdentification}}>
<label for="identification" class="form-label">Username or Email</label>
</div>
<div class="mb-3 form-floating">
<input id='password'
class="form-control"
placeholder="Enter Password"
type="password"
value={{this.password}}
{{on "change" this.updatePassword}}>
<label for="password" class="form-label">Password</label>
</div>
<button
class="btn btn-block btn-success btn-lg w-100"
type="submit">Sign In</button>
<div class="mt-3">
<input type="checkbox" id="remember" name="remember">
<label class="font-weight-normal my-2" for="remember">
Remember Me
</label>
</div>
{{#if this.errorMessage}}
<p class="text-danger">{{this.errorMessage}}</p>
{{/if}}
</form>
</div> <!-- card-body -->
</div> <!-- card -->
</div>
</main>
public/assets/images/logo_120x116_wbg.png

5.7 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment