summaryrefslogtreecommitdiff
path: root/templates/base.twig
diff options
context:
space:
mode:
authorJonathan Tschanter <jmtw@tutanota.de>2022-01-21 00:14:34 +0100
committerJonathan Tschanter <jmtw@tutanota.de>2022-01-21 00:14:34 +0100
commit2bde1b0660585e16116fbd12c86b53e886b6f3be (patch)
tree8c23fbad83e8b947c60a50b7af6be2c8b0d4867a /templates/base.twig
parentc2b0ebcdbb23a38a31b4d8c9e39f2a2be4cc862b (diff)
Add first layout with simplecss
Diffstat (limited to 'templates/base.twig')
-rw-r--r--templates/base.twig26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/base.twig b/templates/base.twig
new file mode 100644
index 0000000..a27b5d7
--- /dev/null
+++ b/templates/base.twig
@@ -0,0 +1,26 @@
+{% extends 'root.twig' %}
+
+{% block css %}
+ {{ parent() }}
+ <link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
+
+ <link rel="stylesheet" href="/css/style.css"/>
+{% endblock %}
+
+{% block body %}
+ <header>
+ <nav>
+ <a href="/dashboard">Dashboard</a>
+ <a href="/card/list">Cards</a>
+ <a href="/card/add">New Card</a>
+ </nav>
+ <h1>Elements</h1>
+ <p>{% block subtitle %}{% endblock %}</p>
+ </header>
+ <main>
+ {% block main %}{% endblock %}
+ </main>
+ <footer>
+ visit <a href="https://gitlab.com/DRogueRonin/elements">Gitlab</a>
+ </footer>
+{% endblock %}