Add visual guides navigation

pull/1331/head
Kamran Ahmed 3 years ago
parent cadf9ba4a7
commit 7a6a8c94f9
  1. 71
      pages/index.tsx

@ -1,4 +1,17 @@
import { Badge, Box, Container, Flex, Heading, Image, Link, SimpleGrid, Stack, Text, Tooltip } from '@chakra-ui/react'; import {
Badge,
Box,
Container,
Divider,
Flex,
Heading,
Image,
Link,
SimpleGrid,
Stack,
Text,
Tooltip
} from '@chakra-ui/react';
import { InfoIcon } from '@chakra-ui/icons'; import { InfoIcon } from '@chakra-ui/icons';
import { TextIcon } from './icons/text-icon'; import { TextIcon } from './icons/text-icon';
import { VideoIcon } from './icons/video-icon'; import { VideoIcon } from './icons/video-icon';
@ -94,8 +107,8 @@ export default function Home() {
</Box> </Box>
<Box> <Box>
<Container maxW='container.md'> <Container maxW='container.md' position='relative'>
<Box pt='40px' mb='20px'> <Box pt='60px' mb='20px'>
<Heading color='green.500' fontSize='25px' mb='5px'>Visual Guides</Heading> <Heading color='green.500' fontSize='25px' mb='5px'>Visual Guides</Heading>
</Box> </Box>
@ -244,15 +257,21 @@ export default function Home() {
<Text fontSize='13px' color='gray.500' as='span'>February 01, 2021</Text> <Text fontSize='13px' color='gray.500' as='span'>February 01, 2021</Text>
</Link> </Link>
<Link d='flex' justifyContent='space-between' href='#' fontSize='15px' <Link
d='flex'
justifyContent='space-between'
href='#'
fontSize='15px'
_hover={{ _hover={{
textDecoration: 'none', textDecoration: 'none',
color: 'blue.400', color: 'blue.400',
'& .guide-title': { '& .guide-title': {
transform: 'translateX(10px)' transform: 'translateX(10px)'
} }
}} borderBottomWidth={1} }}
py='5px' color='gray.600'> py='5px'
color='gray.600'
>
<Text d='flex' alignItems='center' transition='200ms' className={'guide-title'} fontWeight={500} <Text d='flex' alignItems='center' transition='200ms' className={'guide-title'} fontWeight={500}
as='span'> as='span'>
Session Based Authentication Session Based Authentication
@ -260,20 +279,50 @@ export default function Home() {
<Text fontSize='13px' color='gray.500' as='span'>February 01, 2021</Text> <Text fontSize='13px' color='gray.500' as='span'>February 01, 2021</Text>
</Link> </Link>
<Text as='span' /> <Box position='relative' textAlign='center' bottom='20px'>
<Link href={'#'} fontWeight={700} color='blue.500' my='25px' <Box
opacity={1}
pointerEvents='none'
position='absolute'
bottom={0}
height='200px'
width='100%'
background='linear-gradient(180deg, transparent, #e6fffa)'
/>
<Link
rounded='20px'
display='inline'
bg='green.600'
color='white'
p='7px 20px'
href={'#'}
fontWeight={800}
fontSize='11px'
textTransform='uppercase'
my='25px'
position='relative'
_hover={{ _hover={{
textDecoration: 'underline', textDecoration: 'none',
'& .forward-arrow': { '& .forward-arrow': {
transform: 'translateX(3px)' transform: 'translateX(3px)'
} }
}}> }}>
View all Guides <Text d='inline-block' as='span' transition='200ms' View all guides
className='forward-arrow'>&rarr;</Text> <Text d='inline-block' as='span' transition='200ms' ml='4px' className='forward-arrow'>&rarr;</Text>
</Link> </Link>
</Box>
</Stack> </Stack>
</Container> </Container>
</Box> </Box>
<Box>
<Container maxW='container.md'>
<Box pt='40px' mb='20px'>
<Heading color='green.500' fontSize='25px' mb='5px'>Video Explanations</Heading>
</Box>
</Container>
</Box>
</Box> </Box>
); );
} }

Loading…
Cancel
Save