Files
industries/components/Logo.tsx
zeekay 3f301c0a5a feat: add site.config.ts for brand centralization and forkability
Wire GlobalChatWidget, Hero, Logo, Navbar, and TrustedBySection to
site.config.ts so all URLs, stats, clients, and brand strings are
managed from one place. site.config.ts, app/layout.tsx, and
Footer.tsx were already committed in HEAD.
2026-02-28 10:47:10 -08:00

36 lines
969 B
TypeScript

'use client'
import Link from 'next/link'
import { HanzoLogo } from '@hanzo/logo/react'
import { cn } from '@/lib/utils'
import site from '@/site.config'
interface LogoProps {
className?: string
showText?: boolean
size?: 'sm' | 'md' | 'lg'
}
const sizes = {
sm: { logo: 'h-6 w-6', text: 'text-lg' },
md: { logo: 'h-8 w-8', text: 'text-xl' },
lg: { logo: 'h-10 w-10', text: 'text-2xl' },
}
export default function Logo({ className = '', showText = true, size = 'md' }: LogoProps) {
return (
<Link href="/" className={cn('flex items-center space-x-3 group', className)}>
<HanzoLogo variant="white" className={cn(sizes[size].logo, 'transition-all duration-300')} />
{showText && (
<span className={cn(
'font-semibold transition-colors duration-300',
sizes[size].text,
'text-foreground group-hover:text-foreground/90'
)}>
{site.brand.name}
</span>
)}
</Link>
)
}