mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
[ongoing] cookies consent modal
This commit is contained in:
parent
f9686eaaea
commit
7fc03af6bc
@ -35,6 +35,7 @@
|
||||
@import "modules/invoice";
|
||||
@import "modules/signup";
|
||||
@import "modules/abuses";
|
||||
@import "modules/cookies";
|
||||
|
||||
@import "app.responsive";
|
||||
|
||||
|
27
app/assets/stylesheets/modules/cookies.scss
Normal file
27
app/assets/stylesheets/modules/cookies.scss
Normal file
@ -0,0 +1,27 @@
|
||||
#cookies-consent {
|
||||
display: flex;
|
||||
position: fixed;
|
||||
bottom: 2rem;
|
||||
left: 2rem;
|
||||
width: 40rem;
|
||||
height: 20rem;
|
||||
background-color: blue;
|
||||
color: white;
|
||||
padding: 4rem;
|
||||
flex-direction: column;
|
||||
|
||||
.cookies-actions {
|
||||
button {
|
||||
width: 50%;
|
||||
|
||||
}
|
||||
button.decline {
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
}
|
||||
button.accept {
|
||||
background-color: red;
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
}
|
@ -58,4 +58,14 @@
|
||||
<a href="<%= "/users/auth/#{active_provider.strategy_name}"%>" class="font-sbold label text-md"><i class="fa fa-sign-in"></i> {{ 'sign_in' | translate }}</a>
|
||||
</li>
|
||||
<% end %>
|
||||
<section id="cookies-consent">
|
||||
<p class="cookies-infos">
|
||||
<span translate>{{ 'cookies.about_cookies' }}</span>
|
||||
<a ui-sref="app.public.privacy" translate>{{ 'cookies.learn_more' }}</a>
|
||||
</p>
|
||||
<div class="cookies-actions">
|
||||
<button class="decline" translate>{{ 'cookies.decline' }}</button>
|
||||
<button class="accept" translate>{{ 'cookies.accept' }}</button>
|
||||
</div>
|
||||
</section>
|
||||
</ul>
|
||||
|
@ -6,6 +6,13 @@ fr:
|
||||
about_the_fablab: "A propos {GENDER, select, male{du} female{de la} neutral{} other{des}} {NAME}" # messageFormat interpolation
|
||||
return: "Retour"
|
||||
|
||||
# cookies
|
||||
cookies:
|
||||
about_cookies: "Ce site web utilise des cookies à des fins statistiques de mesure d'audiance."
|
||||
learn_more: "En savoir plus"
|
||||
accept: "Accepter les cookies"
|
||||
decline: "Refuser"
|
||||
|
||||
# sections du tableau de bord
|
||||
dashboard: "Tableau de bord"
|
||||
my_profile: "Mon profil"
|
||||
|
Loading…
x
Reference in New Issue
Block a user