-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat/fixed and improved pool page #698
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,8 @@ interface PoolCardProps { | |
|
||
export default function PoolCard({ pool }: PoolCardProps) { | ||
return ( | ||
<div className="bg-[#1a1a1a] rounded-lg p-5 text-baseWhite"> | ||
<div className="flex items-center justify-between mb-4"> | ||
<div className="bg-[#090a08] bricolage rounded-lg p-5 text-baseWhite"> | ||
<div className="flex items-center justify-between mb-2 border-b-solid border-b-[1px] border-b-[#191b19] py-2"> | ||
<div className="flex items-center"> | ||
<div className="relative flex mr-3"> | ||
<div className="h-10 w-10 rounded-full overflow-hidden border-2 border-[#1a1a1a] bg-blue-900"> | ||
|
@@ -36,19 +36,19 @@ export default function PoolCard({ pool }: PoolCardProps) { | |
</div> | ||
</div> | ||
|
||
{pool.isDegen && <div className="bg-[#333] px-2 py-1 rounded text-xs text-gray-300">Degen</div>} | ||
{pool.isDegen && <div className="bg-[#333] px-2 py-1 rounded text-xs text-gray-300 flex flex-row items-center gap-1"> <div className="h-[8px] w-[8px] bg-[#898989] rounded-[2px]"></div>Degen</div>} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sizes can be set with size-2, instead of arbitrary values, also colros should be put into theme inside index.css |
||
</div> | ||
|
||
<div className="grid grid-cols-3 gap-4 mb-4"> | ||
<div className="grid grid-cols-3 gap-4 mb-4 justify-between"> | ||
<div> | ||
<div className="text-gray-400 text-sm mb-1">Liquidity</div> | ||
<div className="font-bold">{pool.liquidity}</div> | ||
</div> | ||
<div> | ||
<div className="text-center"> | ||
<div className="text-gray-400 text-sm mb-1">APY</div> | ||
<div className="font-bold text-green-500">{pool.totalApy}</div> | ||
<div className="font-bold text-[#58c15d]">{pool.totalApy}</div> | ||
</div> | ||
<div> | ||
<div className=" text-end"> | ||
<div className="text-gray-400 text-sm mb-1">Risk Level</div> | ||
<div className="font-bold">{pool.riskLevel}</div> | ||
</div> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. check font sizes, do not match figma |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,15 +16,14 @@ export function Tabs({ tabs, defaultActiveIndex = 0, className = "" }: TabsProps | |
|
||
return ( | ||
<div className={`w-full ${className}`}> | ||
<div className="flex border-b border-inactiveTab bg-pageBg"> | ||
<div className="flex border-b border-inactiveTab bg-pageBg bricolage h-[48px] bg-transparent "> | ||
{tabs.map((tab, index) => ( | ||
<button | ||
key={index} | ||
className={`p-4 text-sm font-medium focus:outline-none transition-colors min-w-[100px] ${ | ||
activeIndex === index | ||
? " rounded-t-lg text-baseWhite bg-navbg border-b border-activeTab " | ||
: "text-tabText hover:text-baseWhite " | ||
}`} | ||
className={`p-4 text-[16px] font-[400] focus:outline-none transition-colors w-full max-w-[142px] ${activeIndex === index | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. font-[400] can be replaced with tailwind utility, as well as text-[16px] |
||
? " rounded-t-lg h-[48px] text-baseWhite bg-navbg border-b border-[#434343] " | ||
: "text-[#B1B1B1] hover:text-baseWhite " | ||
}`} | ||
onClick={() => { | ||
setActiveIndex(index); | ||
}} | ||
|
@@ -33,7 +32,7 @@ export function Tabs({ tabs, defaultActiveIndex = 0, className = "" }: TabsProps | |
</button> | ||
))} | ||
</div> | ||
<div className="p-4">{tabs[activeIndex]?.content}</div> | ||
<div className="pt-4">{tabs[activeIndex]?.content}</div> | ||
</div> | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove