Add video and guide components
This commit is contained in:
38
pages/guides/components/guide-list-item.tsx
Normal file
38
pages/guides/components/guide-list-item.tsx
Normal file
@ -0,0 +1,38 @@
|
||||
import { Badge, Flex, Link, Text } from '@chakra-ui/react';
|
||||
|
||||
type GuideListItemProps = {
|
||||
title: string;
|
||||
date: string;
|
||||
isPro?: boolean;
|
||||
};
|
||||
|
||||
export function GuideListItem(props: GuideListItemProps) {
|
||||
const { title, date, isPro = false } = props;
|
||||
|
||||
return (
|
||||
<Link
|
||||
fontSize='15px'
|
||||
px='0'
|
||||
py='8px'
|
||||
d='flex'
|
||||
fontWeight={500}
|
||||
color='gray.600'
|
||||
alignItems='center'
|
||||
justifyContent={'space-between'}
|
||||
_hover={{
|
||||
textDecoration: 'none',
|
||||
color: 'blue.400',
|
||||
'& .guide-title': {
|
||||
transform: 'translateX(10px)'
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
||||
<Flex alignItems='center' className='guide-title' transition={'200ms'}>
|
||||
<Text as='span' ml='7px'>{title}</Text>
|
||||
{isPro && <Badge variant='subtle' colorScheme='purple' ml='10px'>Pro</Badge>}
|
||||
</Flex>
|
||||
<Text fontSize='13px' color='gray.500' as='span'>{date}</Text>
|
||||
</Link>
|
||||
);
|
||||
}
|
5
pages/guides/index.tsx
Normal file
5
pages/guides/index.tsx
Normal file
@ -0,0 +1,5 @@
|
||||
export default function Guides() {
|
||||
return (
|
||||
<h1>Hello world</h1>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user