diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 5d0e670..737c682 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -5,6 +5,7 @@ import Participation from './pages/Participation' import MesGains from './pages/MesGains' import Employe from './pages/Employe' import Admin from './pages/Admin' +import Profile from './pages/Profile' export default function App() { return ( @@ -17,6 +18,7 @@ export default function App() { } /> } /> } /> + } /> ) diff --git a/frontend/src/pages/Profile.jsx b/frontend/src/pages/Profile.jsx new file mode 100644 index 0000000..e7fa9c9 --- /dev/null +++ b/frontend/src/pages/Profile.jsx @@ -0,0 +1,94 @@ +import { useState } from 'react' + +export default function Profile() { + const [form, setForm] = useState({ + firstName: '', + lastName: '', + email: '', + }) + + const handleChange = (e) => { + const { name, value } = e.target + setForm({ ...form, [name]: value }) + } + + const handleSubmit = (e) => { + e.preventDefault() + // TODO: appeler backend pour update profil + alert('Profil mis à jour') + } + + // Initiales pour l'avatar + const initials = 'MD' + + return ( +
+
+

Mon Profil

+ {/* Avatar */} +
+
+ {initials} +
+
+ + {/* Formulaire */} +
+ + {/* Email */} +
+ + +
+ + {/* Nom */} +
+ + +
+ + {/* Prénom */} +
+ + +
+ + {/* Bouton de soumission */} + +
+
+
+ ) +} \ No newline at end of file