import {ArrowRight, MapPin} from 'lucide-react'; import {useSite} from '@/lib/site-context'; import {primaryImage} from '@/seo/meta'; import {unitSpec} from '@/lib/derive'; export function HeroSection() { const payload = useSite(); const {place, narrative} = payload; const image = primaryImage(payload); const spec = unitSpec(payload); // id="top" — 상단 로고와 하단 탭의 '홈' 이 여기로 돌아온다. return (
{image && (
{image.alt}
)}
{(place.addressLocality ?? place.addressRegion) && (

{place.addressLocality ?? place.addressRegion}

)} {/* h1 은 페이지에 하나. 가게 이름이 들어가야 "○○ 홈페이지" 질의에 잡힌다. */}

{narrative.heroHeadline ? ( <> {narrative.heroHeadline} {place.name} ) : ( place.name )}

{(narrative.tagline ?? narrative.heroSubline) && (

{narrative.tagline ?? narrative.heroSubline}

)}
{payload.units.length > 0 && ( {spec.label} 둘러보기 )} 이용 정보 보기
); }