-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: make slider of home page fullWidth
- Loading branch information
Showing
16 changed files
with
96 additions
and
71 deletions.
There are no files selected for viewing
45 changes: 0 additions & 45 deletions
45
src/app/[locale]/(main)/(container)/(homepage)/loading.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import { VariableProductItemSkeleton } from '@/components/VariableProductItem'; | ||
import { | ||
Card, | ||
CardContent, | ||
Container, | ||
Grid, | ||
Skeleton, | ||
Stack, | ||
} from '@mui/material'; | ||
|
||
const Loading = () => { | ||
return ( | ||
<Grid container spacing={2}> | ||
<Grid item xs={12}> | ||
<Skeleton variant="rectangular" height={350} /> | ||
</Grid> | ||
|
||
<Grid item xs={12}> | ||
<Container maxWidth="xl"> | ||
<Grid container spacing={2}> | ||
<Grid item xs={12}> | ||
<Grid container spacing={2}> | ||
{new Array(4).fill(1).map((item, index) => { | ||
return ( | ||
<Grid key={index} item xs={12} md={6} lg={4} xl={3}> | ||
<Stack alignItems="end"> | ||
<Skeleton | ||
width="100%" | ||
variant="rectangular" | ||
height={120} | ||
/> | ||
<Skeleton variant="text" width={60} /> | ||
</Stack> | ||
</Grid> | ||
); | ||
})} | ||
</Grid> | ||
</Grid> | ||
{new Array(3).fill(1).map((item) => ( | ||
<Grid item xs={12} key={item}> | ||
<Card variant="outlined"> | ||
<CardContent> | ||
<Grid container spacing={2}> | ||
{new Array(6).fill(1).map((item, index) => { | ||
return ( | ||
<Grid key={index} item xs={12} md={6} lg={3} xl={2}> | ||
<VariableProductItemSkeleton /> | ||
</Grid> | ||
); | ||
})} | ||
</Grid> | ||
</CardContent> | ||
</Card> | ||
</Grid> | ||
))} | ||
</Grid> | ||
</Container> | ||
</Grid> | ||
</Grid> | ||
); | ||
}; | ||
|
||
export default Loading; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters