File size: 1,995 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
import React from 'react';
import {
Box,
Skeleton,
SkeletonCircle,
useColorModeValue,
} from '@chakra-ui/react';
import useSkeletonColor from '../../hooks/useSkeletonColor';
const ProfileSkeleton = () => {
const skeletonColor = useSkeletonColor();
return (
<Box flex='1' w='100%'>
<Skeleton {...skeletonColor} h={['7rem', '7rem', '9rem']} />
<Box mx={{ base: 'none', md: '.5rem' }}>
<Box maxW='1000px' mx='auto'>
<Box
bg={useColorModeValue('light.cardBg', 'dark.cardBg')}
mt='-3.5rem'
borderRadius={{ md: '5px' }}
pos='relative'
p={{ base: '.5rem .5rem 2rem', md: '1rem 1rem 2rem' }}
textAlign={{ base: 'start', md: 'center' }}
>
<SkeletonCircle
{...skeletonColor}
boxSize={{ base: '60px', md: '120px' }}
pos='absolute'
top={{ base: '-30px', md: '-60px' }}
left={{ base: '2.5rem', md: '50%' }}
transform='translateX(-50%)'
/>
<Skeleton
{...skeletonColor}
h='20px'
mt={['2rem', '2rem', '4rem']}
maxW='220px'
mx={{ md: 'auto' }}
/>
<Skeleton
{...skeletonColor}
h='15px'
mt='.5rem'
maxW='600px'
mx={{ md: 'auto' }}
/>
<Skeleton
{...skeletonColor}
h='15px'
my='.5rem'
maxW='600px'
mx={{ md: 'auto' }}
/>
</Box>
</Box>
</Box>
</Box>
);
};
export default ProfileSkeleton;
|