feat: integrate links in nav (closes #4)
This commit is contained in:
parent
d19a86ffad
commit
a3b10fd52e
|
|
@ -11,9 +11,9 @@
|
||||||
<div class="nav-bar--content">
|
<div class="nav-bar--content">
|
||||||
<img class="nav-bar--logo" src="/img/nav-logo.png"></img>
|
<img class="nav-bar--logo" src="/img/nav-logo.png"></img>
|
||||||
<div class="nav-bar--menu">
|
<div class="nav-bar--menu">
|
||||||
<a href="#" class="nav-bar--menu-link">{{ gettext('Collective') }}</a>
|
<a href="#collective" class="nav-bar--menu-link">{{ gettext('Collective') }}</a>
|
||||||
<a href="#" class="nav-bar--menu-link">{{ gettext('Games') }}</a>
|
<a href="#games" class="nav-bar--menu-link">{{ gettext('Games') }}</a>
|
||||||
<a href="#" class="nav-bar--menu-link">{{ gettext('News') }}</a>
|
<a href="#news" class="nav-bar--menu-link">{{ gettext('News') }}</a>
|
||||||
<a href="#" class="nav-bar--menu-link">{{ gettext('Contact') }}</a>
|
<a href="#" class="nav-bar--menu-link">{{ gettext('Contact') }}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="nav-bar--separator"></div>
|
<div class="nav-bar--separator"></div>
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
{% macro section(
|
{% macro section(
|
||||||
title,
|
title,
|
||||||
|
id,
|
||||||
title_picture,
|
title_picture,
|
||||||
title_picture_hover = None,
|
title_picture_hover = None,
|
||||||
title_picture_offset = "20px",
|
title_picture_offset = "20px",
|
||||||
title_color = "var(--color-text)")
|
title_color = "var(--color-text)")
|
||||||
-%}
|
-%}
|
||||||
<div class="section">
|
<div class="section">
|
||||||
|
<a class="section--anchor" id="{{id}}"></a>
|
||||||
<h1
|
<h1
|
||||||
class="section--title"
|
class="section--title"
|
||||||
style="
|
style="
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,16 @@
|
||||||
margin-bottom: var(--space-large);
|
margin-bottom: var(--space-large);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&--anchor {
|
||||||
|
position: relative;
|
||||||
|
top: -90px;
|
||||||
|
visibility: hidden;
|
||||||
|
|
||||||
|
@media($mobile-breakpoint) {
|
||||||
|
top: -50px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&--title {
|
&--title {
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{% from "lib/section.html" import section %}
|
{% from "lib/section.html" import section %}
|
||||||
|
|
||||||
{% call section(gettext("Games"),
|
{% call section(gettext("Games"),
|
||||||
|
"games",
|
||||||
"/img/section-games.png",
|
"/img/section-games.png",
|
||||||
title_picture_offset = "-20px",
|
title_picture_offset = "-20px",
|
||||||
title_color = "var(--color-primary)"
|
title_color = "var(--color-primary)"
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
{% call section(
|
{% call section(
|
||||||
gettext("News"),
|
gettext("News"),
|
||||||
|
"news",
|
||||||
"/img/section-news.png",
|
"/img/section-news.png",
|
||||||
title_picture_offset="60px",
|
title_picture_offset="60px",
|
||||||
title_color = "var(--color-primary)"
|
title_color = "var(--color-primary)"
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
{% call section(
|
{% call section(
|
||||||
gettext("Collective"),
|
gettext("Collective"),
|
||||||
|
"collective",
|
||||||
"/img/section-collective.png",
|
"/img/section-collective.png",
|
||||||
title_picture_hover = "/img/section-collective-hover.png",
|
title_picture_hover = "/img/section-collective-hover.png",
|
||||||
title_picture_offset = "170px"
|
title_picture_offset = "170px"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue