-
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.
Merge pull request #928 from parlemonde/ft-VIL-73-74-75
Ft vil 73 74 75
- Loading branch information
Showing
3 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
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
30 changes: 30 additions & 0 deletions
30
...nts/admin/dashboard-statistics/cards/ClassesExchangesCard/ClassesExchangesCard.module.css
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,30 @@ | ||
.cardContainer { | ||
background-color: #F5F5F5; | ||
padding: .5rem 1rem; | ||
border-radius: 1rem; | ||
font-weight: 600; | ||
} | ||
|
||
.cardContainer>div { | ||
display: flex; | ||
justify-content: space-around; | ||
flex-wrap: wrap; | ||
} | ||
|
||
.cardContainerExchange>div { | ||
font-size: 3rem; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
margin: 0; | ||
padding: 0; | ||
color: #DAD7FE; | ||
} | ||
|
||
.cardContainerExchange>div>p { | ||
align-items: center; | ||
color: #4C3ED9; | ||
margin: 0; | ||
padding: 0; | ||
display: flex; | ||
} |
46 changes: 46 additions & 0 deletions
46
...components/admin/dashboard-statistics/cards/ClassesExchangesCard/ClassesExchangesCard.tsx
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,46 @@ | ||
import React from 'react'; | ||
|
||
import ChatBubbleOutlineIcon from '@mui/icons-material/ChatBubbleOutline'; | ||
import DescriptionIcon from '@mui/icons-material/Description'; | ||
import YouTubeIcon from '@mui/icons-material/YouTube'; | ||
|
||
import styles from './ClassesExchangesCard.module.css'; | ||
|
||
interface ClassesExchangesCardProps { | ||
totalPublications: number; | ||
totalComments: number; | ||
totalVideos: number; | ||
} | ||
|
||
const ClassesExchangesCard = ({ totalPublications, totalComments, totalVideos }: ClassesExchangesCardProps) => { | ||
return ( | ||
<div className={styles.cardContainer}> | ||
<p>Résumé des échanges sur 1village</p> | ||
<div> | ||
<div className={styles.cardContainerExchange}> | ||
<div> | ||
<DescriptionIcon sx={{ fontSize: 'inherit' }} /> | ||
<p>{totalPublications}</p> | ||
</div> | ||
<p>Total des publications</p> | ||
</div> | ||
<div className={styles.cardContainerExchange}> | ||
<div> | ||
<ChatBubbleOutlineIcon sx={{ fontSize: 'inherit' }} /> | ||
<p>{totalComments}</p> | ||
</div> | ||
<p>Commentaires</p> | ||
</div> | ||
<div className={styles.cardContainerExchange}> | ||
<div> | ||
<YouTubeIcon sx={{ fontSize: 'inherit' }} /> | ||
<p>{totalVideos}</p> | ||
</div> | ||
<p>Vidéos en ligne</p> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ClassesExchangesCard; |