Skip to content

Commit 4b3b7d3

Browse files
CopilotBoshen
andcommitted
Add small and clean rolldown-vite dashboard banner at top of page
Co-authored-by: Boshen <[email protected]>
1 parent 0423ae3 commit 4b3b7d3

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

apps/dashboard/src/App.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@
55
color: #000000;
66
}
77

8+
/* Dashboard Banner - Small and Clean */
9+
.dashboard-banner {
10+
background: #f8fafc;
11+
border-bottom: 1px solid #e2e8f0;
12+
padding: 0.5rem 2rem;
13+
position: sticky;
14+
top: 0;
15+
z-index: 50;
16+
}
17+
18+
.banner-content {
19+
max-width: 1200px;
20+
margin: 0 auto;
21+
display: flex;
22+
align-items: center;
23+
gap: 0.5rem;
24+
font-size: 0.875rem;
25+
font-weight: 600;
26+
color: #64748b;
27+
}
28+
829
.dashboard-header {
930
background: #1e293b;
1031
border-bottom: 1px solid #e2e8f0;

apps/dashboard/src/components/Layout.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1-
import { Package, Zap } from 'lucide-react';
1+
import { BarChart3, Package, Zap } from 'lucide-react';
22
import { Link, Outlet, useLocation } from 'react-router-dom';
33

44
function Layout() {
55
const location = useLocation();
66

77
return (
88
<>
9+
{/* Rolldown-Vite Dashboard Banner */}
10+
<div className='dashboard-banner'>
11+
<div className='banner-content'>
12+
<BarChart3 size={16} />
13+
<span>Rolldown-Vite Dashboard</span>
14+
</div>
15+
</div>
16+
917
{/* Page Navigation */}
1018
<nav className='page-nav'>
1119
<Link

0 commit comments

Comments
 (0)