Add visual guides navigation

pull/1331/head
Kamran Ahmed 3 years ago
parent cadf9ba4a7
commit 7a6a8c94f9
  1. 95
      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
_hover={{ d='flex'
textDecoration: 'none', justifyContent='space-between'
color: 'blue.400', href='#'
'& .guide-title': { fontSize='15px'
transform: 'translateX(10px)' _hover={{
} textDecoration: 'none',
}} borderBottomWidth={1} color: 'blue.400',
py='5px' color='gray.600'> '& .guide-title': {
transform: 'translateX(10px)'
}
}}
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
_hover={{ opacity={1}
textDecoration: 'underline', pointerEvents='none'
'& .forward-arrow': { position='absolute'
transform: 'translateX(3px)' bottom={0}
} height='200px'
}}> width='100%'
View all Guides <Text d='inline-block' as='span' transition='200ms' background='linear-gradient(180deg, transparent, #e6fffa)'
className='forward-arrow'>&rarr;</Text> />
</Link>
<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={{
textDecoration: 'none',
'& .forward-arrow': {
transform: 'translateX(3px)'
}
}}>
View all guides
<Text d='inline-block' as='span' transition='200ms' ml='4px' className='forward-arrow'>&rarr;</Text>
</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