Skip to content

Commit a6aac14

Browse files
vsilentCopilot
andcommitted
web: move logo to sidebar and add top actions bar
- Move logo into sidebar at 39x39 (30% larger than 30x30)\n- Remove "Stackdog Security Dashboard" header text\n- Add top bar with right-aligned actions menu button (...) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 99c85b1 commit a6aac14

File tree

4 files changed

+49
-22
lines changed

4 files changed

+49
-22
lines changed

web/src/components/Dashboard.css

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,30 @@
1212
min-height: 400px;
1313
}
1414

15-
.dashboard-title {
16-
font-size: 2rem;
17-
font-weight: 700;
18-
color: #2c3e50;
19-
margin-bottom: 0.5rem;
15+
.dashboard-topbar {
16+
display: flex;
17+
align-items: center;
18+
justify-content: space-between;
19+
margin-bottom: 0.75rem;
20+
}
21+
22+
.dashboard-topbar-spacer {
23+
flex: 1;
24+
}
25+
26+
.dashboard-actions-btn {
27+
border: 1px solid #d1d5db;
28+
background: #fff;
29+
color: #374151;
30+
border-radius: 8px;
31+
padding: 4px 10px;
32+
font-size: 1.25rem;
33+
line-height: 1;
34+
cursor: pointer;
35+
}
36+
37+
.dashboard-actions-btn:hover {
38+
background: #f9fafb;
2039
}
2140

2241
.dashboard-subtitle {
@@ -61,10 +80,6 @@
6180
padding: 10px;
6281
}
6382

64-
.dashboard-title {
65-
font-size: 1.5rem;
66-
}
67-
6883
.stat-value {
6984
font-size: 2rem;
7085
}

web/src/components/Dashboard.tsx

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import ContainerList from './ContainerList';
99
import ThreatMap from './ThreatMap';
1010
import './Dashboard.css';
1111

12-
const DASHBOARD_LOGO_URL = 'https://github.com/user-attachments/assets/0c8a9216-8315-4ef7-9b73-d96c40521ed1';
13-
1412
const Dashboard: React.FC = () => {
1513
const [securityStatus, setSecurityStatus] = useState<SecurityStatus | null>(null);
1614
const [loading, setLoading] = useState(true);
@@ -81,16 +79,10 @@ const Dashboard: React.FC = () => {
8179
<Container fluid className="dashboard">
8280
<Row className="mb-4">
8381
<Col>
84-
<h1 className="dashboard-title">
85-
<img
86-
src={DASHBOARD_LOGO_URL}
87-
alt="Stackdog logo"
88-
className="dashboard-logo"
89-
width={30}
90-
height={30}
91-
/>
92-
Stackdog Security Dashboard
93-
</h1>
82+
<div className="dashboard-topbar">
83+
<div className="dashboard-topbar-spacer" />
84+
<button className="dashboard-actions-btn" aria-label="Actions menu">...</button>
85+
</div>
9486
<p className="dashboard-subtitle">
9587
Real-time security monitoring for containers and Linux servers
9688
</p>

web/src/components/Sidebar.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,20 @@
99
}
1010

1111
.sidebar-brand {
12+
display: flex;
13+
align-items: center;
14+
gap: 10px;
1215
font-size: 1.1rem;
1316
font-weight: 700;
1417
margin-bottom: 20px;
1518
}
1619

20+
.sidebar-logo {
21+
width: 39px;
22+
height: 39px;
23+
object-fit: contain;
24+
}
25+
1726
.sidebar-nav {
1827
display: flex;
1928
flex-direction: column;

web/src/components/Sidebar.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
import React from 'react';
22
import './Sidebar.css';
33

4+
const DASHBOARD_LOGO_URL = 'https://github.com/user-attachments/assets/0c8a9216-8315-4ef7-9b73-d96c40521ed1';
5+
46
const Sidebar: React.FC = () => {
57
return (
68
<aside className="sidebar">
7-
<div className="sidebar-brand">Stackdog</div>
9+
<div className="sidebar-brand">
10+
<img
11+
src={DASHBOARD_LOGO_URL}
12+
alt="Stackdog logo"
13+
className="sidebar-logo"
14+
width={39}
15+
height={39}
16+
/>
17+
<span>Stackdog</span>
18+
</div>
819
<nav className="sidebar-nav">
920
<a href="#overview">Overview</a>
1021
<a href="#threats">Threat Map</a>

0 commit comments

Comments
 (0)