Browse Source

update(assets): change gnous logo

fix(cookie): remove cookie banner (csrf no need cookie banner) (close #17)
master
Romain J 3 weeks ago
parent
commit
3f7e775526
6 changed files with 264 additions and 31 deletions
  1. BIN
      .idea/sonarlint/issuestore/index.pb
  2. +1
    -17
      apps/gnous_eu/templates/layouts/foot.html
  3. +1
    -13
      apps/gnous_eu/templates/layouts/footer.html

+ 262
- 1
.idea/sonarlint/issuestore/index.pb
File diff suppressed because it is too large
View File


+ 1
- 17
apps/gnous_eu/templates/layouts/foot.html View File

@ -15,7 +15,7 @@ Don't judge me
window.theme = document.querySelector('input[name=theme]');
theme.checked = document.documentElement.getAttribute('data-theme') === 'dark';
window.applyTheme = function(theme) {
window.applyTheme = function (theme) {
document.documentElement.setAttribute('data-theme', theme);
let cards = document.querySelectorAll(".uk-card.uk-card-default,.uk-card.uk-card-secondary");
@ -35,22 +35,6 @@ Don't judge me
})
</script>
<!-- cookie banner -->
<script>
cookies = document.cookie.split('; ');
banner_cookie = document.cookie.split('; ').filter(e => e.startsWith('cookie-banner='))[0];
banner_cookie_div = document.getElementById("banner_cookie_div");
if (banner_cookie === undefined || banner_cookie.split('cookie-banner=')[1] !== 'hidden') {
banner_cookie_div.addEventListener('click', event => {
document.cookie = 'cookie-banner=hidden';
banner_cookie_div.style.display = "none"
});
} else {
banner_cookie_div.style.display = "none"
}
</script>
<!-- sidebar -->
<script>
offcanvas_nav = document.getElementById("offcanvas-nav");

+ 1
- 13
apps/gnous_eu/templates/layouts/footer.html View File

@ -31,16 +31,4 @@
</label>
</div>
</div>
</footer>
<div id="banner_cookie_div" class="uk-notification uk-notification-bottom-center" style="display: block">
<div class="uk-notification-message" style="opacity: 1; margin-bottom: 0px;">
<a href="" class="uk-notification-close uk-icon uk-close">
<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" data-svg="close-icon">
<line fill="none" stroke="#000" stroke-width="1.1" x1="1" y1="1" x2="13" y2="13"></line>
<line fill="none" stroke="#000" stroke-width="1.1" x1="13" y1="1" x2="1" y2="13"></line>
</svg>
</a>
<div>{% trans "Bla bla bla... bannière alakon pour dire qu&amp;on utilise des cookies (pour la langue et cette bannière)" %}</div>
</div>
</div>
</footer>

Loading…
Cancel
Save