feat: move mail link in contact section

This commit is contained in:
Adrien Allard 2024-06-12 16:53:08 +02:00
parent 44e0e746ed
commit c1029dbabc
6 changed files with 46 additions and 1 deletions

View File

@ -14,6 +14,7 @@
<a href="#collective" class="nav-bar--menu-link">{{ gettext('Collective') }}</a> <a href="#collective" class="nav-bar--menu-link">{{ gettext('Collective') }}</a>
<a href="#games" class="nav-bar--menu-link">{{ gettext('Games') }}</a> <a href="#games" class="nav-bar--menu-link">{{ gettext('Games') }}</a>
<a href="#news" class="nav-bar--menu-link">{{ gettext('News') }}</a> <a href="#news" class="nav-bar--menu-link">{{ gettext('News') }}</a>
<a href="#contact" class="nav-bar--menu-link">{{ gettext('Contact') }}</a>
</div> </div>
<div class="nav-bar--links"> <div class="nav-bar--links">
{% with class_prefix="nav-bar" %} {% with class_prefix="nav-bar" %}

View File

@ -4,7 +4,6 @@
</a> </a>
{% endmacro %} {% endmacro %}
{{ social_link(gettext('Mail'), 'mail-fill.svg', 'mailto:contact@frog-collective.com') }}
{{ social_link('Itch.io', 'itchio-fill.svg', 'https://frog-collective.itch.io/') }} {{ social_link('Itch.io', 'itchio-fill.svg', 'https://frog-collective.itch.io/') }}
{{ social_link('Youtube', 'youtube-fill.svg', 'https://www.youtube.com/@FrogCoGames') }} {{ social_link('Youtube', 'youtube-fill.svg', 'https://www.youtube.com/@FrogCoGames') }}
{{ social_link('Twitch', 'twitch-fill.svg', 'https://www.twitch.tv/frogcollective') }} {{ social_link('Twitch', 'twitch-fill.svg', 'https://www.twitch.tv/frogcollective') }}

View File

@ -23,6 +23,7 @@
{% include "pages/index/presentation.html" %} {% include "pages/index/presentation.html" %}
{% include "pages/index/games.html" %} {% include "pages/index/games.html" %}
{% include "pages/index/news.html" %} {% include "pages/index/news.html" %}
{% include "pages/index/contact.html" %}
</div> </div>
{% include "pages/index/footer.html" %} {% include "pages/index/footer.html" %}
</body> </body>

View File

@ -2,3 +2,4 @@
@import 'games.scss'; @import 'games.scss';
@import 'news.scss'; @import 'news.scss';
@import 'presentation.scss'; @import 'presentation.scss';
@import 'contact.scss';

View File

@ -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"
) %}
<div class="contact--content">
<p>
{% trans %}
If you want to contact us about our games, for business inquiries, press or anything else please click on the button below.
{% endtrans %}
</p>
<a class="contact--button" href="mailto:contact@frog-collective.com">
<img class="contact--button-icon" src="/img/mail-fill.svg"></img>
Contact Us
</a>
</div>
{% endcall %}

View File

@ -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);
}
}