fix reglage css
This commit is contained in:
@@ -14,19 +14,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.modal {
|
.modal {
|
||||||
padding: 20px 20px 20px 20px;
|
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
min-width: 300px;
|
min-width: 300px;
|
||||||
max-width: 70%;
|
max-width: 70%;
|
||||||
max-height: none;
|
max-height: none;
|
||||||
position: relative;
|
position: relative;
|
||||||
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
|
|
||||||
width: clamp(300px, 50vw, 600px);
|
width: clamp(300px, 50vw, 600px);
|
||||||
border: 1px solid rgba(200, 200, 200, 0.3);
|
|
||||||
background: rgba(255, 255, 255, 0.5);
|
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
-webkit-backdrop-filter: blur(10px);
|
-webkit-backdrop-filter: blur(10px);
|
||||||
color: #000;
|
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ const Modal = ({ open, onClose, children, title }: ModalProps) => {
|
|||||||
|
|
||||||
return createPortal(
|
return createPortal(
|
||||||
<div className={styles.overlay} onClick={handleOverlayClick}>
|
<div className={styles.overlay} onClick={handleOverlayClick}>
|
||||||
<div className={styles.modal} onClick={handleModalClick}>
|
<div className={`glassCard ${styles.modal}`} onClick={handleModalClick}>
|
||||||
{title && <h2>{title}</h2>}
|
{title && <h2>{title}</h2>}
|
||||||
{children}
|
{children}
|
||||||
<div className={styles.modalFooter}>
|
<div className={styles.modalFooter}>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settingImage {
|
.settingAccount {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -126,7 +126,7 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settingImage {
|
.settingAcount {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
@@ -144,6 +144,11 @@ function ProfilePage() {
|
|||||||
{user?.isAdmin && profileUser && !isOwnProfile && (
|
{user?.isAdmin && profileUser && !isOwnProfile && (
|
||||||
<ManageMember userToManage={profileUser} />
|
<ManageMember userToManage={profileUser} />
|
||||||
)}
|
)}
|
||||||
|
{isOwnProfile && (
|
||||||
|
<div className={styles.settingAccount}>
|
||||||
|
<SettingsModal />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={styles.topDescription}>
|
<div className={styles.topDescription}>
|
||||||
@@ -157,11 +162,6 @@ function ProfilePage() {
|
|||||||
<p><strong>Téléphone :</strong> {profileUser?.phone ?? "Non renseigné"}</p>
|
<p><strong>Téléphone :</strong> {profileUser?.phone ?? "Non renseigné"}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{isOwnProfile && (
|
|
||||||
<div className={styles.settingImage}>
|
|
||||||
<SettingsModal />
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>Tâches :</h2>
|
<h2>Tâches :</h2>
|
||||||
|
|||||||
@@ -89,18 +89,7 @@ export default function SettingsModal() {
|
|||||||
>
|
>
|
||||||
<div className={styles.content}>
|
<div className={styles.content}>
|
||||||
<div className={`glassBorder ${styles.section}`}>
|
<div className={`glassBorder ${styles.section}`}>
|
||||||
<h3>Compte</h3>
|
<h3>Modifier les informations du compte</h3>
|
||||||
|
|
||||||
<Button variant="danger" onClick={handleLogout}>
|
|
||||||
Déconnexion
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
<Button
|
|
||||||
variant="danger"
|
|
||||||
onClick={() => setIsDelete(true)}
|
|
||||||
>
|
|
||||||
Supprimer le compte
|
|
||||||
</Button>
|
|
||||||
<div className={styles.test}>
|
<div className={styles.test}>
|
||||||
<h4>Changer de Prénom</h4>
|
<h4>Changer de Prénom</h4>
|
||||||
<TextInput
|
<TextInput
|
||||||
@@ -140,6 +129,21 @@ export default function SettingsModal() {
|
|||||||
<h3>Apparence</h3>
|
<h3>Apparence</h3>
|
||||||
<ThemeSwitcher/>
|
<ThemeSwitcher/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className={`glassBorder ${styles.section}`}>
|
||||||
|
<h3>Sécurité du compte</h3>
|
||||||
|
|
||||||
|
<Button variant="danger" onClick={handleLogout}>
|
||||||
|
Déconnexion
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
variant="danger"
|
||||||
|
onClick={() => setIsDelete(true)}
|
||||||
|
>
|
||||||
|
Supprimer le compte
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user