Add home page
This commit is contained in:
parent
8afee5e625
commit
94a0c89099
130 changed files with 2027 additions and 56 deletions
27
site/templates/home.twig
Normal file
27
site/templates/home.twig
Normal file
|
@ -0,0 +1,27 @@
|
|||
{% extends "base.twig" %}
|
||||
|
||||
{% block main %}
|
||||
<main>
|
||||
<section class="home-section">
|
||||
|
||||
<div class="home">
|
||||
<nav class="home__nav" aria-label="Menu">
|
||||
{% set navItemNo = 1 %}
|
||||
{% for gallery in pages.template('gallery') %}
|
||||
<div class="home__nav-item-{{ navItemNo }}">
|
||||
<a href="{{ gallery.url }}" target="_self" class="home__nav-link">{{ gallery.title }}</a>
|
||||
</div>
|
||||
{% set navItemNo = navItemNo + 1 %}
|
||||
{% endfor %}
|
||||
<div class="home__nav-item-{{ navItemNo }}">
|
||||
<a href="{{ page('a-propos').url }}" target="_self" class="home__nav-link">{{ page('a-propos').title }}</a>
|
||||
</div>
|
||||
<div class="home__nav-image" aria-hidden="true">
|
||||
<img src="{{ page.image.url }}" srcset="{{ page.image.srcset() }}" alt="{{ page.image.alt_text }}">
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</main>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue