computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
46 lines
1.1 KiB
import { Box, Link, Text } from '@chakra-ui/react'; |
|
|
|
type DimmedMoreProps = { |
|
text: string; |
|
href: string; |
|
}; |
|
|
|
export function DimmedMore(props: DimmedMoreProps) { |
|
const { text, href } = props; |
|
|
|
return ( |
|
<Box position='relative' textAlign='center' bottom='20px'> |
|
<Box |
|
opacity={1} |
|
pointerEvents='none' |
|
position='absolute' |
|
bottom={0} |
|
height='200px' |
|
width='100%' |
|
background='linear-gradient(180deg, rgb(255 255 255 / 40%), white)' |
|
/> |
|
|
|
<Link |
|
rounded='20px' |
|
display='inline' |
|
bg='green.600' |
|
color='white' |
|
p='7px 20px' |
|
href={href} |
|
fontWeight={800} |
|
fontSize='11px' |
|
textTransform='uppercase' |
|
my='25px' |
|
position='relative' |
|
_hover={{ |
|
textDecoration: 'none', |
|
'& .forward-arrow': { |
|
transform: 'translateX(3px)' |
|
} |
|
}}> |
|
{text} |
|
<Text d='inline-block' as='span' transition='200ms' ml='4px' className='forward-arrow'>→</Text> |
|
</Link> |
|
</Box> |
|
); |
|
}
|
|
|