Commit 0f7de1dc authored by Max Alekseenko's avatar Max Alekseenko

update badges section

parent ac770e59
...@@ -144,13 +144,19 @@ const RewardsDashboard = () => { ...@@ -144,13 +144,19 @@ const RewardsDashboard = () => {
<RewardsDashboardCard <RewardsDashboardCard
title="Badges" title="Badges"
description={ ( description={ (
<span> <Flex flexDir="column" gap={ 2 }>
Collect limited and legendary badges by completing different Blockscout related tasks. Go to{ ' ' } <span>
<LinkExternal href="https://badges.blockscout.com?utm_source=blockscout&utm_medium=merits-dashboard"> Collect limited and legendary badges by completing different Blockscout related tasks.
the badges website Go to the badges website to see what{ apos }s available and start your collection!
</span>
<LinkExternal
href="https://badges.blockscout.com?utm_source=blockscout&utm_medium=merits-dashboard"
fontSize="md"
fontWeight="500"
>
Go to website
</LinkExternal> </LinkExternal>
{ ' ' }to see what{ apos }s available and start your collection! </Flex>
</span>
) } ) }
direction="row" direction="row"
availableSoon availableSoon
...@@ -164,10 +170,16 @@ const RewardsDashboard = () => { ...@@ -164,10 +170,16 @@ const RewardsDashboard = () => {
{ Array(5).fill(null).map((_, index) => ( { Array(5).fill(null).map((_, index) => (
<Image <Image
key={ index } key={ index }
display={{ base: index > 2 ? 'none' : 'block', md: 'block' }}
src={ `/static/badges/badge_${ index + 1 }.svg` } src={ `/static/badges/badge_${ index + 1 }.svg` }
alt={ `Badge ${ index + 1 }` } alt={ `Badge ${ index + 1 }` }
boxSize={{ base: '50px', md: '100px' }} boxSize={{ base: '80px', md: '100px' }}
fallback={ <Skeleton boxSize={{ base: '50px', md: '100px' }}/> } fallback={ (
<Skeleton
boxSize={{ base: '80px', md: '100px' }}
display={{ base: index > 2 ? 'none' : 'block', md: 'block' }}
/>
) }
/> />
)) } )) }
</Flex> </Flex>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment