From 16dbfbcdb01cc8996866ed7d30706dcacf2d73f3 Mon Sep 17 00:00:00 2001 From: ioannis Apostolou Date: Tue, 16 Aug 2022 19:12:25 +0300 Subject: [PATCH] feat: create footer --- findBookCafe/templates/cafe.html | 1 + findBookCafe/templates/cafes.html | 1 + findBookCafe/templates/commonHead.html | 2 + findBookCafe/templates/footer.html | 70 +++++++++++++++++ findBookCafe/templates/index.html | 1 + findBookCafe/templates/libraries.html | 1 + style/footer.scss | 105 +++++++++++++++++++++++++ style/theme.scss | 4 +- webpack.config.js | 1 + 9 files changed, 185 insertions(+), 1 deletion(-) create mode 100644 findBookCafe/templates/footer.html create mode 100644 style/footer.scss diff --git a/findBookCafe/templates/cafe.html b/findBookCafe/templates/cafe.html index 6c9dfdb..ad40a79 100644 --- a/findBookCafe/templates/cafe.html +++ b/findBookCafe/templates/cafe.html @@ -58,5 +58,6 @@

{{cafe.name}}

{{cafe.description.html | safe}} + {% include "footer.html" %} diff --git a/findBookCafe/templates/cafes.html b/findBookCafe/templates/cafes.html index 9659b44..bfa795d 100644 --- a/findBookCafe/templates/cafes.html +++ b/findBookCafe/templates/cafes.html @@ -73,5 +73,6 @@ {% include "cafesList.html" %} + {% include "footer.html" %} diff --git a/findBookCafe/templates/commonHead.html b/findBookCafe/templates/commonHead.html index dd6df2a..a02889e 100644 --- a/findBookCafe/templates/commonHead.html +++ b/findBookCafe/templates/commonHead.html @@ -1,3 +1,4 @@ +{% load static %} + diff --git a/findBookCafe/templates/footer.html b/findBookCafe/templates/footer.html new file mode 100644 index 0000000..6541f4b --- /dev/null +++ b/findBookCafe/templates/footer.html @@ -0,0 +1,70 @@ + + +
+
+
Κάνε εγγραφή στο newsletter μας
+
+ Για να μαθαίνεις την πορεία του project και ενδιαφέροντα θέματα γύρω + από το βιβλίο! +
+ + +
+ +
+
+
+ + diff --git a/findBookCafe/templates/index.html b/findBookCafe/templates/index.html index d8ef53d..fe22713 100644 --- a/findBookCafe/templates/index.html +++ b/findBookCafe/templates/index.html @@ -43,6 +43,7 @@

+ {% include "footer.html" %} \ No newline at end of file diff --git a/findBookCafe/templates/libraries.html b/findBookCafe/templates/libraries.html index ec3697f..f607cfc 100644 --- a/findBookCafe/templates/libraries.html +++ b/findBookCafe/templates/libraries.html @@ -73,5 +73,6 @@ {% include "cafesList.html" %} + {% include "footer.html" %} diff --git a/style/footer.scss b/style/footer.scss new file mode 100644 index 0000000..4a5d293 --- /dev/null +++ b/style/footer.scss @@ -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; + } +} diff --git a/style/theme.scss b/style/theme.scss index 1bfcd38..35d7834 100644 --- a/style/theme.scss +++ b/style/theme.scss @@ -1,7 +1,9 @@ $primary: #635642; -$secondary: #ebeae6; +$secondary: #e3e1de; $on-primary: #ffffff; $on-secondary: $primary; +$newsletter-background: #2f2e41; +$on-newsletter: $on-primary; @use "@material/theme" with ( $primary: $primary, diff --git a/webpack.config.js b/webpack.config.js index da5edf8..182f16d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -9,6 +9,7 @@ module.exports = { "./style/cafes.scss", "./style/cafe.scss", "./style/page404.scss", + "./style/footer.scss", ], output: { filename: "bundle.js",