File tree Expand file tree Collapse file tree 4 files changed +49
-22
lines changed
Expand file tree Collapse file tree 4 files changed +49
-22
lines changed Original file line number Diff line number Diff line change 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 {
6180 padding : 10px ;
6281 }
6382
64- .dashboard-title {
65- font-size : 1.5rem ;
66- }
67-
6883 .stat-value {
6984 font-size : 2rem ;
7085 }
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ import ContainerList from './ContainerList';
99import ThreatMap from './ThreatMap' ;
1010import './Dashboard.css' ;
1111
12- const DASHBOARD_LOGO_URL = 'https://github.com/user-attachments/assets/0c8a9216-8315-4ef7-9b73-d96c40521ed1' ;
13-
1412const 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 >
Original file line number Diff line number Diff line change 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;
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import './Sidebar.css' ;
33
4+ const DASHBOARD_LOGO_URL = 'https://github.com/user-attachments/assets/0c8a9216-8315-4ef7-9b73-d96c40521ed1' ;
5+
46const 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 >
You can’t perform that action at this time.
0 commit comments