Skip to content

Commit

Permalink
Suppression variable environnement inutile
Browse files Browse the repository at this point in the history
… Et en attendant de savoir comment afficher le bouton FranceConnect+,
On supprime le code rendu inutile.
  • Loading branch information
egaillot committed Jul 2, 2024
1 parent bccb090 commit b2b05b1
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 77 deletions.
14 changes: 0 additions & 14 deletions public/assets/images/bouton_france_connect_plus.svg

This file was deleted.

14 changes: 0 additions & 14 deletions public/assets/images/bouton_survol_france_connect_plus.svg

This file was deleted.

7 changes: 0 additions & 7 deletions public/assets/images/icone_nouvel_onglet.svg

This file was deleted.

26 changes: 0 additions & 26 deletions public/assets/styles/accueil.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,36 +36,10 @@ section h2 {
background-size: cover;
}

.bouton.franceconnect {
margin-bottom: 12px;
background-image: url(/statique/assets/images/bouton_france_connect_plus.svg);
}

.bouton.franceconnect:hover {
background-image: url(/statique/assets/images/bouton_survol_france_connect_plus.svg);
}

.bouton.eidas {
margin-top: 12px;
background-image: url(/statique/assets/images/bouton_eidas.svg);
}

.bouton.eidas:hover {
background-image: url(/statique/assets/images/bouton_survol_eIDAS.svg);
}

.nouvel-onglet::after{
content: '';
display: inline-block;
width: 1em;
height: 1em;

mask: url(/statique/assets/images/icone_nouvel_onglet.svg);
mask-size: contain;
background-color: var(--bleu-titre);
transform: translateX(.2em) translateY(.25em);
}

a.description-fcplus {
font-size: .9em;
}
1 change: 0 additions & 1 deletion public/assets/styles/palette.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
:root {
--bleu-bordure: #02b;
--bleu-systeme-design-etat: #000091;
--bleu-titre: #00e;
--gris-eidas: #779;
--gris-ombre: #bbb;
--lavande-fond-bandeau: #f5f5fe;
Expand Down
2 changes: 0 additions & 2 deletions src/routes/routesBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ const routesBase = (config) => {
'/',
(...args) => middleware.renseigneUtilisateurCourant(...args),
(requete, reponse) => {
const avecConnexionEIDAS = process.env.AVEC_AUTHENTIFICATION_EIDAS === 'true';
const infosUtilisateur = requete.utilisateurCourant;
const avecConnexionFCPlus = adaptateurEnvironnement.avecConnexionFCPlus();
reponse.render('accueil', {
infosUtilisateur,
avecConnexionFCPlus,
avecConnexionEIDAS,
});
},
);
Expand Down
15 changes: 2 additions & 13 deletions src/vues/accueil.pug
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ extends base

block styles
link(rel='stylesheet', href='/statique/assets/styles/accueil.css')
link(rel='preload', href='/statique/assets/images/bouton_survol_france_connect_plus.svg' as='image')
link(rel='preload', href='/statique/assets/images/bouton_survol_eIDAS.svg' as='image')

block bandeau
Expand All @@ -19,17 +18,7 @@ block page
a(href = '/auth/fcplus/destructionSession') Déconnexion
else
div
if avecConnexionEIDAS
h1 Je me connecte avec le bouton eIDAS
a.bouton.eidas(href = '/auth/fcplus/creationSession?eidas')
else
p.
FranceConnect+ est la solution proposée par l'État pour renforcer la
sécurité de vos services en ligne les plus sensibles.
a.bouton.franceconnect(href = '/auth/fcplus/creationSession')
a.nouvel-onglet.description-fcplus(
href = 'https://franceconnect.gouv.fr/france-connect-plus', target = '_blank'
) Qu'est-ce que FranceConnect+ ?

h1 Je me connecte avec le bouton eIDAS
a.bouton.eidas(href = '/auth/fcplus/creationSession?eidas')
else
p Pas d'utilisateur courant

0 comments on commit b2b05b1

Please sign in to comment.