[TASK] Layout for homepage

This commit is contained in:
Christian Seyfferth 2020-05-20 15:52:17 +02:00
parent 9bd1c17396
commit 6180fa411a
3 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,18 @@
{% extends "templates/layout/base.twig" %}
{% block content %}
<div class="parallax-container" style="height: 50vh;">
<div class="parallax"><img src="{{ assets_url }}/welcome.jpg"></div>
</div>
{{parent()}}
{% for section in meta.sections %}
<div class="parallax-container">
<div class="parallax"><img src="images/{{section.image}}"></div>
</div>
<div class="container">
<h2>{{section.title}}</h2>
{{ section.text }}
</div>
{% endfor %}
{% endblock %}

BIN
assets/welcome.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 MiB

View File

@ -4,6 +4,7 @@ Description: Startseite
Author: Christian Seyfferth
Date: 2020-01-21
Robots: noindex,nofollow
Template: templates/home
---
# Hallo Welt
@ -16,3 +17,4 @@ Wenn du dir verloren vorkommst oder einfach nur etwas loswerden möchtest, bekom
[Kontakt]: %base_url%/kontakt