mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-10 01:24:20 +02:00
Improve /profil
This commit is contained in:
parent
ce13e0c8b4
commit
60b7824011
@ -30,9 +30,6 @@ const MainMenu: FC = (): JSX.Element | null => {
|
|||||||
<li className={styles.mainMenuItem}>
|
<li className={styles.mainMenuItem}>
|
||||||
<a href="/profil">Mon profil</a>
|
<a href="/profil">Mon profil</a>
|
||||||
</li>
|
</li>
|
||||||
<li className={styles.mainMenuItem}>
|
|
||||||
<a href="/equipes">Equipes</a>
|
|
||||||
</li>
|
|
||||||
<button type="button" className={styles.close} onClick={onClose}>
|
<button type="button" className={styles.close} onClick={onClose}>
|
||||||
×
|
×
|
||||||
</button>
|
</button>
|
||||||
|
@ -16,7 +16,7 @@ import VolunteerConfirmation from "../VolunteerConfirmation/VolunteerConfirmatio
|
|||||||
const Board: FC = (): JSX.Element => (
|
const Board: FC = (): JSX.Element => (
|
||||||
<>
|
<>
|
||||||
<VolunteerConfirmation />
|
<VolunteerConfirmation />
|
||||||
<ContentTitle title="Pour le jour J" />
|
<ContentTitle title="Profil spécifique au festival" />
|
||||||
<DayWishes />
|
<DayWishes />
|
||||||
<DayWishesFormModal />
|
<DayWishesFormModal />
|
||||||
<ParticipationDetails />
|
<ParticipationDetails />
|
||||||
|
@ -14,9 +14,10 @@ const DayWishes: FC = (): JSX.Element | null => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.dayWishes}>
|
<div className={styles.dayWishes}>
|
||||||
|
<div className={styles.title}>Mes présences</div>
|
||||||
<div className={styles.daysLine}>
|
<div className={styles.daysLine}>
|
||||||
<span className={styles.dayLineTitle}>Mes jours de présence :</span>
|
<span className={styles.dayLineTitle}>Mes jours :</span>
|
||||||
{dayWishesString && <span>{dayWishesString}</span>}
|
{dayWishesString && <b>{dayWishesString}</b>}
|
||||||
{!dayWishesString && <span className={styles.dayLineEmpty}>Non renseignés</span>}
|
{!dayWishesString && <span className={styles.dayLineEmpty}>Non renseignés</span>}
|
||||||
</div>
|
</div>
|
||||||
{comment && (
|
{comment && (
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
@import "../../../theme/variables";
|
@import "../../../theme/variables";
|
||||||
@import "../../../theme/mixins";
|
@import "../../../theme/mixins";
|
||||||
|
|
||||||
|
.title {
|
||||||
|
padding-bottom: 5px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
.dayWishes {
|
.dayWishes {
|
||||||
@include inner-content-wrapper();
|
@include inner-content-wrapper();
|
||||||
|
|
||||||
@ -17,7 +22,6 @@
|
|||||||
|
|
||||||
.dayLineTitle {
|
.dayLineTitle {
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
font-weight: bold;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dayLineEmpty {
|
.dayLineEmpty {
|
||||||
|
@ -50,7 +50,7 @@ const DayWishesForm: FC<Props> = ({ afterSubmit }): JSX.Element => {
|
|||||||
}, [selection, commentRef, saveWishes, afterSubmit])
|
}, [selection, commentRef, saveWishes, afterSubmit])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.dayWishesForm}>
|
<div>
|
||||||
<div className={styles.dayWishesTitle}>Mes jours de présence</div>
|
<div className={styles.dayWishesTitle}>Mes jours de présence</div>
|
||||||
<ul className={styles.dayWishesList}>
|
<ul className={styles.dayWishesList}>
|
||||||
{daysChoice.map(({ id, label }) => (
|
{daysChoice.map(({ id, label }) => (
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
@import "../../../theme/variables";
|
@import "../../../theme/variables";
|
||||||
@import "../../../theme/mixins";
|
@import "../../../theme/mixins";
|
||||||
|
|
||||||
.dayWishesForm {
|
|
||||||
width: 470px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dayWishesTitle {
|
.dayWishesTitle {
|
||||||
padding: 15px 0;
|
padding: 15px 0;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@ -13,6 +9,8 @@
|
|||||||
|
|
||||||
.dayWishesList {
|
.dayWishesList {
|
||||||
@include clear-ul-style;
|
@include clear-ul-style;
|
||||||
|
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dayWishesItem {
|
.dayWishesItem {
|
||||||
|
@ -23,30 +23,30 @@ const ParticipationDetails: FC<Props> = (): JSX.Element | null => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.root}>
|
<div className={styles.root}>
|
||||||
<div className={styles.title}>Mes informations pour le festival</div>
|
<div className={styles.title}>Mes infos logistiques</div>
|
||||||
{tshirtCount === 0 && (
|
{tshirtCount === 0 && (
|
||||||
<div className={styles.line}>
|
<div className={styles.line}>
|
||||||
Je n'ai <b>aucun t-shirt</b>. (Taille <b>{tshirtSize}</b>)
|
Je n'ai <b>aucun t-shirt</b> et je suis taillé <b>{tshirtSize}</b>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{tshirtCount === 1 && (
|
{tshirtCount === 1 && (
|
||||||
<div className={styles.line}>
|
<div className={styles.line}>
|
||||||
J'ai déjà <b>1 t-shirt</b>. (Taille <b>{tshirtSize}</b>)
|
J'ai déjà <b>1 t-shirt</b> et je suis taillé <b>{tshirtSize}</b>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{tshirtCount === 2 && (
|
{tshirtCount === 2 && (
|
||||||
<div className={styles.line}>
|
<div className={styles.line}>
|
||||||
J'ai déjà <b>2 t-shirts</b>.
|
J'ai déjà <b>2 t-shirts</b>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{adult === 0 && (
|
{adult === 0 && (
|
||||||
<div className={styles.line}>
|
<div className={styles.line}>
|
||||||
Je suis <b>mineur</b>
|
Je serai <b>mineur</b> les 2-3 juillet 2022
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{adult === 1 && (
|
{adult === 1 && (
|
||||||
<div className={styles.line}>
|
<div className={styles.line}>
|
||||||
Je suis <b>majeur</b>
|
Je serai <b>majeur</b> les 2-3 juillet 2022
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className={styles.line}>
|
<div className={styles.line}>
|
||||||
|
@ -61,7 +61,7 @@ const ParticipationDetailsForm: FC<Props> = ({ afterSubmit }): JSX.Element | nul
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className={styles.title}>Mes informations pour le festival</div>
|
<div className={styles.title}>Mes infos logistiques</div>
|
||||||
<div className={styles.inputWrapper}>
|
<div className={styles.inputWrapper}>
|
||||||
<div className={styles.leftCol}>
|
<div className={styles.leftCol}>
|
||||||
<div className={styles.tshirtCountTitle}>Combien as-tu de t-shirts PeL ?</div>
|
<div className={styles.tshirtCountTitle}>Combien as-tu de t-shirts PeL ?</div>
|
||||||
@ -98,10 +98,12 @@ const ParticipationDetailsForm: FC<Props> = ({ afterSubmit }): JSX.Element | nul
|
|||||||
</div>
|
</div>
|
||||||
<div className={styles.inputWrapper}>
|
<div className={styles.inputWrapper}>
|
||||||
<div className={styles.leftCol}>
|
<div className={styles.leftCol}>
|
||||||
<div className={styles.tshirtSizesTitle}>Taille</div>
|
<label htmlFor="tshirtSize" className={styles.tshirtSizesTitle}>
|
||||||
|
Taille
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<select ref={sizeRef} className={styles.tshirtCountSelect}>
|
<select id="tshirtSize" ref={sizeRef} className={styles.tshirtCountSelect}>
|
||||||
{tshirtSizes.map((size) => (
|
{tshirtSizes.map((size) => (
|
||||||
<option key={size} value={size}>
|
<option key={size} value={size}>
|
||||||
{size}
|
{size}
|
||||||
@ -138,7 +140,9 @@ const ParticipationDetailsForm: FC<Props> = ({ afterSubmit }): JSX.Element | nul
|
|||||||
</div>
|
</div>
|
||||||
<div className={styles.inputWrapper}>
|
<div className={styles.inputWrapper}>
|
||||||
<div className={styles.leftCol}>
|
<div className={styles.leftCol}>
|
||||||
<label htmlFor="dday-diet">Préférence alimentaire</label>
|
<label className={styles.foodTitle} htmlFor="dday-diet">
|
||||||
|
Préférence alimentaire
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<input
|
<input
|
||||||
|
@ -3,12 +3,13 @@
|
|||||||
|
|
||||||
.title {
|
.title {
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
|
margin: 15px 0;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.inputWrapper {
|
.inputWrapper {
|
||||||
margin: 10px 0;
|
margin: 25px 0;
|
||||||
|
|
||||||
@include desktop {
|
@include desktop {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -29,28 +30,26 @@
|
|||||||
flex: 0 0 240px;
|
flex: 0 0 240px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tshirtWrapper {
|
|
||||||
margin: 10px 0;
|
|
||||||
height: 28px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tshirtCountTitle {
|
.tshirtCountTitle {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-top: 6px;
|
|
||||||
width: 240px;
|
width: 240px;
|
||||||
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tshirtCountLabel {
|
.tshirtCountLabel {
|
||||||
|
margin-bottom: 10px;
|
||||||
width: 55px;
|
width: 55px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tshirtSizesTitle {
|
.tshirtSizesTitle {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 240px;
|
width: 240px;
|
||||||
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tshirtCountSelect {
|
.tshirtCountSelect {
|
||||||
width: 120px;
|
width: 120px;
|
||||||
|
margin-bottom: 10px;
|
||||||
border: 1px solid $color-grey-medium;
|
border: 1px solid $color-grey-medium;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background-color: $color-white;
|
background-color: $color-white;
|
||||||
@ -59,11 +58,12 @@
|
|||||||
|
|
||||||
.adultTitle {
|
.adultTitle {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-top: 6px;
|
|
||||||
width: 240px;
|
width: 240px;
|
||||||
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.adultLabel {
|
.adultLabel {
|
||||||
|
margin-bottom: 10px;
|
||||||
width: 55px;
|
width: 55px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -71,3 +71,7 @@
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.foodTitle {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
@ -31,7 +31,11 @@ const TeamWishes: FC<Props> = (): JSX.Element | null => {
|
|||||||
return (
|
return (
|
||||||
<div className={styles.root}>
|
<div className={styles.root}>
|
||||||
<div className={styles.title}>Mon choix d'équipe</div>
|
<div className={styles.title}>Mon choix d'équipe</div>
|
||||||
{teamWishesString && <span>{teamWishesString}</span>}
|
{teamWishesString && (
|
||||||
|
<span>
|
||||||
|
Mes équipes préférées : <b>{teamWishesString}</b>
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
{!teamWishesString && <span className={styles.lineEmpty}>Non renseignés</span>}
|
{!teamWishesString && <span className={styles.lineEmpty}>Non renseignés</span>}
|
||||||
{comment && (
|
{comment && (
|
||||||
<div className={styles.commentLine}>
|
<div className={styles.commentLine}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user