[TASK] Layout for homepage
This commit is contained in:
parent
9bd1c17396
commit
6180fa411a
18
Packages/chrosey_materialize/templates/home.twig
Normal file
18
Packages/chrosey_materialize/templates/home.twig
Normal 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
BIN
assets/welcome.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.4 MiB |
@ -4,6 +4,7 @@ Description: Startseite
|
||||
Author: Christian Seyfferth
|
||||
Date: 2020-01-21
|
||||
Robots: noindex,nofollow
|
||||
Template: templates/home
|
||||
---
|
||||
|
||||
# Hallo Welt
|
||||
@ -15,4 +16,5 @@ Sieh dich in Ruhe um, zum Beispiel was ich so zuletzt geschrieben habe, oder an
|
||||
Wenn du dir verloren vorkommst oder einfach nur etwas loswerden möchtest, bekommst du [hier][Kontakt] die Möglichkeit.
|
||||
|
||||
|
||||
[Kontakt]: %base_url%/kontakt
|
||||
[Kontakt]: %base_url%/kontakt
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user