|
@@ -28,6 +28,13 @@ export default function Header() {
|
|
|
<div className="absolute right-4 top-4 z-30 inline-flex items-center gap-3 rounded-lg bg-white/10 backdrop-blur-md px-4 py-2">
|
|
<div className="absolute right-4 top-4 z-30 inline-flex items-center gap-3 rounded-lg bg-white/10 backdrop-blur-md px-4 py-2">
|
|
|
{isLoading ? null : user ? (
|
|
{isLoading ? null : user ? (
|
|
|
<>
|
|
<>
|
|
|
|
|
+ <button
|
|
|
|
|
+ onClick={() => setShowAddLocation(true)}
|
|
|
|
|
+ className="rounded-lg bg-white/10 backdrop-blur-md px-3 py-1 text-sm font-bold text-white hover:bg-white/20 transition"
|
|
|
|
|
+ title="Добавить локацию"
|
|
|
|
|
+ >
|
|
|
|
|
+ +
|
|
|
|
|
+ </button>
|
|
|
<Link
|
|
<Link
|
|
|
href="/places/my"
|
|
href="/places/my"
|
|
|
className="text-sm text-white hover:text-green-400 transition"
|
|
className="text-sm text-white hover:text-green-400 transition"
|
|
@@ -37,17 +44,10 @@ export default function Header() {
|
|
|
<span className="text-sm text-white/60">{user.name || user.email}</span>
|
|
<span className="text-sm text-white/60">{user.name || user.email}</span>
|
|
|
<button
|
|
<button
|
|
|
onClick={logout}
|
|
onClick={logout}
|
|
|
- className="rounded-md px-3 py-1 text-sm text-white/80 hover:bg-[#ff5656] hover:text-white transition-colors"
|
|
|
|
|
|
|
+ className="rounded-lg bg-white/10 backdrop-blur-md px-3 py-1 text-sm text-white/80 hover:bg-[#ff5656] hover:text-white transition-colors"
|
|
|
>
|
|
>
|
|
|
Выйти
|
|
Выйти
|
|
|
</button>
|
|
</button>
|
|
|
- <button
|
|
|
|
|
- onClick={() => setShowAddLocation(true)}
|
|
|
|
|
- className="flex h-7 w-7 items-center justify-center rounded-md bg-green-600 text-lg font-bold text-white hover:bg-green-500 transition"
|
|
|
|
|
- title="Добавить локацию"
|
|
|
|
|
- >
|
|
|
|
|
- +
|
|
|
|
|
- </button>
|
|
|
|
|
</>
|
|
</>
|
|
|
) : (
|
|
) : (
|
|
|
<>
|
|
<>
|