refactor/google-analytics #14
@@ -14,24 +14,24 @@ interface BreadcrumbProps {
|
||||
|
||||
export function Breadcrumb({ items }: BreadcrumbProps) {
|
||||
return (
|
||||
<nav aria-label="breadcrumb" className="flex items-center gap-2 text-xs md:text-sm text-[#5C5C5C] py-3 md:py-4 leading-none">
|
||||
<nav aria-label="breadcrumb" className="flex items-center gap-1.5 text-xs md:text-sm text-[#5C5C5C] py-3 md:py-4">
|
||||
<StaticLink
|
||||
href="/"
|
||||
className="inline-flex items-center justify-center hover:text-[#C41E3A] transition-colors w-5 h-5"
|
||||
className="inline-flex hover:text-[#C41E3A] transition-colors"
|
||||
aria-label="返回首页"
|
||||
>
|
||||
<Home className="w-4 h-4" />
|
||||
<Home className="w-[14px] h-[14px]" />
|
||||
</StaticLink>
|
||||
{items.map((item, index) => (
|
||||
<div key={index} className="flex items-center">
|
||||
<ChevronRight className="w-3.5 h-3.5 text-[#CCCCCC] mx-1 shrink-0" />
|
||||
<span key={index} className="inline-flex items-center gap-0.5">
|
||||
<ChevronRight className="w-3 h-3 text-[#CCCCCC] shrink-0" />
|
||||
<StaticLink
|
||||
href={item.href}
|
||||
className="hover:text-[#C41E3A] transition-colors"
|
||||
>
|
||||
{item.label}
|
||||
</StaticLink>
|
||||
</div>
|
||||
</span>
|
||||
))}
|
||||
</nav>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user