-
Notifications
You must be signed in to change notification settings - Fork 0
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 #4 from giannistolou/feature/footer
feat: create footer
- Loading branch information
Showing
9 changed files
with
185 additions
and
1 deletion.
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
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 |
---|---|---|
|
@@ -73,5 +73,6 @@ | |
</div> | ||
{% include "cafesList.html" %} | ||
</main> | ||
{% include "footer.html" %} | ||
</body> | ||
</html> |
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,70 @@ | ||
<div class="cookie-banner" style="display: none"> | ||
<p> | ||
Χρησιμοποιούμε cookies για την υπηρεσία του newsletter, για περισσότερα | ||
διάβασε την | ||
<a href="https://book-community.com/privacy-policy.html" | ||
>πολιτική απορρήτου</a | ||
> | ||
</p> | ||
<div class="options"> | ||
<button class="decline" onclick="closeCookieBanner()">Απόρριψη</button> | ||
<button class="accept" onclick="acceptCookies()">Αποδοχή</button> | ||
</div> | ||
</div> | ||
|
||
<section class="newsletter"> | ||
<div class="container"> | ||
<div class="title">Κάνε εγγραφή στο newsletter μας</div> | ||
<div class="subtitle"> | ||
Για να μαθαίνεις την πορεία του project και ενδιαφέροντα θέματα γύρω | ||
από το βιβλίο! | ||
</div> | ||
|
||
<div id="newsletterProblem" style="display: none"> | ||
<p style="text-align: center"> | ||
Αποδεχτείτε τα cookies για να κάνετε εγγραφή στο newsletter | ||
</p> | ||
<button class="btnCookie" onclick="acceptCookies()"> | ||
Αποδοχή cookies | ||
</button> | ||
</div> | ||
<form class="form"> | ||
<iframe | ||
title="newsletter iframe" | ||
frameborder="0" | ||
scrolling="no" | ||
></iframe> | ||
</form> | ||
</div> | ||
</section> | ||
|
||
<script> | ||
var cookieBanner = document.querySelector(".cookie-banner"); | ||
var decline = document.querySelector(".decline"); | ||
var accept = document.querySelector(".accept"); | ||
var iframes = document.querySelectorAll("iframe"); | ||
var newsletterProblem = document.querySelector("#newsletterProblem"); | ||
|
||
if (localStorage.getItem("cookieSeen") != "shown") { | ||
cookieBanner.style.display = "flex"; | ||
newsletterProblem.style.display = "flex"; | ||
} else { | ||
acceptCookies(); | ||
} | ||
|
||
function closeCookieBanner() { | ||
cookieBanner.style.animation = "cookieHide 1s"; | ||
setTimeout(() => { | ||
cookieBanner.style.display = "none"; | ||
}, 1000); | ||
} | ||
|
||
function acceptCookies() { | ||
closeCookieBanner(); | ||
newsletterProblem.style.display = "none"; | ||
localStorage.setItem("cookieSeen", "shown"); | ||
iframes.forEach((el) => { | ||
el.src = "https://bookcommunitygr.substack.com/embed"; | ||
}); | ||
} | ||
</script> |
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 |
---|---|---|
|
@@ -73,5 +73,6 @@ | |
</div> | ||
{% include "cafesList.html" %} | ||
</main> | ||
{% include "footer.html" %} | ||
</body> | ||
</html> |
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,105 @@ | ||
@import "./theme.scss"; | ||
|
||
.newsletter { | ||
align-items: center; | ||
display: flex; | ||
min-height: 50vh; | ||
padding-top: 5rem; | ||
@media only screen and (min-width: $lg) { | ||
min-height: 35vh; | ||
} | ||
|
||
.title { | ||
padding: 1 0; | ||
text-align: center; | ||
font-size: 2rem; | ||
} | ||
background-color: $newsletter-background; | ||
color: $on-newsletter; | ||
min-height: 30vh; | ||
.subtitle { | ||
letter-spacing: -0.012em; | ||
line-height: 1.5; | ||
font-family: Cahuenga, serif; | ||
max-width: 700px; | ||
font-weight: 400; | ||
font-size: 1.2rem; | ||
text-align: center; | ||
margin: 0.5rem 0; | ||
padding: 0 1rem; | ||
text-align: center; | ||
} | ||
|
||
iframe { | ||
width: 100%; | ||
} | ||
} | ||
|
||
.btnCookie { | ||
font-size: 1rem; | ||
background-color: $newsletter-background; | ||
color: $on-newsletter; | ||
border-radius: 5px; | ||
padding: 1rem; | ||
text-decoration: none; | ||
width: fit-content; | ||
margin-left: auto; | ||
margin-right: auto; | ||
cursor: pointer; | ||
} | ||
|
||
#newsletterProblem { | ||
display: flex; | ||
justify-content: center; | ||
flex-direction: column; | ||
} | ||
|
||
.cookie-banner { | ||
z-index: 10; | ||
position: fixed; | ||
bottom: 0; | ||
padding: 1rem; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: space-between; | ||
background-color: $secondary; | ||
border-radius: 5px; | ||
box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2); | ||
|
||
@media only screen and (min-width: $lg) { | ||
width: 100%; | ||
bottom: 40px; | ||
left: 10%; | ||
right: 10%; | ||
width: 80%; | ||
padding: 5px 14px; | ||
flex-direction: row; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
cursor: pointer; | ||
color: $on-secondary; | ||
border-bottom: 1px solid $primary; | ||
} | ||
|
||
.options { | ||
padding: 1rem 0; | ||
column-gap: 1rem; | ||
row-gap: 1rem; | ||
} | ||
button { | ||
border: none; | ||
padding: 1rem * 0.5; | ||
background-color: inherit; | ||
cursor: pointer; | ||
} | ||
.accept { | ||
font-size: 1rem; | ||
background-color: $newsletter-background; | ||
color: $on-newsletter; | ||
border-radius: 5px; | ||
padding: 0.75rem; | ||
} | ||
} |
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