-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
101 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
export default function BoutonRadio({ children, id, nomGroupe }) { | ||
return ( | ||
<div className="fr-fieldset__element"> | ||
<div className="fr-radio-group"> | ||
<input type="radio" id={id} name={nomGroupe} required /> | ||
<label className="fr-label" htmlFor={id}> | ||
{children} | ||
</label> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
BoutonRadio.propTypes = { | ||
children: PropTypes.node, | ||
id: PropTypes.string, | ||
nomGroupe: PropTypes.string, | ||
}; |
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
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
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,17 @@ | ||
import React from 'react'; | ||
|
||
export default function Disponibilite() { | ||
return ( | ||
<fieldset className="fr-border cc-section fr-p-3w fr-mb-3w" id="votreDisponibilite"> | ||
<legend className="fr-h5">Votre disponibilité</legend> | ||
<p className="fr-text--sm fr-hint-text">Les champs avec <span className="cc-obligatoire">*</span> sont obligatoires.</p> | ||
<hr /> | ||
<p className="fr-mb-3w cc-bold"> | ||
À quel moment êtes-vous prêt(e) à démarrer votre mission et la formation de conseiller numérique ? <span className="cc-obligatoire">*</span> | ||
</p> | ||
<p className="fr-text--sm fr-hint-text"> | ||
Accompagnement de personnes vers l’autonomie dans leurs usages de technologies, services et médias numériques. | ||
</p> | ||
</fieldset> | ||
); | ||
} |
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
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 |
---|---|---|
@@ -1,30 +1,36 @@ | ||
import React from 'react'; | ||
|
||
export default function Sommaire() { | ||
const partiesSommaire = [ | ||
{ | ||
ancre: '#informationsDeContact', | ||
libelle: 'Vos informations de contact' | ||
}, | ||
{ | ||
ancre: '#situtationEtExperience', | ||
libelle: 'Votre situation et expérience' | ||
}, | ||
{ | ||
ancre: '#votreDisponibilite', | ||
libelle: 'Votre disponibilité' | ||
}, | ||
{ | ||
ancre: '#votreMotivation', | ||
libelle: 'Votre motivation' | ||
}, | ||
]; | ||
|
||
return ( | ||
<nav aria-label="Sommaire" className="fr-sidemenu fr-mt-15w"> | ||
<ol className="fr-sidemenu__list"> | ||
<li className="fr-sidemenu__item fr-sidemenu__item--active"> | ||
<a href="#informationsDeContact" className="fr-sidemenu__link"> | ||
Vos informations de contact | ||
</a> | ||
</li> | ||
<li className="fr-sidemenu__item fr-sidemenu__item--active"> | ||
<a href="#situtationEtExperience" className="fr-sidemenu__link"> | ||
Votre situation et expérience | ||
</a> | ||
</li> | ||
<li className="fr-sidemenu__item fr-sidemenu__item--active"> | ||
<a href="#votreDisponibilite" className="fr-sidemenu__link"> | ||
Votre disponibilité | ||
</a> | ||
</li> | ||
<li className="fr-sidemenu__item fr-sidemenu__item--active"> | ||
<a href="#votreDisponibilite" className="fr-sidemenu__link"> | ||
Votre motivation | ||
</a> | ||
</li> | ||
{partiesSommaire.map(({ ancre, libelle }, index) => ( | ||
<li className="fr-sidemenu__item fr-sidemenu__item--active" key={index}> | ||
<a href={ancre} className="fr-sidemenu__link"> | ||
{libelle} | ||
</a> | ||
</li> | ||
))} | ||
</ol> | ||
</nav> | ||
</nav > | ||
); | ||
} |