Skip to content

Commit 73d0fe7

Browse files
authored
Merge pull request #82 from xandemon/feat/sidebar-enhancements
feat: subtle sidebar ui enhancements
2 parents 7309f03 + c87bcc7 commit 73d0fe7

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

showcase/src/pages/icons/[category].astro

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ const filteredIconsData =
2727
icon.categories.includes(
2828
category
2929
.replace("DevOps", "DevOps & AI/ML")
30-
.replaceAll("-", " ") as CategoryType
31-
)
30+
.replaceAll("-", " ") as CategoryType,
31+
),
3232
);
3333
---
3434

@@ -46,13 +46,14 @@ const filteredIconsData =
4646
>
4747
<Button
4848
className={cn(
49-
`w-full rounded-lg px-4 py-2 cursor-pointer justify-start`,
49+
`w-full rounded-lg px-4 py-2 cursor-pointer justify-start border`,
50+
`border-zinc-200 dark:border-zinc-800 text-sky-500 dark:text-sky-500 from-zinc-200/50 dark:from-zinc-950/25 to-zinc-200 dark:to-zinc-950/75 bg-gradient-to-br !bg-transparent`,
5051
{
51-
"bg-transparent dark:bg-transparent text-zinc-600 dark:text-zinc-400 hover:bg-zinc-200 dark:hover:bg-zinc-700":
52+
"bg-transparent dark:bg-transparent text-zinc-600 dark:text-zinc-400 bg-none dark:bg-none hover:bg-gradient-to-br dark:hover:bg-gradient-to-br !border-transparent":
5253
item
5354
.replace("DevOps & AI/ML", "DevOps")
5455
.replaceAll(" ", "-") !== category,
55-
}
56+
},
5657
)}
5758
>
5859
{item}

0 commit comments

Comments
 (0)