Skip to content
Closed

test #66

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,6 @@ html {
scroll-behavior: smooth;
}

html .font-zen {
font-family: var(--font-zen);
}

html .font-inter {
font-family: var(--font-inter);
}

body {
height: auto;
min-height: 100%;
Expand Down
4 changes: 2 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ initAnalytics();
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en" className={`${zen.variable} ${inter.variable} ${monospace.variable}`}>
<head>
{/* <head>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
</head>
</head> */}
<body>
<Providers>
<OnchainProviders>{children}</OnchainProviders>
Expand Down
2 changes: 1 addition & 1 deletion app/positions/components/PositionsContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function Positions() {
</div>
<div className="flex justify-center pt-8">
<PrimaryButton href="/positions" isSecondary>
Search Address
Search Address
</PrimaryButton>
</div>
</div>
Expand Down
15 changes: 11 additions & 4 deletions src/components/common/PrimaryButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,24 @@ type PrimaryButtonProps = {
children: React.ReactNode;
className?: string;
isSecondary?: boolean;
}
};

export default function PrimaryButton({ href, children, className = '', isSecondary }: PrimaryButtonProps) {
export default function PrimaryButton({
href,
children,
className = '',
isSecondary,
}: PrimaryButtonProps) {
return (
<Link href={href}>
<button
type="button"
className={`${isSecondary ? 'bg-secondary' : 'bg-monarch-orange'} rounded-sm p-4 px-10 font-zen opacity-80 transition-all duration-200 ease-in-out hover:opacity-100 ${className}`}
className={`${
isSecondary ? 'bg-secondary' : 'bg-monarch-orange'
} rounded-sm p-4 px-10 font-zen opacity-80 transition-all duration-200 ease-in-out hover:opacity-100 ${className}`}
>
{children}
</button>
</Link>
);
}
}
28 changes: 14 additions & 14 deletions src/components/layout/header/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { FaRegMoon, FaSun } from 'react-icons/fa';
import { useAccount } from 'wagmi';
import logo from '../../imgs/logo.png';
import AccountConnect from './AccountConnect';
import { usePathname } from 'next/navigation';

export function NavbarLink({
href,
Expand All @@ -21,10 +22,17 @@ export function NavbarLink({
target?: string;
ariaLabel?: string;
}) {
const pathname = usePathname();
const isActive = pathname === href;

return (
<NextLink
href={href}
className="px-0 text-center font-inter text-base font-normal text-primary no-underline"
className={clsx(
'px-2 py-1 text-center font-inter font-zen text-base font-normal text-primary no-underline',
'relative after:absolute after:bottom-[-4px] after:left-0 after:h-[2px] after:w-full after:origin-bottom-right after:scale-x-0 after:bg-primary after:transition-transform after:duration-300 after:ease-out',
isActive && 'after:origin-bottom-left after:scale-x-100',
)}
target={target}
aria-label={ariaLabel}
>
Expand Down Expand Up @@ -58,29 +66,21 @@ function Navbar() {
<nav
className={clsx(
'flex flex-1 flex-grow items-center justify-between',
'rounded-[5px] bg-secondary p-4 backdrop-blur-2xl',
'rounded-[5px] bg-secondary p-4 shadow-sm backdrop-blur-2xl',
)}
>
<div className="flex h-8 grow items-center justify-between gap-2">
<NavbarTitle />
<div className="flex items-center justify-start gap-8">
<ul className="hidden items-center justify-start gap-8 font-zen md:flex">
<ul className="hidden items-center justify-start gap-4 text-opacity-80 md:flex">
<li className="flex">
<NavbarLink href="/markets">
{' '}
<p className="text-base opacity-80 hover:opacity-100"> Markets </p>{' '}
</NavbarLink>
<NavbarLink href="/markets">Markets</NavbarLink>
</li>
<li className="flex">
<NavbarLink href={`/positions/${address ?? ''}`}>
<p className="text-base opacity-80 hover:opacity-100"> Portfolio </p>{' '}
</NavbarLink>
<NavbarLink href={`/positions/${address ?? ''}`}>Portfolio</NavbarLink>
</li>
<li className="flex">
<NavbarLink href={`/rewards/${address ?? ''}`}>
{' '}
<p className="text-base opacity-80 hover:opacity-100"> Rewards </p>{' '}
</NavbarLink>
<NavbarLink href={`/rewards/${address ?? ''}`}>Rewards</NavbarLink>
</li>
<li className="flex">
<NavigationMenu.Root className="relative">
Expand Down
Binary file added src/imgs/tokens/cbbtc.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/imgs/tokens/tbtc.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/utils/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,21 @@ const supportedTokens = [
decimals: 8,
networks: [{ chain: mainnet, address: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599' }],
},
{
symbol: 'cbBTC',
img: require('../imgs/tokens/cbbtc.webp') as string,
decimals: 8,
networks: [
{ chain: mainnet, address: '0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf' },
{ chain: base, address: '0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf' },
],
},
{
symbol: 'tBTC',
img: require('../imgs/tokens/tbtc.webp') as string,
decimals: 8,
networks: [{ chain: mainnet, address: '0x18084fbA666a33d37592fA2633fD49a74DD93a88' }],
},
{
symbol: 'rsETH',
img: require('../imgs/tokens/rseth.png') as string,
Expand Down