mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-10 10:26:53 +00:00
chore(overview-css): fix class names
This commit is contained in:
parent
743a2d7d62
commit
27f8e4b560
@ -1,4 +1,4 @@
|
|||||||
import { YStack, Stack } from 'tamagui'
|
import { YStack } from 'tamagui'
|
||||||
import { Text } from '@status-im/components'
|
import { Text } from '@status-im/components'
|
||||||
|
|
||||||
import OverviewCard from './OverviewCard'
|
import OverviewCard from './OverviewCard'
|
||||||
@ -37,7 +37,7 @@ const Overview = () => {
|
|||||||
style={{ marginBottom: '1rem', fontSize: '13px' }}
|
style={{ marginBottom: '1rem', fontSize: '13px' }}
|
||||||
/>
|
/>
|
||||||
</YStack>
|
</YStack>
|
||||||
<div className={styles.overviewCards}>
|
<div className={styles['overview-cards']}>
|
||||||
<OverviewCard text={'Current APR'} value={'4.40%'} />
|
<OverviewCard text={'Current APR'} value={'4.40%'} />
|
||||||
<OverviewCard text={'Total ETH Staked'} value={'9,451,123'} />
|
<OverviewCard text={'Total ETH Staked'} value={'9,451,123'} />
|
||||||
<OverviewCard text={'Estimated Activation Time'} value={'32 Days'} />
|
<OverviewCard text={'Estimated Activation Time'} value={'32 Days'} />
|
||||||
|
@ -9,7 +9,7 @@ type OverviewCardProps = {
|
|||||||
|
|
||||||
const OverviewCard = ({ text, value }: OverviewCardProps) => {
|
const OverviewCard = ({ text, value }: OverviewCardProps) => {
|
||||||
return (
|
return (
|
||||||
<div className={styles['overviewCard']}>
|
<div className={styles['overview-card']}>
|
||||||
<div>
|
<div>
|
||||||
<Text size={15} weight={'semibold'}>
|
<Text size={15} weight={'semibold'}>
|
||||||
{text}
|
{text}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
.overviewCards {
|
.overview-cards {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(4, 1fr);
|
grid-template-columns: repeat(4, 1fr);
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
width: 258%;
|
width: 258%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.overviewCard {
|
.overview-card {
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
border: 1px solid rgba(0, 0, 0, 0.15);
|
border: 1px solid rgba(0, 0, 0, 0.15);
|
||||||
padding: 10px 12px;
|
padding: 10px 12px;
|
||||||
@ -13,19 +13,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1300px) {
|
@media screen and (max-width: 1300px) {
|
||||||
.overviewCards {
|
.overview-cards {
|
||||||
grid-template-columns: repeat(2, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1000px) {
|
@media screen and (max-width: 1000px) {
|
||||||
.overviewCards {
|
.overview-cards {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 515px) {
|
@media screen and (max-width: 515px) {
|
||||||
.overviewCards {
|
.overview-cards {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user