add list unfinished
This commit is contained in:
1 parent
dcc78353f2
commit
d4fa258918
4 files changed
+2987
-12
No files matched your search
@@ -0,0 +1,68 @@
|
||||
import React from "react";
|
||||
import styles from "./VolunteersPage.module.css";
|
||||
|
||||
function Volunteer({ name, role, since, email, phone, photo }) {
|
||||
return (
|
||||
<div className={`${styles.profileboard} glassCard`}>
|
||||
<div className={styles.contentWrapper}>
|
||||
<div className={styles.profilePictureContainer}>
|
||||
<img src={photo} alt={`${name}'s profile`} className={styles.profilePicture} />
|
||||
</div>
|
||||
<div className={styles.description}>
|
||||
<h2>{name}</h2>
|
||||
<div className={styles.topDescription}>
|
||||
<p><strong>Rôle :</strong> {role}</p>
|
||||
<p><strong>Membre depuis :</strong> {since}</p>
|
||||
<p><strong>Email :</strong> {email}</p>
|
||||
<p><strong>Téléphone :</strong> {phone}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function VolunteerPage() {
|
||||
const volunteers = [
|
||||
{
|
||||
name: "LEBLOND Malo",
|
||||
role: "Président",
|
||||
since: "2019",
|
||||
email: "malo.leblond@example.com",
|
||||
phone: "08 67 87 32 21",
|
||||
photo: "../src/assets/react.svg",
|
||||
},
|
||||
{
|
||||
name: "DUPONT Jean",
|
||||
role: "Bénévole",
|
||||
since: "2020",
|
||||
email: "jean.dupont@example.com",
|
||||
phone: "06 12 34 56 78",
|
||||
photo: "../src/assets/react.svg",
|
||||
},
|
||||
];
|
||||
|
||||
const volunteerList = [];
|
||||
for (let i = 0; i < volunteers.length; i++) {
|
||||
volunteerList.push(
|
||||
<Volunteer
|
||||
key={i}
|
||||
name={volunteers[i].name}
|
||||
role={volunteers[i].role}
|
||||
since={volunteers[i].since}
|
||||
email={volunteers[i].email}
|
||||
phone={volunteers[i].phone}
|
||||
photo={volunteers[i].photo}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<h2>Liste des Bénévoles</h2>
|
||||
<div>{volunteerList}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default VolunteerPage;
|
||||
Reference in new issue
Block a user