Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor signed out action views (login, register, etc.) (#3333)
* Refactor signed out action views (login, register, etc.) Extract common layout and some more cleanups. * Optimize supporters display on mobile * Optimize footer display on mobile
- Loading branch information
1 parent
c338846
commit 6a20d90
Showing
9 changed files
with
191 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
@{ | ||
Layout = "_LayoutSimple"; | ||
ViewBag.ShowLeadText ??= false; | ||
} | ||
|
||
@section PageHeadContent { | ||
<style> | ||
.account-form { | ||
max-width: 35em; | ||
margin: 0 auto var(--btcpay-space-xl); | ||
padding: 2rem; | ||
background: var(--btcpay-bg-tile); | ||
border-radius: var(--btcpay-border-radius); | ||
} | ||
.account-form h4 { | ||
margin-bottom: 1.5rem; | ||
} | ||
</style> | ||
@await RenderSectionAsync("PageHeadContent", false) | ||
} | ||
|
||
@section PageFootContent { | ||
<partial name="_ValidationScriptsPartial" /> | ||
@await RenderSectionAsync("PageFootContent", false) | ||
} | ||
|
||
<div class="row justify-content-center mb-2"> | ||
<div class="col text-center"> | ||
<a asp-controller="UIHome" asp-action="Index" tabindex="-1"> | ||
<img src="~/img/btcpay-logo.svg" alt="BTCPay Server" class="mb-4" height="70" asp-append-version="true"/> | ||
</a> | ||
|
||
<h1 class="h2 mb-3">Welcome to your BTCPay Server</h1> | ||
@if (ViewBag.ShowLeadText) | ||
{ | ||
<p class="lead"> | ||
<span class="d-sm-block">A self-hosted, open-source cryptocurrency payment processor.</span> | ||
<span class="d-sm-block">It is secure, private, censorship-resistant and free.</span> | ||
</p> | ||
} | ||
|
||
<partial name="_StatusMessage"/> | ||
</div> | ||
</div> | ||
|
||
<div class="account-form"> | ||
<h4>@ViewData["Title"]</h4> | ||
@RenderBody() | ||
</div> | ||
|
||
<div class="row justify-content-center mt-5"> | ||
<div class="col"> | ||
<partial name="_BTCPaySupporters"/> | ||
</div> | ||
</div> | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,26 @@ | ||
@model ForgotPasswordViewModel | ||
@{ | ||
ViewData["Title"] = "Forgot your password?"; | ||
Layout = "_LayoutSimple"; | ||
Layout = "_LayoutSignedOut"; | ||
} | ||
|
||
<partial name="_StatusMessage" /> | ||
<p> | ||
We all forget passwords every now and then. Just provide email address tied to | ||
your account and we'll start the process of helping you recover your account. | ||
</p> | ||
|
||
<div class="row justify-content-center"> | ||
<div class="col-md-6 section-heading"> | ||
<h3>@ViewData["Title"]</h3> | ||
<hr class="primary"> | ||
<form asp-action="ForgotPassword" method="post"> | ||
<div asp-validation-summary="All" class="text-danger"></div> | ||
<div class="form-group"> | ||
<label asp-for="Email" class="form-label"></label> | ||
<input asp-for="Email" class="form-control" /> | ||
<span asp-validation-for="Email" class="text-danger"></span> | ||
</div> | ||
</div> | ||
<div class="row justify-content-center"> | ||
<div class="col-md-6"> | ||
<form asp-action="ForgotPassword" method="post"> | ||
<h4>Start password reset</h4> | ||
<p> | ||
We all forget passwords every now and then. Just provide email address tied to | ||
your account and we'll start the process of helping you recover your account. | ||
</p> | ||
<div asp-validation-summary="All" class="text-danger"></div> | ||
<div class="form-group"> | ||
<label asp-for="Email" class="form-label"></label> | ||
<input asp-for="Email" class="form-control" /> | ||
<span asp-validation-for="Email" class="text-danger"></span> | ||
</div> | ||
<button type="submit" class="btn btn-primary">Submit</button> | ||
</form> | ||
<div class="form-group mt-4"> | ||
<button type="submit" class="btn btn-primary btn-lg w-100">Submit</button> | ||
</div> | ||
</div> | ||
</form> | ||
|
||
@section PageFootContent { | ||
<partial name="_ValidationScriptsPartial" /> | ||
} | ||
<p class="text-center mt-2 mb-0"> | ||
<a id="Login" style="font-size:1.15rem" asp-action="Login" asp-route-returnurl="@ViewData["ReturnUrl"]">Log in</a> | ||
</p> |
14 changes: 6 additions & 8 deletions
14
BTCPayServer/Views/UIAccount/ForgotPasswordConfirmation.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
@{ | ||
ViewData["Title"] = "Email sent!"; | ||
Layout = "_LayoutSignedOut"; | ||
} | ||
|
||
<div class="row"> | ||
<div class="col-md-4"> | ||
<h4>@ViewData["Title"]</h4> | ||
<p> | ||
Please check your email to reset your password. | ||
</p> | ||
</div> | ||
</div> | ||
<p>Please check your email to reset your password.</p> | ||
|
||
<p class="text-center mt-2 mb-0"> | ||
<a id="Login" style="font-size:1.15rem" asp-action="Login" asp-route-returnurl="@ViewData["ReturnUrl"]">Log in</a> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.