Update CardScroller and start using Mui Cards

This commit is contained in:
prayag17 committed 2023-03-19 22:30:08 +05:30
1 parent 6cb5130b08
commit 03323d954e
8 files changed
+399 -238

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
/** @format */
import Skeleton from "@mui/material/Skeleton";
import Paper from "@mui/material/Paper";
import Box from "@mui/material/Box";
import Typography from "@mui/material/Typography";
import { theme } from "../../theme";
export const CarouselSkeleton = () => {
return (
<Paper
className="hero-carousel-slide"
sx={{
background: theme.palette.primary.background.dark,
}}
>
<div className="hero-carousel-background">
<Skeleton
variant="rectangular"
height="100%"
animation="wave"
></Skeleton>
</div>
<Box className="hero-carousel-detail">
<Typography variant="h3" className="hero-carousel-text">
<Skeleton
variant="text"
sx={{ fontSize: "5rem" }}
width={300}
animation="wave"
></Skeleton>
</Typography>
<Typography variant="p" className="hero-carousel-text">
<Skeleton
variant="text"
sx={{ fontSize: "3rem" }}
width={400}
animation="wave"
></Skeleton>
</Typography>
</Box>
</Paper>
);
};