From 9297781c79dbfe68a817474d0395001fd9746770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Thu, 16 Dec 2021 02:04:43 +0300 Subject: Added basic builtin templates and css --- assets/templates/album.html | 24 ++++++++++++++++++++++++ assets/templates/base.html | 17 +++++++++++++++++ assets/templates/image.html | 31 +++++++++++++++++++++++++++++++ assets/templates/index.html | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 assets/templates/album.html create mode 100644 assets/templates/base.html create mode 100644 assets/templates/image.html create mode 100644 assets/templates/index.html (limited to 'assets/templates') diff --git a/assets/templates/album.html b/assets/templates/album.html new file mode 100644 index 0000000..95d9935 --- /dev/null +++ b/assets/templates/album.html @@ -0,0 +1,24 @@ +{% extends "base.html" %} +{% block content %} +
+

+ {{ album.year }} + {% if album.title %} + {{ album.title }} + {% else %} + Untitled + {% endif %} +

+

from {{ title }}

+
+ +{% endblock %} diff --git a/assets/templates/base.html b/assets/templates/base.html new file mode 100644 index 0000000..1f2d8dc --- /dev/null +++ b/assets/templates/base.html @@ -0,0 +1,17 @@ + + + + + + + {% block title %} + A photo gallery by Yaroslav de la Peña Smirnov + {% endblock %} + + + + + {% block content %} + {% endblock %} + + diff --git a/assets/templates/image.html b/assets/templates/image.html new file mode 100644 index 0000000..8f7dd11 --- /dev/null +++ b/assets/templates/image.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} +{% block content %} +
+ +
+ {% if image.prev %} + ⮜ Previous + {% else %} + + {% endif %} + {% if image.next %} + Next ⮞ + {% else %} + + {% endif %} +
+
+ +{% endblock %} + diff --git a/assets/templates/index.html b/assets/templates/index.html new file mode 100644 index 0000000..61160a5 --- /dev/null +++ b/assets/templates/index.html @@ -0,0 +1,33 @@ +{% extends "base.html" %} +{% block content %} +
+

{{ title }}

+
+ +{% endblock %} -- cgit v1.2.3