source: Application/ocrent/Views/Identity/Login.cshtml

Last change on this file was f5f7c24, checked in by 192011 <mk.snicker@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 2.3 KB
Line 
1@model Models.DataTransferObjects.LoginDTO
2
3@{
4 ViewData["Title"] = "Login";
5}
6
7
8
9<div class="auth-wrapper">
10 <div class="auth d-flex justify-content-center align-items-center flex-column">
11 <h3>Sign in</h3>
12 <span class="text-muted">Enter your credentials</span>
13 <form method="post" asp-action="Login" asp-controller="Identity" asp-antiforgery="true">
14 <div asp-validation-summary="All" class="text-danger"></div>
15 <div class="form-group">
16 <label asp-for="Email">Email</label>
17 <input asp-for="Email" autocomplete="off" class="form-control" />
18 <span asp-validation-for="Email" class="text-danger"></span>
19 </div>
20 <div class="form-group">
21 <label asp-for="Password">Password</label>
22 <input type="password" asp-for="Password" class="form-control" />
23 <span asp-validation-for="Password" class="text-danger"></span>
24 </div>
25
26 <button type="submit" class="btn btn-primary mt-2">Login</button>
27 </form>
28 <div class="mt-2">
29 <p>
30 Don't have an account? @Html.ActionLink("Sign up", "Register", "Identity")
31 </p>
32 </div>
33 </div>
34</div>
35
36<style>
37 auth-wrapper {
38 min-height: calc(100vh - 100px);
39 width: 100%;
40 display: flex;
41 justify-content: center;
42 align-items: center;
43 }
44
45 .auth {
46 padding: 50px;
47 width: 500px;
48 box-shadow: 0 0 2px 1px #f1f1f1;
49 margin: 25px auto;
50 color: white;
51 border-radius: 15px;
52 }
53
54 .auth input[type="text"], .auth input[type="password"], .auth input[type="submit"] {
55 display: block;
56 padding: 10px;
57 margin: 15px auto;
58 min-width: 250px;
59 }
60
61 .auth input[type="checkbox"] {
62 margin-left: 15px;
63 }
64
65 .auth input[type="submit"] {
66 background-color: cornflowerblue;
67 color: white;
68 }
69
70 .auth input[type="submit"]:hover {
71 opacity: 0.9;
72 }
73
74 .auth span {
75 margin-bottom: 30px;
76 }
77</style>
Note: See TracBrowser for help on using the repository browser.