Update header
parent
bb7b6d14ae
commit
912a1ebf74
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue