Update header

initial-version
Simon Stürz 2025-11-12 10:24:34 +01:00
parent bb7b6d14ae
commit 912a1ebf74
5 changed files with 53 additions and 13 deletions

View File

@ -6,5 +6,6 @@
<file>dashboard/help.html</file>
<file>dashboard/styles/pce/favicon.ico</file>
<file>dashboard/styles/pce/icon.png</file>
<file>dashboard/styles/pce/icon.svg</file>
</qresource>
</RCC>

View File

@ -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 @@
<header>
<div class="header-bar">
<div class="brand">
<h1>EV Dash</h1>
<p>Reference & diagnostics</p>
<img src="styles/pce/icon.svg" alt="EV Dash logo" class="brand-logo">
<div class="brand-text">
<h1>EV Dash</h1>
<p>Reference & diagnostics</p>
</div>
</div>
<div class="session-panel">
<p class="status-indicator">

View File

@ -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 @@
<header>
<div class="header-bar">
<div class="brand">
<h1>EV Dash</h1>
<p>Monitor EV chargers in real time.</p>
<img src="styles/pce/icon.svg" alt="EV Dash logo" class="brand-logo">
<div class="brand-text">
<h1>EV Dash</h1>
<p>Monitor EV chargers in real time.</p>
</div>
</div>
<div class="session-panel">
<p class="status-indicator">

View File

@ -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();

View File

@ -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);