Skip to content

Commit

Permalink
chainswitcher styling
Browse files Browse the repository at this point in the history
  • Loading branch information
allenchuang committed Feb 1, 2024
1 parent 708baab commit 1119f58
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/Navbar/ChainSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function ChainSwitcher() {
}
}}
>
<SelectTrigger className="text-sm text-white bg-transparent border-none outline-none focus:outline-none focus:ring-0 ring-0 ring-offset-0 bg-sp-purple-dark">
<SelectTrigger className="text-sm text-white bg-transparent border-none outline-none focus:outline-none focus:ring-0 ring-0 ring-offset-0 bg-indigo-400">
<LinkIcon className="w-5 h-5 ml-0.5 shrink-0" />
<SelectValue placeholder="Version" className="bg-transparent" />
</SelectTrigger>
Expand Down
19 changes: 14 additions & 5 deletions components/Navbar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,18 @@ const Sidebar = ({ collapsed, navItems = defaultNavItems, shown, onHide }: Props
onHide();
}}
/>
<Badge className={cn('text-xs capitalize', collapsed ? 'hidden' : '')}>{process.env.NEXT_PUBLIC_CHAIN}</Badge>
<Badge
className={cn(
'text-xs capitalize bg-indigo-400 hover:bg-indigo-400',
collapsed ? 'transition-opacity opacity-0 delay-[150ms]' : '',
)}
>
{process.env.NEXT_PUBLIC_CHAIN}
</Badge>
</div>
<Badge className={cn('text-xs capitalize', !collapsed ? 'hidden' : '')}>{process.env.NEXT_PUBLIC_CHAIN}</Badge>
<Badge className={cn('text-xs capitalize bg-indigo-400 my-1', !collapsed ? 'hidden' : '')}>
{process.env.NEXT_PUBLIC_CHAIN}
</Badge>

{/* <button onClick={() => onHide()}>
<span
Expand Down Expand Up @@ -218,8 +227,8 @@ const Sidebar = ({ collapsed, navItems = defaultNavItems, shown, onHide }: Props
</div>
</div>

<>
<Link href="/tos.pdf" target="_blank" className="flex flex-row my-auto pb-2">
<div className="py-2">
<Link href="/tos.pdf" target="_blank" className="flex flex-row my-auto">
<div
className={classNames({
'transition-colors duration-300': true, //animation
Expand All @@ -238,7 +247,7 @@ const Sidebar = ({ collapsed, navItems = defaultNavItems, shown, onHide }: Props
</ClientOnly>
</div>
</Link>
</>
</div>
</div>
</div>
);
Expand Down

0 comments on commit 1119f58

Please sign in to comment.