Skip to content

Commit

Permalink
fix: styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Argeare5 committed Jul 23, 2024
1 parent a42bce9 commit 4a8f56f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
10 changes: 8 additions & 2 deletions apps/docs/src/components/AssetIconCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ export const AssetIconCard = ({
<IconCard
svgPath={`${githubIconsPath}${iconPath}`}
name={`${name}${chainName ? `(${chainName})` : ""}`}
subName={`${assetTag ? assetTag : ""}${symbol}${chainId ? `(${chainId})` : ""}`}
fileName={`${assetTag ? assetTag : ""}${symbol}${variant === IconVariant.Full ? "" : variant}`}
subComponent={
<div className="font-mono text-xs text-gray-400">
<span className="lowercase">{assetTag ? assetTag : ""}</span>
<span className="uppercase">{symbol}</span>
<span>{chainId && !assetTag ? `(${chainId})` : ""}</span>
</div>
}
fileName={`${(assetTag ? assetTag : "").toLowerCase()}${symbol.toUpperCase()}${variant === IconVariant.Full ? "" : variant}`}
setActiveType={setVariant}
activeType={variant}
>
Expand Down
13 changes: 9 additions & 4 deletions apps/docs/src/components/IconCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ export const IconCard = ({
children,
name,
subName,
subComponent,
svgPath,
fileName,
setActiveType,
activeType,
}: {
children: ReactNode;
name: string;
subName: string;
subName?: string;
subComponent?: ReactNode;
svgPath: string;
fileName: string;
setActiveType: (type: IconVariant) => void;
Expand All @@ -38,9 +40,12 @@ export const IconCard = ({
<div className="relative flex min-h-[285px] w-[200px] flex-col justify-center overflow-hidden rounded-lg pb-4">
<div className="relative flex-1 p-2">
<div className="text-sm font-semibold text-gray-800">{name}</div>
<div className="font-mono text-xs uppercase text-gray-400">
{subName}
</div>
{subName && (
<div className="font-mono text-xs uppercase text-gray-400">
{subName}
</div>
)}
{subComponent && subComponent}
</div>

<div
Expand Down

0 comments on commit 4a8f56f

Please sign in to comment.