Created Login Page and update bootstrap files to allow for dark theme
This commit is contained in:
@ -1,8 +1,43 @@
|
||||
@{
|
||||
ViewData["Title"] = "Home Page";
|
||||
ViewData["Title"] = "Welcome";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h1 class="display-4">Welcome</h1>
|
||||
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
|
||||
<div class="row">
|
||||
|
||||
<div class="card-body col-md-6">
|
||||
<div class="container jumbotron">
|
||||
<h3>AutoRouter Login</h3>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<form method="post" asp-controller="Home" asp-action="Login">
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" placeholder="E-Mail" name="email" value="@TempData["email"]">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="password" class="form-control" placeholder="Password" name="password">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-secondary">Login</button>
|
||||
|
||||
@{
|
||||
if (TempData["Error"] != null)
|
||||
{//If an error has been flagged, information will be displayed to the user
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<div class="alert alert-danger">
|
||||
<strong>Warning!</strong> @TempData["Error"] <button type='button' class='close' data-dismiss='alert' aria-hidden='true' />×
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body bg-warning col-md-6">
|
||||
<img src="/images/MainImage.png" width="100%" height="100%">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user