This commit is contained in:
lumijiez
2025-05-21 21:24:40 +03:00
parent 13cc494111
commit ed9d828e3b
7 changed files with 281 additions and 107 deletions

20
src/components/Navbar.js Normal file
View File

@@ -0,0 +1,20 @@
import { LastRefresh } from './LastRefresh'
export function Navbar({ lastUpdateTime }) {
return (
<nav className="bg-gray-800/50 backdrop-blur-sm border-b border-gray-700">
<div className="max-w-[1400px] mx-auto px-4 sm:px-6 py-4">
<div className="flex flex-col sm:flex-row items-center justify-between gap-4">
<h1 className="text-3xl sm:text-4xl font-bold bg-gradient-to-r from-blue-400 via-emerald-400 to-blue-400 bg-clip-text text-transparent animate-gradient">
Solar Management Dashboard
</h1>
{lastUpdateTime && (
<div className="flex items-center gap-2 text-gray-400">
<LastRefresh timestamp={lastUpdateTime} />
</div>
)}
</div>
</div>
</nav>
)
}