-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from diodechain/hansr/cookies
Cookie consent
- Loading branch information
Showing
7 changed files
with
198 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{%- if include.data -%} | ||
{% assign data = page[include.data] %} | ||
{% else %} | ||
{% assign data = page.popup %} | ||
{% endif %} | ||
|
||
<div class="popup" id="{{ include.id }}"> | ||
<div class="popup__space"> | ||
<aside class="popup__content"> | ||
<header class="popup__header"> | ||
<h3 class="popup__title">Cookie consent</h3> | ||
</header> | ||
<div class="cookies-consent"> | ||
<p>Cookies help us to know which of our marketing efforts are working. Click Accept if you want to help us figure that out. Click Reject if you'd rather just do your thing.</p> | ||
<p>By clicking "Accept", you consent to our use of cookies. <a href="{{ site.links.privacy.url }}">Privacy Policy</a>.</p> | ||
<hr> | ||
<div class="cookies-consent__buttons"> | ||
<button type="button" class="btn cookie-accept">Accept</button> | ||
<button type="button" class="btn btn--bordered cookie-reject">Reject</button> | ||
</div> | ||
</div> | ||
</aside> | ||
</div> | ||
</div> |
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
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
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,53 @@ | ||
/* ========================================================================== | ||
COOKIES CONSENT | ||
========================================================================== */ | ||
.cookies-consent { | ||
font-size: 14px; | ||
line-height: 1.428em; | ||
@include media-breakpoint-up(md) { | ||
font-size: 16px; | ||
} | ||
@include media-breakpoint-up(xl) { | ||
font-size: 17px; | ||
} | ||
|
||
hr { | ||
margin: 1em 0; | ||
} | ||
|
||
&__buttons { | ||
display: flex; | ||
justify-content: center; | ||
gap: 10px; | ||
@include media-breakpoint-up(sm) { | ||
gap: 20px; | ||
} | ||
@include media-breakpoint-up(xl) { | ||
gap: 50px; | ||
} | ||
|
||
.btn { | ||
cursor: pointer; | ||
@include media-breakpoint-down(sm) { | ||
min-width: 120px; | ||
padding-right: 10px; | ||
padding-left: 10px; | ||
} | ||
@include media-breakpoint-up(xl) { | ||
min-width: 220px; | ||
padding-right: 40px; | ||
padding-left: 40px; | ||
} | ||
} | ||
} | ||
} | ||
#cookies-consent { | ||
.popup__space { | ||
padding: 0; | ||
justify-content: flex-end; | ||
} | ||
|
||
.popup__content { | ||
max-width: none; | ||
} | ||
} |
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
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
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