Skip to content

Commit 5296f8d

Browse files
committed
brand guide
1 parent 3001fd5 commit 5296f8d

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/components/BrandContextMenu.tsx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function BrandContextMenu({ children, ...rest }: BrandContextMenuProps) {
6767
<DropdownMenu.Content
6868
sideOffset={4}
6969
align="start"
70-
className="z-50 min-w-48 rounded-md border border-gray-200 bg-white p-1 text-sm shadow-lg dark:border-gray-700 dark:bg-gray-800"
70+
className="z-50 min-w-48 rounded-md border border-gray-200 bg-white p-1 text-sm shadow-lg dark:border-gray-700 dark:bg-gray-900/50 backdrop-blur-md"
7171
>
7272
{[
7373
{
@@ -92,10 +92,7 @@ export function BrandContextMenu({ children, ...rest }: BrandContextMenuProps) {
9292
<DropdownMenu.Item
9393
key={label}
9494
className={twMerge(
95-
'flex cursor-pointer select-none items-center gap-2 rounded px-3 py-2 outline-none hover:bg-gray-100',
96-
darkBg
97-
? 'bg-gray-800 text-white hover:bg-gray-700'
98-
: 'bg-white hover:bg-gray-100'
95+
'flex cursor-pointer select-none items-center gap-2 rounded px-3 py-1 outline-none hover:bg-gray-500/20'
9996
)}
10097
onSelect={async () => {
10198
try {
@@ -108,7 +105,14 @@ export function BrandContextMenu({ children, ...rest }: BrandContextMenuProps) {
108105
}}
109106
>
110107
{label}
111-
<div>
108+
<div
109+
className={twMerge(
110+
'p-1 rounded-full',
111+
darkBg
112+
? 'bg-black text-white shadow-lg shadow-white/20'
113+
: 'bg-white text-black shadow-lg'
114+
)}
115+
>
112116
<img src={url} alt={label} className="h-6" />
113117
</div>
114118
</DropdownMenu.Item>
@@ -118,7 +122,7 @@ export function BrandContextMenu({ children, ...rest }: BrandContextMenuProps) {
118122
className="flex cursor-pointer select-none items-center gap-2 rounded px-3 py-2 outline-none hover:bg-gray-100 dark:hover:bg-gray-700"
119123
onSelect={() => navigate({ to: '/brand-guide' })}
120124
>
121-
Brand Guidelines
125+
Brand Guide & All Assets
122126
</DropdownMenu.Item>
123127
</DropdownMenu.Content>
124128
</DropdownMenu.Root>

0 commit comments

Comments
 (0)