gate +18 con cookie de 1 dia (web + links page)

This commit is contained in:
Renato
2026-08-04 17:26:33 +08:00
parent 569245b440
commit 1825dfae4e
2 changed files with 68 additions and 0 deletions
+3
View File
@@ -1,11 +1,14 @@
import Link from "next/link"
import { Image, Search } from "lucide-react"
import { SITE_NAME, SITE_TAGLINE, SITE_LINKS } from "@/lib/site"
import { AgeGate } from "@/components/age-gate"
// Header del sitio público: búsqueda pública (SQLite) + logo.
export default function PublicLayout({ children }: { children: React.ReactNode }) {
return (
<>
{/* Gate +18 con persistencia de 1 día */}
<AgeGate />
<header className="sticky top-0 z-40 border-b border-[var(--border)] bg-[var(--background)]/85 backdrop-blur-md">
<div className="mx-auto flex h-14 max-w-5xl items-center justify-between px-3 sm:px-4">
<Link href="/" className="flex items-center gap-2.5">