update(ui): Improve hero-carousel-skeleton design

This commit is contained in:
Prayag Prajapati committed 2024-02-19 20:59:12 +05:30
1 parent 9d28aaae96
commit f13533dfc6
2 files changed
+20 -11

No files matched your search

+19 -10
View File
@@ -11,9 +11,10 @@ export const CarouselSkeleton = () => {
elevation={0} elevation={0}
sx={{ sx={{
height: "70vh", height: "70vh",
margin: "4.4em 1.6em 1.6em 1.6em", margin: "0.6em 1.6em 1.6em 1.6em",
position: "relative", position: "relative",
background: theme.palette.primary.background.main, background: "black",
border: "1px solid rgb(255 255 255 / 0.2)",
borderRadius: "10px", borderRadius: "10px",
overflow: "hidden", overflow: "hidden",
}} }}
@@ -24,23 +25,31 @@ export const CarouselSkeleton = () => {
variant="text" variant="text"
sx={{ fontSize: "8rem" }} sx={{ fontSize: "8rem" }}
width={300} width={300}
animation="wave" // animation="wave"
/> />
</Typography> </Typography>
<Typography variant="p" className="hero-carousel-text"> <Typography
variant="p"
className="hero-carousel-text"
style={{ display: "flex", flexDirection: "column" }}
>
<Skeleton <Skeleton
variant="text" variant="text"
sx={{ fontSize: "3rem" }} sx={{ fontSize: "2rem" }}
width={400} width={400}
animation="wave" // animation="wave"
/> />
</Typography>
<Typography variant="p" className="hero-carousel-text">
<Skeleton <Skeleton
variant="text" variant="text"
sx={{ fontSize: "3rem" }} sx={{ fontSize: "2rem" }}
width={400} width={400}
animation="wave" // animation="wave"
/>
<Skeleton
variant="text"
sx={{ fontSize: "2rem" }}
width={400}
// animation="wave"
/> />
</Typography> </Typography>
</div> </div>
+1 -1
View File
@@ -77,7 +77,7 @@
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
margin-bottom: 0.5em; margin-bottom: 0.5em;
&-logo { &-logo {
max-width: 9em; max-width: 50vw;
max-height: 3em; max-height: 3em;
object-fit: contain; object-fit: contain;
object-position: bottom; object-position: bottom;