Skip to content

Commit

Permalink
chore: cake section row
Browse files Browse the repository at this point in the history
  • Loading branch information
Chef-Yogi committed Jul 24, 2023
1 parent 7e551a6 commit 0d4b6ec
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
33 changes: 23 additions & 10 deletions apps/web/src/views/Home/components/CakeDataRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ const Grid = styled.div`
}
${({ theme }) => theme.mediaQueries.md} {
grid-template-areas:
'a b c'
'd e f';
grid-template-areas: 'a b d e f';
grid-gap: 32px;
grid-template-columns: repeat(3, auto);
}
Expand Down Expand Up @@ -132,15 +130,20 @@ const CakeDataRow = () => {
return (
<Grid>
<Flex flexDirection="column" style={{ gridArea: 'a' }}>
<Text color="textSubtle">{t('Circulating Supply')}</Text>
<Text color="secondary" bold>
{t('Circulating Supply')}
</Text>
{circulatingSupply ? (
<Balance decimals={0} lineHeight="1.1" fontSize="24px" bold value={circulatingSupply} />
) : (
<Skeleton height={24} width={126} my="4px" />
)}
<Text color="secondary">{t('Unit')}</Text>
</Flex>
<StyledColumn noMobileBorder style={{ gridArea: 'b' }}>
<Text color="textSubtle">{t('Total supply')}</Text>
<Text color="secondary" bold>
{t('Total supply')}
</Text>
{cakeSupply ? (
<Balance decimals={0} lineHeight="1.1" fontSize="24px" bold value={cakeSupply} />
) : (
Expand All @@ -149,36 +152,46 @@ const CakeDataRow = () => {
<Skeleton height={24} width={126} my="4px" />
</>
)}
<Text color="secondary">{t('Unit')}</Text>
</StyledColumn>
<StyledColumn noMobileBorder style={{ gridArea: 'c' }}>
{/* <StyledColumn noMobileBorder style={{ gridArea: 'c' }}>
<Text color="textSubtle">{t('Max Supply')}</Text>
<Balance decimals={0} lineHeight="1.1" fontSize="24px" bold value={750000000} />
</StyledColumn>
</StyledColumn> */}
<StyledColumn noDesktopBorder style={{ gridArea: 'd' }}>
<Text color="textSubtle">{t('Market cap')}</Text>
<Text color="secondary" bold>
{t('Market cap')}
</Text>
{mcap?.gt(0) && mcapString ? (
<Heading scale="lg">{t('$%marketCap%', { marketCap: mcapString })}</Heading>
) : (
<Skeleton height={24} width={126} my="4px" />
)}
<Text color="secondary">{t('Unit')}</Text>
</StyledColumn>
<StyledColumn style={{ gridArea: 'e' }}>
<Text color="textSubtle">{t('Burned to date')}</Text>
<Text color="secondary" bold>
{t('Burned to date')}
</Text>
{burnedBalance ? (
<Balance decimals={0} lineHeight="1.1" fontSize="24px" bold value={burnedBalance} />
) : (
<Skeleton height={24} width={126} my="4px" />
)}
<Text color="secondary">{t('Unit')}</Text>
</StyledColumn>
<StyledColumn style={{ gridArea: 'f' }}>
<Text color="textSubtle">{t('Current emissions')}</Text>
<Text color="secondary" bold>
{t('Current emissions')}
</Text>

{emissionsPerBlock ? (
<Heading scale="lg">{t('%cakeEmissions%/block', { cakeEmissions: formatNumber(emissionsPerBlock) })}</Heading>
) : (
<Skeleton height={24} width={126} my="4px" />
)}
<Text color="secondary">{t('Unit')}</Text>
</StyledColumn>
</Grid>
)
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/views/Home/components/CakeSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const CakeSectionMainBox = styled.div`
width: 100%;
margin-top: 50px;
height: 400px;
margin-bottom: 40px;
`
export const CakeSectionLeftBox = styled.div`
display: flex;
Expand Down

0 comments on commit 0d4b6ec

Please sign in to comment.