Created
August 14, 2021 14:53
-
-
Save OmkarK45/7748c74d16ae8cc5e65a3170173403da to your computer and use it in GitHub Desktop.
Chakra UI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Container maxW={'3xl'}> | |
<Stack | |
as={Box} | |
textAlign={'center'} | |
spacing={{ base: 8, md: 14 }} | |
py={{ base: 20, md: 36 }}> | |
<Heading | |
fontWeight={600} | |
fontSize={{ base: '2xl', sm: '4xl', md: '6xl' }} | |
lineHeight={'110%'}> | |
Make money from <br /> | |
<Text as={'span'} color={'green.400'}> | |
your audience | |
</Text> | |
</Heading> | |
<Text color={'gray.500'}> | |
As you can see, the props really start to grow up and due to the formatter, they are placed on one line each. | |
While this is highly subjective opinion, but it does get really tedious to find things | |
in your code. | |
Style props can make it difficult to find props that deal with business logic. Again not a fault of chakra or such. | |
</Text> | |
<Stack | |
direction={'column'} | |
spacing={3} | |
align={'center'} | |
alignSelf={'center'} | |
position={'relative'}> | |
<Button | |
colorScheme={'green'} | |
bg={'green.400'} | |
rounded={'full'} | |
px={6} | |
_hover={{ | |
bg: 'green.500', | |
}}> | |
Get Started | |
</Button> | |
<Button variant={'link'} colorScheme={'blue'} size={'sm'}> | |
Learn more | |
</Button> | |
<Box> | |
<Icon | |
as={Arrow} | |
color={useColorModeValue('gray.800', 'gray.300')} | |
w={71} | |
position={'absolute'} | |
right={-71} | |
top={'10px'} | |
/> | |
<Text | |
fontSize={'lg'} | |
fontFamily={'Caveat'} | |
position={'absolute'} | |
right={'-125px'} | |
top={'-15px'} | |
transform={'rotate(10deg)'}> | |
Starting at $15/mo | |
</Text> | |
</Box> | |
</Stack> | |
</Stack> | |
</Container> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment