From c1029dbabce32c635bb8c4b4d91a0271cfe72d8f Mon Sep 17 00:00:00 2001 From: Adrien Allard Date: Wed, 12 Jun 2024 16:53:08 +0200 Subject: [PATCH] feat: move mail link in contact section --- src/lib/nav.html | 1 + src/lib/social_links.html | 1 - src/pages/index.html | 1 + src/pages/index/_style.scss | 1 + src/pages/index/contact.html | 22 ++++++++++++++++++++++ src/pages/index/contact.scss | 21 +++++++++++++++++++++ 6 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 src/pages/index/contact.html create mode 100644 src/pages/index/contact.scss diff --git a/src/lib/nav.html b/src/lib/nav.html index ac868cc..c86d4e8 100644 --- a/src/lib/nav.html +++ b/src/lib/nav.html @@ -14,6 +14,7 @@ {{ gettext('Collective') }} {{ gettext('Games') }} {{ gettext('News') }} + {{ gettext('Contact') }} {% include "pages/index/footer.html" %} diff --git a/src/pages/index/_style.scss b/src/pages/index/_style.scss index c4db82c..e2c06f9 100644 --- a/src/pages/index/_style.scss +++ b/src/pages/index/_style.scss @@ -2,3 +2,4 @@ @import 'games.scss'; @import 'news.scss'; @import 'presentation.scss'; +@import 'contact.scss'; diff --git a/src/pages/index/contact.html b/src/pages/index/contact.html new file mode 100644 index 0000000..b70b37c --- /dev/null +++ b/src/pages/index/contact.html @@ -0,0 +1,22 @@ +{% from "lib/section.html" import section %} + +{% call section( + gettext("Contact"), + "contact", + "/img/section-collective.png", + title_picture_hover = "/img/section-collective-hover.png", + title_picture_active = "/img/section-collective-active.png", + title_picture_offset = "50px" + ) %} +
+

+ {% trans %} + If you want to contact us about our games, for business inquiries, press or anything else please click on the button below. + {% endtrans %} +

+ + + Contact Us + +
+{% endcall %} diff --git a/src/pages/index/contact.scss b/src/pages/index/contact.scss new file mode 100644 index 0000000..2dd5bc1 --- /dev/null +++ b/src/pages/index/contact.scss @@ -0,0 +1,21 @@ +.contact { + + &--content { + @extend %card; + display: flex; + flex-direction: column; + } + + &--button { + @extend %button; + align-self: center; + align-items: center; + display: flex; + } + + &--button-icon { + width: 2.2em; + filter: invert(100%); + padding-right: var(--space-small); + } +}