1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-02-24 19:42:51 +01:00
developer-roadmap/components/updates-banner.tsx

81 lines
2.2 KiB
TypeScript
Raw Normal View History

2021-12-09 13:25:01 +01:00
import {
Box,
Button,
Container,
Flex,
Heading,
Link,
Text,
} from '@chakra-ui/react';
2021-09-01 14:45:26 +02:00
import siteConfig from '../content/site.json';
2021-08-14 14:01:42 +02:00
export function UpdatesBanner() {
return (
2021-12-09 13:25:01 +01:00
<Box
borderTopWidth={1}
pt={['40px', '40px', '70px']}
pb={['40px', '45px', '80px']}
textAlign="left"
bg="brand.footer"
>
<Container maxW="container.md">
<Heading
color={'gray.100'}
fontSize={['25px', '25px', '35px']}
mb={['5px', '5px', '15px']}
>
Stay 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>
2021-08-14 14:01:42 +02:00
2021-08-28 13:38:29 +02:00
<Flex flexDirection={['column', 'column', 'row']}>
<Box mr={['0', '0', '20px']} mb={['15px', '15px', 0]}>
2021-12-09 13:25:01 +01:00
<Button
as={Link}
href="/signup"
width={['full', 'auto']}
fontSize={['14px', '14px', '16px']}
variant="outline"
borderWidth={2}
colorScheme="green"
_hover={{ color: 'green.200', textDecoration: 'none' }}
>
2021-08-14 14:01:42 +02:00
Subscribe to Updates
</Button>
2021-12-09 13:25:01 +01:00
<Text color="gray.500" fontSize="13px" mt="5px">
Free subscription for updates
</Text>
2021-08-14 14:01:42 +02:00
</Box>
<Box>
2021-12-09 13:25:01 +01:00
<Button
as={Link}
href={siteConfig.url.sponsor}
target="_blank"
width={['full', 'auto']}
fontSize={['14px', '14px', '16px']}
_hover={{ textDecoration: 'none', bg: 'yellow.500' }}
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" fontWeight={600}>
5$ per month
</Text>
</Text>
2021-08-14 14:01:42 +02:00
</Box>
2021-08-28 13:38:29 +02:00
</Flex>
2021-08-14 14:01:42 +02:00
</Container>
</Box>
);
}