-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cookies banner as component (#148)
* Add cookies banner as component * Add new cookies banner * update color and comment * Remove from App
- Loading branch information
Willy Brauner
authored
Oct 19, 2023
1 parent
e9c4f9a
commit 8d21eca
Showing
5 changed files
with
431 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
apps/front/src/libs/components/cookiesBanner/CookiesBanner.module.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
@import (reference) "../../../references.less"; | ||
|
||
.root { | ||
position: fixed; | ||
bottom: 0; | ||
width: 100%; | ||
height: auto; | ||
padding: 30rem; | ||
|
||
transform: translateY(100%); | ||
transition: 400ms var(--ease-back-in); | ||
transition-property: transform, opacity; | ||
|
||
&_show { | ||
transform: translateY(0); | ||
opacity: 1; | ||
} | ||
&_hide { | ||
transform: translateY(100%); | ||
pointer-events: none; | ||
} | ||
|
||
@media (min-width: @breakpoint-tablet) { | ||
width: 30%; | ||
right: 0; | ||
} | ||
} | ||
|
||
.wrapper { | ||
width: 100%; | ||
color: var(--color-white); | ||
background-color: var(--color-blue-cher-ami); | ||
border-radius: 10rem; | ||
padding: 28rem 19rem; | ||
margin: 0 auto; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.text { | ||
} | ||
|
||
.buttons { | ||
margin-top: 10rem; | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
text-align: center; | ||
gap: 10rem; | ||
} | ||
|
||
.button { | ||
text-decoration: underline; | ||
cursor: pointer; | ||
opacity: 1; | ||
&:hover { | ||
text-decoration: none; | ||
} | ||
} |
Oops, something went wrong.