From 912a1ebf74e5dcb874ecd4665ae9b23b9b65adb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Wed, 12 Nov 2025 10:24:34 +0100 Subject: [PATCH] Update header --- dashboard.qrc | 1 + dashboard/help.html | 29 ++++++++++++++++++++++++++--- dashboard/index.html | 29 ++++++++++++++++++++++++++--- plugin/evdashwebserverresource.cpp | 5 ----- plugin/evdashwebserverresource.h | 2 -- 5 files changed, 53 insertions(+), 13 deletions(-) diff --git a/dashboard.qrc b/dashboard.qrc index e08ab55..7cdf36e 100644 --- a/dashboard.qrc +++ b/dashboard.qrc @@ -6,5 +6,6 @@ dashboard/help.html dashboard/styles/pce/favicon.ico dashboard/styles/pce/icon.png + dashboard/styles/pce/icon.svg diff --git a/dashboard/help.html b/dashboard/help.html index e9adc64..960ad78 100644 --- a/dashboard/help.html +++ b/dashboard/help.html @@ -34,7 +34,7 @@ header { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: #ffffff; - padding: 2.5rem 1.5rem 2rem; + padding: 2rem 1.5rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); } @@ -46,6 +46,26 @@ gap: 1.5rem; } + .brand { + display: flex; + align-items: center; + gap: 1rem; + flex: 1 1 260px; + } + + .brand-logo { + display: block; + height: 56px; + width: auto; + flex-shrink: 0; + object-fit: contain; + } + + .brand-text { + display: flex; + flex-direction: column; + } + .brand h1 { margin: 0 0 0.4rem; font-weight: 600; @@ -201,8 +221,11 @@
-

EV Dash

-

Reference & diagnostics

+ +
+

EV Dash

+

Reference & diagnostics

+

diff --git a/dashboard/index.html b/dashboard/index.html index 28391bf..b91d226 100644 --- a/dashboard/index.html +++ b/dashboard/index.html @@ -34,7 +34,7 @@ header { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: #ffffff; - padding: 2.5rem 1.5rem 2rem; + padding: 2rem 1.5rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); } @@ -46,6 +46,26 @@ gap: 1.5rem; } + .brand { + display: flex; + align-items: center; + gap: 1rem; + flex: 1 1 260px; + } + + .brand-logo { + display: block; + height: 56px; + width: auto; + flex-shrink: 0; + object-fit: contain; + } + + .brand-text { + display: flex; + flex-direction: column; + } + .brand h1 { margin: 0 0 0.4rem; font-weight: 600; @@ -376,8 +396,11 @@

-

EV Dash

-

Monitor EV chargers in real time.

+ +
+

EV Dash

+

Monitor EV chargers in real time.

+

diff --git a/plugin/evdashwebserverresource.cpp b/plugin/evdashwebserverresource.cpp index 5ad88f7..3542ed7 100644 --- a/plugin/evdashwebserverresource.cpp +++ b/plugin/evdashwebserverresource.cpp @@ -15,11 +15,6 @@ EvDashWebServerResource::EvDashWebServerResource(QObject *parent) } -bool EvDashWebServerResource::authenticationRequired() const -{ - return true; -} - HttpReply *EvDashWebServerResource::processRequest(const HttpRequest &request) { qCDebug(dcEvDashExperience()) << "Process request" << request.url().toString(); diff --git a/plugin/evdashwebserverresource.h b/plugin/evdashwebserverresource.h index 6acc0b4..4c41243 100644 --- a/plugin/evdashwebserverresource.h +++ b/plugin/evdashwebserverresource.h @@ -16,8 +16,6 @@ class EvDashWebServerResource : public WebServerResource public: explicit EvDashWebServerResource(QObject *parent = nullptr); - bool authenticationRequired() const override; - HttpReply *processRequest(const HttpRequest &request) override; bool validateToken(const QString &token);