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.
31 lines
1.2 KiB
31 lines
1.2 KiB
3 years ago
|
import { Box, Container, Flex, Heading, Image, Link, Text } from '@chakra-ui/react';
|
||
|
import React from 'react';
|
||
|
|
||
|
type GuideHeaderProps = {
|
||
|
title: string;
|
||
|
subtitle: string;
|
||
|
};
|
||
|
|
||
3 years ago
|
export function ContentPageHeader(props: GuideHeaderProps) {
|
||
3 years ago
|
const { title, subtitle } = props;
|
||
|
|
||
|
return (
|
||
|
<Box pt='70px' pb='55px' borderBottomWidth={1} mb='30px' textAlign='center' position='static' top='10px'>
|
||
|
<Container maxW='container.md' position='relative' textAlign='center'>
|
||
|
<Flex alignItems='center' justifyContent='center' fontSize='14px'>
|
||
|
<Link href='#' d='flex' alignItems='center' fontWeight={600} color='gray.500'>
|
||
|
<Image mr='7px' w='22px' src='https://github.com/kamranahmedse.png' />
|
||
|
Kamran Ahmed
|
||
|
</Link>
|
||
|
<Text mx='7px' color='gray.500' as='span'>·</Text>
|
||
|
<Text color='gray.500' as='span'>Monday, May 4, 2021</Text>
|
||
|
<Text mx='7px' color='gray.500' as='span'>·</Text>
|
||
|
<Link color='blue.500' fontWeight={500} href='#'>Improve this Guide</Link>
|
||
|
</Flex>
|
||
|
<Heading as='h1' color='black' fontSize='45px' fontWeight={700} my='10px'>{title}</Heading>
|
||
|
<Text fontSize='16px' color='gray.700'>{subtitle}</Text>
|
||
|
</Container>
|
||
|
</Box>
|
||
|
);
|
||
|
}
|