From 8a2e32d550636d722dbd5a8cc21f4cdcd72bb12c Mon Sep 17 00:00:00 2001 From: Yohan Boujon Date: Sat, 24 Jun 2023 18:16:22 +0200 Subject: [PATCH] Written Legal mentions. Legal popup is now responsive --- components/footer.html | 72 ++++++++++++++++++++++++++++++++++++++++-- css/base.css | 12 ------- css/footer.css | 40 +++++++++++++++++++++++ js/base.js | 2 +- 4 files changed, 110 insertions(+), 16 deletions(-) diff --git a/components/footer.html b/components/footer.html index 396eabd..d2d0049 100644 --- a/components/footer.html +++ b/components/footer.html @@ -1,7 +1,71 @@ - + \ No newline at end of file diff --git a/css/base.css b/css/base.css index a045120..84117df 100644 --- a/css/base.css +++ b/css/base.css @@ -67,16 +67,4 @@ p { backdrop-filter: blur(4px); z-index: 99; display: none; -} - -.legal{ - border-radius: .5rem; - height: 80%; - width: 50%; - position: relative; - top: 10%; - left: 25%; - background-color: var(--color-white); - box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px; - z-index: 100; } \ No newline at end of file diff --git a/css/footer.css b/css/footer.css index 53c0adf..eb08766 100644 --- a/css/footer.css +++ b/css/footer.css @@ -24,6 +24,11 @@ box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px; z-index: 100; } + + .legal h1{ + font-size: xx-large; + margin-left: 2rem; + } } @media screen and (max-width: 700px) { @@ -62,6 +67,11 @@ box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px; z-index: 100; } + + .legal h1{ + font-size: large; + margin-left: 2rem; + } } .footer-container_grid { @@ -98,4 +108,34 @@ .footer-bottom_grid.right-align:hover { transform: translateY(-2px); transition: all .3s ease 0s; +} + +.legal-text { + overflow-y: scroll; + margin: 2rem; + height: inherit; + font-size: small; +} + +.legal-close-container +{ + position: relative; + display: flex; + flex-direction: row; + justify-content: end; +} + +.legal-close{ + border-radius: 100rem; + background-color: rgba(0, 0, 0, 0.0); +} + +.legal-close:hover{ + background-color: var(--color-main-light); + border-radius: 100rem; + transform: translate(2px, -2px); +} + +.legal-close svg{ + font-size: 25px; } \ No newline at end of file diff --git a/js/base.js b/js/base.js index 23fcdc2..f455e1a 100644 --- a/js/base.js +++ b/js/base.js @@ -125,5 +125,5 @@ window.addEventListener('load', function () { setTimeout(() => { //Will change popUpPlacement("black-bg"); - }, 200); + }, 500); }) \ No newline at end of file