Make opensource and updates banner responsive

pull/1331/head
Kamran Ahmed 3 years ago
parent 3f2ef9ae48
commit ae463059dd
  1. 8
      components/opensource-banner.tsx
  2. 16
      components/updates-banner.tsx

@ -2,10 +2,10 @@ import { Box, Container, Heading, Link, Text } from '@chakra-ui/react';
export function OpensourceBanner() { export function OpensourceBanner() {
return ( return (
<Box borderTopWidth={1} pt='70px' pb='30px' textAlign='center'> <Box borderTopWidth={1} pt={['35px', '40px', '70px']} pb={['20px', '20px', '30px']} textAlign='center'>
<Container maxW='container.md'> <Container maxW='container.md'>
<Heading fontSize='35px' mb='20px'>Open Source</Heading> <Heading fontSize={['25px', '25px', '35px']} mb={['10px', '10px', '20px']}>Open Source</Heading>
<Text lineHeight='26px' fontSize='16px' mb='20px'>The project is OpenSource,&nbsp; <Text lineHeight='26px' fontSize={['13px', '14px', '16px']} mb='20px'>The project is OpenSource,&nbsp;
<Link <Link
_hover={{ textDecoration: 'none' }} _hover={{ textDecoration: 'none' }}
href='https://github.com/search?o=desc&q=stars%3A%3E100000&s=stars&type=Repositories' href='https://github.com/search?o=desc&q=stars%3A%3E100000&s=stars&type=Repositories'
@ -24,7 +24,7 @@ export function OpensourceBanner() {
title='GitHub' title='GitHub'
/> />
<Text lineHeight='26px' fontSize='16px' mb='15px'>A considerable amount of my time is spent doing unpaid <Text lineHeight={['21px', '23px', '26px']} fontSize={['13px', '14px', '16px']} mb='15px'>A considerable amount of my time is spent doing unpaid
community work on things that I hope will help humanity in some way. Your sponsorship helps me continue to community work on things that I hope will help humanity in some way. Your sponsorship helps me continue to
produce more open-source and free educational material consumed by hundreds of thousands of developers every produce more open-source and free educational material consumed by hundreds of thousands of developers every
month.</Text> month.</Text>

@ -2,21 +2,25 @@ import { Box, Button, Container, Flex, Heading, Stack, Text } from '@chakra-ui/r
export function UpdatesBanner() { export function UpdatesBanner() {
return ( return (
<Box borderTopWidth={1} mt='60px' pt='70px' pb='80px' textAlign='left' bg='gray.800'> <Box borderTopWidth={1} mt='60px' pt={['35px', '40px', '70px']} pb={['45px', '45px', '80px']} textAlign='left' bg='gray.800'>
<Container maxW='container.md'> <Container maxW='container.md'>
<Heading color={'gray.100'} fontSize='35px' mb='15px'>Stay Informed</Heading> <Heading color={'gray.100'} fontSize={['25px', '25px', '35px']} mb={['5px', '5px', '15px']}>Stay
<Text color='gray.400' lineHeight='26px' fontSize='16px' mb='20px'>Subscribe yourself to get updates, new Informed</Heading>
<Text color='gray.400' lineHeight='26px' fontSize={['15px', '15px', '16px']} mb='20px'>Subscribe yourself to get
updates, new
guides, videos and roadmaps in your inbox.</Text> guides, videos and roadmaps in your inbox.</Text>
<Flex flexDirection={['column', 'column', 'row']}> <Flex flexDirection={['column', 'column', 'row']}>
<Box mr='20px' mb={['15px', '15px', 0]}> <Box mr={['0', '0', '20px']} mb={['15px', '15px', 0]}>
<Button variant='outline' borderWidth={2} colorScheme='green' _hover={{ color: 'green.200' }}> <Button width={['full', 'auto']} fontSize={['14px', '14px', '16px']} variant='outline' borderWidth={2}
colorScheme='green' _hover={{ color: 'green.200' }}>
Subscribe to Updates Subscribe to Updates
</Button> </Button>
<Text color='gray.500' fontSize='13px' mt='5px'>Free subscription for updates</Text> <Text color='gray.500' fontSize='13px' mt='5px'>Free subscription for updates</Text>
</Box> </Box>
<Box> <Box>
<Button colorScheme='yellow'>Updates & Paid Content</Button> <Button width={['full', 'auto']} fontSize={['14px', '14px', '16px']} colorScheme='yellow'>Updates & Paid
Content</Button>
<Text color='gray.500' fontSize='13px' mt='5px'>Support the project by paying as little as <Text as='span' <Text color='gray.500' fontSize='13px' mt='5px'>Support the project by paying as little as <Text as='span'
fontWeight={600}>5$ fontWeight={600}>5$
per month</Text></Text> per month</Text></Text>

Loading…
Cancel
Save