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