Skip to content

Commit f564df5

Browse files
committed
feat: add homepage skeleton
1 parent ac01851 commit f564df5

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed
Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
1-
import LoadingComponent from '@/components/common/LoadingComponent';
1+
import { Box, Grid, Skeleton } from '@mui/material';
22

3-
const Loading = () => <LoadingComponent />;
3+
const Loading = () => {
4+
return (
5+
<>
6+
<Skeleton variant="rectangular" height={350} />
7+
<Grid container spacing={1}>
8+
{new Array(4).fill(1).map((item, index) => {
9+
return (
10+
<Grid key={index} item xs={12} md={6} lg={4} xl={3}>
11+
<Box>
12+
<Skeleton variant="rectangular" height={120} />
13+
<Skeleton variant="text" width={60} />
14+
</Box>
15+
</Grid>
16+
);
17+
})}
18+
</Grid>
19+
</>
20+
);
21+
};
422

523
export default Loading;

0 commit comments

Comments
 (0)