This commit is contained in:
Your Name committed 2026-06-20 22:16:38 -04:00
1 parent dd5ece1c5d
commit 74b9670c79
3 files changed
+6 -10

No files matched your search

+1 -1
View File
@@ -108,7 +108,7 @@ export default async function RootLayout({
<body className="min-h-screen bg-pop-bg text-pop-black font-sans antialiased"> <body className="min-h-screen bg-pop-bg text-pop-black font-sans antialiased">
<ClientProviders> <ClientProviders>
<Navbar categories={categories} initialMenu={initialMenu} settings={settings} /> <Navbar categories={categories} initialMenu={initialMenu} settings={settings} />
<main className="global-main pt-[72px]"> <main className="global-main">
{children} {children}
</main> </main>
<Footer <Footer
+1 -1
View File
@@ -61,7 +61,7 @@ export default function Footer({
{/* Col 1 — Brand */} {/* Col 1 — Brand */}
<div className="space-y-6"> <div className="space-y-6">
<div className="text-2xl font-bold tracking-widest"> <div className="text-2xl font-bold tracking-widest">
{brandName} {settings?.logoUrl ? <img src={settings.logoUrl} alt={brandName} className="h-8 md:h-10 object-contain" /> : brandName}
</div> </div>
<p className="text-sm leading-relaxed text-gray-600"> <p className="text-sm leading-relaxed text-gray-600">
{resolveLocalized(settings?.footerDescription, effectiveLang) || t('footer.catchphrase')} {resolveLocalized(settings?.footerDescription, effectiveLang) || t('footer.catchphrase')}
+4 -8
View File
@@ -5,7 +5,7 @@ import { getPathWithoutLocale, getPathWithLocale } from '../lib/locales'
import { useRouter, usePathname } from 'next/navigation' import { useRouter, usePathname } from 'next/navigation'
import { useState, useEffect, useMemo, useRef } from 'react' import { useState, useEffect, useMemo, useRef } from 'react'
import type { Category } from '@homaroma/types' import type { Category } from '@homaroma/types'
import { Check, Globe, Heart, Menu as MenuIcon, ShoppingBag, User, X } from 'lucide-react' import { Check, Globe, Heart, Menu as MenuIcon, ShoppingBag, User, X, Search } from 'lucide-react'
import { useCartStore } from '../store/cartStore' import { useCartStore } from '../store/cartStore'
import { useWishlistStore } from '../store/wishlistStore' import { useWishlistStore } from '../store/wishlistStore'
import { useAuthStore } from '../store/authStore' import { useAuthStore } from '../store/authStore'
@@ -198,7 +198,7 @@ export default function Navbar({ categories = [], initialMenu = [], settings = n
onClick={() => setMobileOpen(false)} onClick={() => setMobileOpen(false)}
className="shrink-0 text-xl font-bold uppercase italic tracking-widest text-pop-black md:text-2xl" className="shrink-0 text-xl font-bold uppercase italic tracking-widest text-pop-black md:text-2xl"
> >
{brandName} {settings?.logoUrl ? <img src={settings.logoUrl} alt={brandName} className="h-8 md:h-10 object-contain" /> : brandName}
</Link> </Link>
</div> </div>
@@ -215,9 +215,7 @@ export default function Navbar({ categories = [], initialMenu = [], settings = n
className={iconButtonClass} className={iconButtonClass}
aria-label="Search" aria-label="Search"
> >
<svg className="h-4 w-4 transition-colors" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <Search className="h-4 w-4 transition-colors" />
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M21 21l-6-6m2-5a7 7 0 11-14 0 0114 0z" />
</svg>
</button> </button>
<Link <Link
@@ -338,9 +336,7 @@ export default function Navbar({ categories = [], initialMenu = [], settings = n
<form onSubmit={handleSearch}> <form onSubmit={handleSearch}>
<div className="flex overflow-hidden rounded-2xl border-2 border-pop-black/10 bg-white shadow-sm transition-colors focus-within:border-pop-pink"> <div className="flex overflow-hidden rounded-2xl border-2 border-pop-black/10 bg-white shadow-sm transition-colors focus-within:border-pop-pink">
<svg className="m-4 h-5 w-5 shrink-0 text-pop-black/35" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <Search className="m-4 h-5 w-5 shrink-0 text-pop-black/35" />
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M21 21l-6-6m2-5a7 7 0 11-14 0 0114 0z" />
</svg>
<input <input
type="text" type="text"
value={searchQuery} value={searchQuery}