diff --git a/BTCPayServer.Tests/SeleniumTests.cs b/BTCPayServer.Tests/SeleniumTests.cs index 191ee64a2..f1655a977 100644 --- a/BTCPayServer.Tests/SeleniumTests.cs +++ b/BTCPayServer.Tests/SeleniumTests.cs @@ -208,7 +208,7 @@ namespace BTCPayServer.Tests Assert.Contains("ReturnUrl", s.Driver.Url); s.Driver.Navigate().GoToUrl(invoiceUrl); Assert.Contains("ReturnUrl", s.Driver.Url); - + s.Driver.Navigate().GoToUrl(s.Link("/")); // When logged we should not be able to access store and invoice details var bob = s.RegisterNewUser(); s.Driver.Navigate().GoToUrl(storeUrl); @@ -252,7 +252,7 @@ namespace BTCPayServer.Tests await s.StartAsync(); s.Driver.Navigate().GoToUrl(s.Link("/api-access-request")); Assert.Contains("ReturnUrl", s.Driver.Url); - + s.Driver.Navigate().GoToUrl(s.Link("/")); var alice = s.RegisterNewUser(); var store = s.CreateNewStore().storeName; s.AddDerivationScheme(); diff --git a/BTCPayServer/Views/Account/Login.cshtml b/BTCPayServer/Views/Account/Login.cshtml index 4c4d88224..2272a73e6 100644 --- a/BTCPayServer/Views/Account/Login.cshtml +++ b/BTCPayServer/Views/Account/Login.cshtml @@ -1,54 +1,46 @@ @model LoginViewModel -@inject SignInManager SignInManager @inject BTCPayServer.HostedServices.CssThemeManager themeManager - @{ ViewData["Title"] = "Log in"; + Layout = "_WelcomeLayout.cshtml"; } -
-
-
-@section Scripts { - @await Html.PartialAsync("_ValidationScriptsPartial") -} + diff --git a/BTCPayServer/Views/Account/Register.cshtml b/BTCPayServer/Views/Account/Register.cshtml index 7be8bbca3..667dff7e7 100644 --- a/BTCPayServer/Views/Account/Register.cshtml +++ b/BTCPayServer/Views/Account/Register.cshtml @@ -1,62 +1,56 @@ @model RegisterViewModel @{ ViewData["Title"] = "Register"; + Layout = "_WelcomeLayout.cshtml"; } -
-
-
-@section Scripts { - @await Html.PartialAsync("_ValidationScriptsPartial") -} + diff --git a/BTCPayServer/Views/Account/_WelcomeLayout.cshtml b/BTCPayServer/Views/Account/_WelcomeLayout.cshtml new file mode 100644 index 000000000..12e329a0d --- /dev/null +++ b/BTCPayServer/Views/Account/_WelcomeLayout.cshtml @@ -0,0 +1,92 @@ +@model LoginViewModel +@inject BTCPayServer.HostedServices.CssThemeManager themeManager +@addTagHelper *, BundlerMinifier.TagHelpers +@{ + Layout = null; +} + + + + + + + + + @if (themeManager.DiscourageSearchEngines) + { + + } + @ViewData["Title"] + @* CSS *@ + + + + @* JS *@ + + + + +
+ + +
+
+
+ BTCPay Server +

Welcome to your BTCPay Server

+
+ +

Our supporters

+ +
+
+ @RenderBody() +
+
+
+
+ @await Html.PartialAsync("_ValidationScriptsPartial") + + diff --git a/BTCPayServer/wwwroot/img/btcpay-logo.svg b/BTCPayServer/wwwroot/img/btcpay-logo.svg new file mode 100644 index 000000000..15620b365 --- /dev/null +++ b/BTCPayServer/wwwroot/img/btcpay-logo.svg @@ -0,0 +1,97 @@ + +image/svg+xml \ No newline at end of file diff --git a/BTCPayServer/wwwroot/img/squarecrypto.svg b/BTCPayServer/wwwroot/img/squarecrypto.svg new file mode 100644 index 000000000..aaa9646d4 --- /dev/null +++ b/BTCPayServer/wwwroot/img/squarecrypto.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file