diff --git a/BTCPayServer/Views/Shared/_LayoutSignedOut.cshtml b/BTCPayServer/Views/Shared/_LayoutSignedOut.cshtml
index ae3453fa7..a3b253177 100644
--- a/BTCPayServer/Views/Shared/_LayoutSignedOut.cshtml
+++ b/BTCPayServer/Views/Shared/_LayoutSignedOut.cshtml
@@ -13,10 +13,12 @@
background: var(--btcpay-bg-tile);
border-radius: var(--btcpay-border-radius);
}
-
.account-form h4 {
margin-bottom: 1.5rem;
}
+ .main-logo { height: 4rem; width: 18rem; }
+ .main-logo.main-logo-btcpay { height: 4.5rem; width: 2.5rem; }
+ .main-logo-btcpay .main-logo-btcpay--large { display: none; }
@await RenderSectionAsync("PageHeadContent", false)
}
@@ -28,8 +30,8 @@
-
-
+
+
Welcome to your BTCPay Server
diff --git a/BTCPayServer/Views/UIAccount/Login.cshtml b/BTCPayServer/Views/UIAccount/Login.cshtml
index 63c20d2bd..da11f7aa5 100644
--- a/BTCPayServer/Views/UIAccount/Login.cshtml
+++ b/BTCPayServer/Views/UIAccount/Login.cshtml
@@ -1,4 +1,3 @@
-@using BTCPayServer.Abstractions.Contracts
@model LoginViewModel
@inject BTCPayServer.Services.PoliciesSettings PoliciesSettings
@{
diff --git a/BTCPayServer/Views/UIError/Handle.cshtml b/BTCPayServer/Views/UIError/Handle.cshtml
index aab073c7e..9c6308c96 100644
--- a/BTCPayServer/Views/UIError/Handle.cshtml
+++ b/BTCPayServer/Views/UIError/Handle.cshtml
@@ -1,35 +1,17 @@
@using System.Net
+@using System.Text.RegularExpressions
@model int?
@{
+ Layout = "_LayoutError";
ViewData["Title"] = "Generic Error occurred";
if (Model.HasValue)
{
var httpCode = (HttpStatusCode)Model.Value;
- ViewData["Title"] = $"{(int)httpCode} - {httpCode.ToString()}";
+ var name = Regex.Replace(httpCode.ToString(), @"(\B[A-Z])", @" $1");
+ ViewData["Title"] = $"{(int)httpCode} - {name}";
}
}
-
-
-
-
-
-
-
@ViewData["Title"]
-
-
-
-
- Generic error occurred, HTTP Code: @Model
-
- Consult server log for more details.
-
- Navigate back to home.
-
-
-
-
+
A generic error occurred (HTTP Code: @Model)
+
Please consult the server log for more details.
+
Navigate back to home
diff --git a/BTCPayServer/Views/UIError/_LayoutError.cshtml b/BTCPayServer/Views/UIError/_LayoutError.cshtml
index 3fe8fb9a1..b706fc504 100644
--- a/BTCPayServer/Views/UIError/_LayoutError.cshtml
+++ b/BTCPayServer/Views/UIError/_LayoutError.cshtml
@@ -2,30 +2,24 @@
Layout = "_LayoutSimple";
}
-
-
-
-
-
+
-
@ViewData["Title"]
-
-
-
-
-
-
-
-
- @RenderBody()
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
@ViewData["Title"]
+
+
+ @RenderBody()
+
+
+
+
diff --git a/BTCPayServer/Views/UIInvoice/InvoiceReceipt.cshtml b/BTCPayServer/Views/UIInvoice/InvoiceReceipt.cshtml
index d4d4713de..422cdaedb 100644
--- a/BTCPayServer/Views/UIInvoice/InvoiceReceipt.cshtml
+++ b/BTCPayServer/Views/UIInvoice/InvoiceReceipt.cshtml
@@ -175,7 +175,7 @@
@if (!Theme.CustomTheme)
{
-
+
}
diff --git a/BTCPayServer/Views/UIPaymentRequest/ViewPaymentRequest.cshtml b/BTCPayServer/Views/UIPaymentRequest/ViewPaymentRequest.cshtml
index ecaf3f264..7d75575b0 100644
--- a/BTCPayServer/Views/UIPaymentRequest/ViewPaymentRequest.cshtml
+++ b/BTCPayServer/Views/UIPaymentRequest/ViewPaymentRequest.cshtml
@@ -381,7 +381,7 @@
@if (!Theme.CustomTheme)
{
-
+
}
diff --git a/BTCPayServer/Views/UIPullPayment/ViewPullPayment.cshtml b/BTCPayServer/Views/UIPullPayment/ViewPullPayment.cshtml
index 5532e940c..f99d23b57 100644
--- a/BTCPayServer/Views/UIPullPayment/ViewPullPayment.cshtml
+++ b/BTCPayServer/Views/UIPullPayment/ViewPullPayment.cshtml
@@ -230,7 +230,7 @@
@if (!Theme.CustomTheme)
{
-
+
}
diff --git a/BTCPayServer/Views/UIServer/Theme.cshtml b/BTCPayServer/Views/UIServer/Theme.cshtml
index aef63961d..558b75769 100644
--- a/BTCPayServer/Views/UIServer/Theme.cshtml
+++ b/BTCPayServer/Views/UIServer/Theme.cshtml
@@ -1,6 +1,9 @@
-@model BTCPayServer.Services.ThemeSettings
+@using BTCPayServer.Abstractions.Contracts
+@model BTCPayServer.Services.ThemeSettings
+@inject IFileService FileService
@{
ViewData.SetActivePage(ServerNavPages.Theme, "Theme");
+ var canUpload = await FileService.IsAvailable();
}
@section PageFootContent {
@@ -11,16 +14,12 @@
diff --git a/BTCPayServer/Views/UIStores/GeneralSettings.cshtml b/BTCPayServer/Views/UIStores/GeneralSettings.cshtml
index c0d127a27..db07c179f 100644
--- a/BTCPayServer/Views/UIStores/GeneralSettings.cshtml
+++ b/BTCPayServer/Views/UIStores/GeneralSettings.cshtml
@@ -33,7 +33,7 @@
-
Branding
+
Branding
@if (canUpload)
diff --git a/BTCPayServer/wwwroot/main/layout.css b/BTCPayServer/wwwroot/main/layout.css
index c4cce2c91..0a0479ff6 100644
--- a/BTCPayServer/wwwroot/main/layout.css
+++ b/BTCPayServer/wwwroot/main/layout.css
@@ -135,6 +135,17 @@
height: 1px;
}
+#StoreSelectorHome {
+ position: relative;
+}
+
+#StoreSelectorHome .badge {
+ position: absolute;
+ top: .25rem;
+ left: 100%;
+ font-size: 9px;
+}
+
#StoreSelectorDropdown,
#StoreSelectorToggle {
width: 100%;
@@ -144,6 +155,7 @@
display: flex;
align-items: center;
color: var(--btcpay-header-link);
+ background-color: var(--btcpay-header-bg);
}
#StoreSelectorToggle::after {
@@ -191,24 +203,35 @@
}
/* Logo */
+#mainMenuHead .main-logo {
+ display: inline-block;
+ height: 2rem;
+}
+
@media (max-width: 575px) {
- .logo {
- width: 1.125rem;
- height: 2rem;
+ #mainMenuHead .main-logo-custom {
+ max-width: 25vw;
}
- .logo-large {
+ #mainMenuHead .main-logo-btcpay {
+ width: 1.125rem;
+ }
+
+ #mainMenuHead .main-logo-btcpay .main-logo-btcpay--large {
display: none;
}
}
@media (min-width: 576px) {
- .logo {
- width: 4.6rem;
- height: 2rem;
+ #mainMenuHead .main-logo-custom {
+ max-width: 10.5rem;
}
- .logo-small {
+ #mainMenuHead .main-logo-btcpay {
+ width: 4.625rem;
+ }
+
+ #mainMenuHead .main-logo-btcpay .main-logo-btcpay--small {
display: none;
}
}