Make roadmaps page responsive

pull/1331/head
Kamran Ahmed 3 years ago
parent 2c0d1ef77f
commit 8d05031e51
  1. 14
      components/page-header.tsx
  2. 2
      pages/roadmaps/index.tsx

@ -11,10 +11,18 @@ export function PageHeader(props: PageHeaderProps) {
const { title, subtitle, children } = props;
return (
<Box pt='45px' pb='30px' borderBottomWidth={1} mb='30px'>
<Box pt={['20px', '20px', '45px']} pb={['15px', '15px', '30px']} borderBottomWidth={1} mb='30px'>
<Container maxW='container.md' position='relative'>
<Heading as='h1' color='black' fontSize='35px' fontWeight={700} mb='5px'>{title}</Heading>
<Text fontSize='15px'>{subtitle}</Text>
<Heading
as='h1'
color='black'
fontSize={['25px', '25px', '35px']}
fontWeight={700}
mb={['2px', '2px', '5px']}
>
{title}
</Heading>
<Text fontSize={['14px', '14px', '15px']}>{subtitle}</Text>
</Container>
{children && (

@ -16,7 +16,7 @@ export default function Roadmaps() {
subtitle={'Step by step guides and paths to learn different tools or technologies'}
/>
<Container maxW='container.md' position='relative'>
<SimpleGrid columns={{ md: 2 }} mb='30px' spacing='15px'>
<SimpleGrid columns={[1, 1, 2, 2]} mb='30px' spacing={['10px', '10px', '15px']}>
<RoadmapGridItem
colorIndex={0} title={'Frontend'}
subtitle={'Step by step guide to becoming a frontend developer in 2021'}

Loading…
Cancel
Save