UX: lector publico, panel admin escondido, paginacion feed, auth activa
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import Link from "next/link"
|
||||
import { Image, Search } from "lucide-react"
|
||||
import { Image } from "lucide-react"
|
||||
|
||||
// Header del sitio público: sin links al panel admin (que queda escondido).
|
||||
// Solo navegación pública (logo -> home).
|
||||
export default function PublicLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<>
|
||||
@@ -12,15 +14,7 @@ export default function PublicLayout({ children }: { children: React.ReactNode }
|
||||
</div>
|
||||
<span className="text-sm font-bold tracking-tight">worst-scan</span>
|
||||
</Link>
|
||||
<nav className="flex items-center gap-2 sm:gap-4">
|
||||
<Link
|
||||
href="/search"
|
||||
className="flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-xs text-[var(--muted)] hover:bg-[var(--surface)] hover:text-[var(--foreground)] transition-colors"
|
||||
>
|
||||
<Search className="h-4 w-4" />
|
||||
<span className="hidden sm:inline">Buscar</span>
|
||||
</Link>
|
||||
</nav>
|
||||
<nav className="flex items-center gap-2 sm:gap-4"></nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
@@ -176,4 +176,4 @@ export default async function PostDetailPage({
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user