diff options
author | syn <isaqtm@gmail.com> | 2020-03-16 22:17:48 +0300 |
---|---|---|
committer | syn <isaqtm@gmail.com> | 2020-03-16 22:17:48 +0300 |
commit | 977c7c38ff4196f43c4784308d81fd7e6a471511 (patch) | |
tree | 3e53843c181a60ec7d2b3b1d4dfdf4868859c3a7 /app/templates | |
download | blure-977c7c38ff4196f43c4784308d81fd7e6a471511.tar.gz |
Init commit
Diffstat (limited to 'app/templates')
-rw-r--r-- | app/templates/base.html.j2 | 18 | ||||
-rw-r--r-- | app/templates/index.html.j2 | 21 | ||||
-rw-r--r-- | app/templates/profile.html.j2 | 6 |
3 files changed, 45 insertions, 0 deletions
diff --git a/app/templates/base.html.j2 b/app/templates/base.html.j2 new file mode 100644 index 0000000..b2c0957 --- /dev/null +++ b/app/templates/base.html.j2 @@ -0,0 +1,18 @@ +<html> + <head> + <title> + Eternal Blume + </title> + <link href="/static/css/blure.css" rel="stylesheet"> + <link href="https://fonts.googleapis.com/icon?family=Material+Icons|Inconsolata" rel="stylesheet"> + {% block load_scripts %} + {% endblock %} + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + </head> + <body> + <div id="root"> + {% block content %} + {% endblock %} + </div> + </body> +</html> diff --git a/app/templates/index.html.j2 b/app/templates/index.html.j2 new file mode 100644 index 0000000..f7d9746 --- /dev/null +++ b/app/templates/index.html.j2 @@ -0,0 +1,21 @@ +{% extends "base.html.j2" %} + +{% block load_scripts %} +<script type="module" src="/static/js/eternalload.js"></script> +<script type="module" src="/static/js/load.js"></script> +<link href="/static/css/eternal.css" rel="stylesheet"> +{% endblock %} + +{% block content %} + +<div id="template-goes-here"> +</div> + +{% for url in picurls %} + <a href="/p/{{ url }}"> + <img src="/t/{{ url }}" alt="{{ url }}" /></a> + <form action="/c/delete/{{ url }}" method="POST"> + <button class="btn" type="submit">rm</button> + </form> +{% endfor %} +{% endblock %} diff --git a/app/templates/profile.html.j2 b/app/templates/profile.html.j2 new file mode 100644 index 0000000..d4da6c4 --- /dev/null +++ b/app/templates/profile.html.j2 @@ -0,0 +1,6 @@ +{% extends "base.html.j2" %} +{% block content %} +<img src="/i/{{ url }}" /> +<div class="profile-description">url: <a href="/i/{{ url }}">{{ '/i/' + url }}</a> +date: 1986-04-26T21:23+0000</div> +{% endblock %}
\ No newline at end of file |