-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/upgrate parnter
- Loading branch information
Showing
7 changed files
with
125 additions
and
43 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
components/Partner/PartnerList/PartnerCard/PartnerSkelton.jsx
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,40 @@ | ||
import { Stack, Skeleton } from '@mui/material'; | ||
|
||
const PartnerSkelton = () => { | ||
const array = new Uint32Array(1); | ||
return ( | ||
<Stack | ||
padding="12px" | ||
sx={{ padding: '12px', minHeight: '192px', bgcolor: '#fff' }} | ||
> | ||
<Stack direction="row" alignItems="center" gap="12px" mb="8px"> | ||
<Skeleton variant="circular" width={50} height={50} /> | ||
<Skeleton | ||
variant="rounded" | ||
width={122} | ||
height={26} | ||
sx={{ borderRadius: '4px' }} | ||
/> | ||
</Stack> | ||
<Stack sx={{ marginBottom: '26px' }}> | ||
<Skeleton variant="text" sx={{ fontSize: '1rem' }} /> | ||
<Skeleton variant="text" sx={{ fontSize: '1rem' }} /> | ||
</Stack> | ||
<Stack direction="row"> | ||
{new Array(3).fill(0).map((_, idx) => ( | ||
<Skeleton | ||
variant="rounded" | ||
width={60} | ||
height={23} | ||
key={`partnerSkelton-${Math.floor( | ||
crypto.getRandomValues(array)[0], | ||
)}`} | ||
sx={{ mr: '8px', borderRadius: '18px' }} | ||
/> | ||
))} | ||
</Stack> | ||
</Stack> | ||
); | ||
}; | ||
|
||
export default PartnerSkelton; |
24 changes: 24 additions & 0 deletions
24
components/Partner/PartnerList/PartnerCard/PartnerSkeltonCard.jsx
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,24 @@ | ||
import { Fragment } from 'react'; | ||
import { Grid, Box } from '@mui/material'; | ||
import PartnerSkelton from './PartnerSkelton'; | ||
|
||
const PartnerSkeltonCard = ({ number, mobileScreen }) => { | ||
const array = new Uint32Array(1); | ||
return new Array(number).fill(0).map((_, idx) => ( | ||
<Fragment | ||
key={`partnerSkeltonCard-${Math.floor(crypto.getRandomValues(array)[0])}`} | ||
> | ||
<Grid item md={6} mb={mobileScreen && '12px'} width="100%"> | ||
<PartnerSkelton /> | ||
</Grid> | ||
|
||
{!mobileScreen && (idx + 1) % 2 === 0 && idx + 1 !== number && ( | ||
<Grid item xs={12} py="12px"> | ||
<Box height={1} width="100%" border="1px solid #E5E5E5" /> | ||
</Grid> | ||
)} | ||
</Fragment> | ||
)); | ||
}; | ||
|
||
export default PartnerSkeltonCard; |
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
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