A social knowledge tool for researchers built on ATProto
1import {
2 Container,
3 Stack,
4 Grid,
5 GridCol,
6 Avatar,
7 Group,
8 Skeleton,
9} from '@mantine/core';
10
11export default function ProfileHeaderSkeleton() {
12 return (
13 <Container p={'xs'} size={'xl'}>
14 <Stack gap={'sm'}>
15 <Stack gap={'xl'}>
16 <Grid gutter={'md'} align={'center'} grow>
17 <GridCol span={'auto'}>
18 <Avatar size={'clamp(100px, 22vw, 180px)'} radius={'lg'} />
19 </GridCol>
20
21 <GridCol span={{ base: 12, xs: 9 }}>
22 <Stack gap={0}>
23 <Stack gap={0}>
24 {/* Name */}
25 <Skeleton w={'30%'} h={27} />
26
27 {/* Handle */}
28 <Skeleton w={'40%'} h={22} mt={'xs'} />
29 </Stack>
30
31 {/* Description */}
32 <Skeleton w={'80%'} h={22} mt={'md'} />
33 </Stack>
34 </GridCol>
35 </Grid>
36 </Stack>
37 <Group>
38 <Skeleton w={150} h={36} radius={'xl'} />
39 </Group>
40 </Stack>
41 </Container>
42 );
43}