Skip to content

Commit

Permalink
fix: fonts and divisor colors
Browse files Browse the repository at this point in the history
  • Loading branch information
icfor committed Mar 8, 2024
1 parent 1924098 commit 9c51653
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 13 deletions.
9 changes: 6 additions & 3 deletions src/features/core/components/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const Heading2 = ({
export const Heading8 = ({
children,
className = "",
color = "text-typo-150",
color = "text-[#ffffff80]",
title,
}: TypographyProps & { color?: string }) => (
<div
Expand All @@ -78,7 +78,7 @@ export const BodyMedium = ({
}: TypographyProps) => (
<div
className={[
"text-[16px] font-normal leading-[24px] text-typo-125",
"text-[16px] font-normal leading-[24px] text-[#ffffffb3]",
className,
].join(" ")}
title={title}
Expand All @@ -93,7 +93,10 @@ type NavLinkProps = {
};

export const NavLink = ({ children, href }: NavLinkProps) => (
<Link className="text-left font-normal leading-[24px] underline" href={href}>
<Link
className="text-left font-normal leading-[24px] underline underline-offset-[2px]"
href={href}
>
{children}
</Link>
);
Expand Down
6 changes: 4 additions & 2 deletions src/features/staking/components/divisor.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
export const DivisorHorizontal = ({ className }: { className?: string }) => (
<div className={["h-[1px] w-full bg-bg-400", className || ""].join(" ")} />
<div
className={["h-[1px] w-full bg-[#ffffff33]", className || ""].join(" ")}
/>
);

export const DivisorVertical = () => (
<div className="h-full w-[1px] bg-bg-400" />
<div className="h-full w-[1px] bg-[#ffffff33]" />
);
13 changes: 7 additions & 6 deletions src/features/staking/components/validator-delegation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useEffect, useState } from "react";

import { minDisplayedXion } from "@/constants";
import {
BodyMedium,
Button,
ButtonPill,
Heading2,
Expand Down Expand Up @@ -102,7 +103,7 @@ export default function ValidatorDelegation() {
)}
</Heading2>
)}
<Heading8>{formatXionToUSD(totalRewards)}</Heading8>
<BodyMedium>{formatXionToUSD(totalRewards)}</BodyMedium>
</div>
{getCanClaimAnyRewards(staking.state) && (
<ButtonPill
Expand Down Expand Up @@ -134,7 +135,7 @@ export default function ValidatorDelegation() {
</Heading2>
)}
</div>
<Heading8>{formatXionToUSD(userTotalDelegation)}</Heading8>
<BodyMedium>{formatXionToUSD(userTotalDelegation)}</BodyMedium>
<div className="absolute bottom-0 right-[20px] top-0">
<DivisorVertical />
</div>
Expand All @@ -149,11 +150,11 @@ export default function ValidatorDelegation() {
: "-"}
</Heading2>
</div>
<Heading8>
<BodyMedium>
{availableToStakeBN
? formatXionToUSD(getXionCoin(availableToStakeBN))
: "-"}
</Heading8>
</BodyMedium>
<div className="absolute bottom-0 right-[20px] top-0">
<DivisorVertical />
</div>
Expand All @@ -171,9 +172,9 @@ export default function ValidatorDelegation() {
: "-"}
</Heading2>
</div>
<Heading8>
<BodyMedium>
{userTotalUnbondings ? formatXionToUSD(userTotalUnbondings) : "-"}
</Heading8>
</BodyMedium>
</div>
{!!unbondings?.length && (
<div className="flex h-full flex-row items-end justify-end text-right">
Expand Down
9 changes: 7 additions & 2 deletions src/features/staking/components/validator-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { useEffect, useState } from "react";

import { basePath, defaultAvatar } from "@/constants";
import {
BodyMedium,
ClipboardCopy,
Heading2,
Heading8,
Expand Down Expand Up @@ -147,7 +148,9 @@ export default function ValidatorPage() {
<div className="mb-[8px] mt-[12px]">
<Heading2>{formatToSmallDisplay(totalStakeBN)}</Heading2>
</div>
<Heading8>{formatXionToUSD(getXionCoin(totalStakeBN))}</Heading8>
<BodyMedium>
{formatXionToUSD(getXionCoin(totalStakeBN))}
</BodyMedium>
<div className="absolute bottom-0 right-[20px] top-0">
<DivisorVertical />
</div>
Expand Down Expand Up @@ -188,7 +191,9 @@ export default function ValidatorPage() {
: "-"}
</Heading2>
</div>
<Heading8>{formatXionToUSD(myDelegationToValidator)}</Heading8>
<BodyMedium>
{formatXionToUSD(myDelegationToValidator)}
</BodyMedium>
</div>
</div>
<DivisorHorizontal className="min-w-[1000px]" />
Expand Down

0 comments on commit 9c51653

Please sign in to comment.