Skip to content

Commit

Permalink
[REMANIEMENT] Factorise style boutons
Browse files Browse the repository at this point in the history
Co-authored-by: Fabien Lamarque <[email protected]>
  • Loading branch information
egaillot and Fabinout committed Jun 11, 2024
1 parent 9362b26 commit a74f4cc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
31 changes: 15 additions & 16 deletions public/assets/styles/pageAccueil.css
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
.bouton-franceconnect {
display: block;
cursor: pointer;
.bouton {
display: block;
cursor: pointer;

width: 256px;
height: 60px;
margin-bottom: 12px;
background-image: url(/statique/assets/images/bouton_france_connect_plus.svg);
width: 256px;
height: 60px;
background-repeat: no-repeat;
background-size: contain;
}

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

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

width: 256px;
height: 60px;
.bouton.eidas {
margin-top: 12px;
background: url(/statique/assets/images/bouton_eidas.png) no-repeat;
background-size: contain;
background-image: url(/statique/assets/images/bouton_eidas.png);
}

.nouvel-onglet::after{
Expand Down
4 changes: 2 additions & 2 deletions src/vues/pageAccueil.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
<p>
FranceConnect+ est la solution proposée par l'État pour renforcer la sécurité de vos services en ligne les plus sensibles.
</p>
<a class="bouton-franceconnect" href="/auth/fcplus/creationSession"></a>
<a class="bouton franceconnect" href="/auth/fcplus/creationSession"></a>
<a href="https://franceconnect.gouv.fr/france-connect-plus" class="nouvel-onglet" target="_blank">Qu'est-ce que FranceConnect+ ?</a>
{{#avecConnexionEIDAS}}
<a class="bouton-eidas" href="/auth/fcplus/creationSession?eidas"></a>
<a class="bouton eidas" href="/auth/fcplus/creationSession?eidas"></a>
{{/avecConnexionEIDAS}}
</div>
{{/infosUtilisateur}}
Expand Down

0 comments on commit a74f4cc

Please sign in to comment.