From d672849a2503f2d519547f07509f1389c8de3dba Mon Sep 17 00:00:00 2001 From: Hannes Kuchelmeister Date: Fri, 3 Sep 2021 17:23:21 +0200 Subject: [PATCH] edit design to look a bit more sleek --- templates/base.html | 32 ++++++++++++++++++ templates/edit.html | 50 ++++++++++++++++++---------- templates/error.html | 7 +++- templates/index.html | 73 +++++++++++++++++++++++++++++++---------- templates/redirect.html | 5 ++- 5 files changed, 130 insertions(+), 37 deletions(-) create mode 100644 templates/base.html diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..a85bae9 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,32 @@ + + + + + + + {% block head %} + {% block title %}{% endblock title %} - ics-proxy + {% endblock head %} + + + +
+ +
+ + + + \ No newline at end of file diff --git a/templates/edit.html b/templates/edit.html index ec94d48..8c37d31 100644 --- a/templates/edit.html +++ b/templates/edit.html @@ -1,21 +1,37 @@ - - +{% extends "base.html" %} +{% block title %}Edit{% endblock title %} +{% block head %} +{{ super() }} + +{% endblock head %} +{% block content %} - -

Hi, your link is {{ root }}/{{ uuid }}/events.ics!

- it takes the data from -

+

Hi, your link is

+
+ + +
+ +You can simply copy and past this link into any calendar application. +
+
+ To edit where it leads to:
- - - -
-

- + +
+ + +
+ + Back to main page +
- \ No newline at end of file +{% endblock content %} \ No newline at end of file diff --git a/templates/error.html b/templates/error.html index 58f848b..b973cdc 100644 --- a/templates/error.html +++ b/templates/error.html @@ -1 +1,6 @@ -{{ message }} \ No newline at end of file +{% extends "base.html" %} +{% block content %} + +{% endblock content %} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 9fd6c87..04da92e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,21 +1,58 @@ - - +{% extends "base.html" %} +{% block title %}Index{% endblock title %} +{% block head %} +{{ super() }} + +{% endblock head %} +{% block content %} +

Welcome!

+Here you can paste an ics link, to create a new proxy url. + Alternatively you can paste an existing url to edit it. +
+
+ + + +
+
+ + +
+
+{% endblock content %} \ No newline at end of file diff --git a/templates/redirect.html b/templates/redirect.html index 5f6b174..1c9defd 100644 --- a/templates/redirect.html +++ b/templates/redirect.html @@ -1,3 +1,6 @@ +{% extends "base.html" %} +{% block content %}

{{ message }}

Please wait to be redirected or click here!

- \ No newline at end of file + +{% endblock content %} \ No newline at end of file