From 113c7a761e87d07740e0cdb2620f57a2444033e1 Mon Sep 17 00:00:00 2001 From: n07070 Date: Sat, 12 Mar 2022 04:29:24 +0100 Subject: [PATCH] Added templates, moved old ones --- src/templates/api.html | 10 +++ src/templates/index.html | 60 +++++++++++++++++ {templates => src/templates}/password.html | 0 templates/index.html | 75 ---------------------- 4 files changed, 70 insertions(+), 75 deletions(-) create mode 100644 src/templates/api.html create mode 100644 src/templates/index.html rename {templates => src/templates}/password.html (100%) delete mode 100644 templates/index.html diff --git a/src/templates/api.html b/src/templates/api.html new file mode 100644 index 0000000..b02aeb6 --- /dev/null +++ b/src/templates/api.html @@ -0,0 +1,10 @@ + + + + + LittlePrynter API + + + "Welcome to the printing software's API. Please see the index page to get started. + + diff --git a/src/templates/index.html b/src/templates/index.html new file mode 100644 index 0000000..6412b08 --- /dev/null +++ b/src/templates/index.html @@ -0,0 +1,60 @@ + + + + + LittlePrynter + + + + + + +
+ LittlePrynter icon

Little Prynter

+
+
+ {% with messages = get_flashed_messages(category_filter=('error')) %} + {% if messages %} + {% for message in messages %} + + {% endfor %} + {% endif %} + {% endwith %} + + {% with messages = get_flashed_messages(category_filter=('info')) %} + {% if messages %} + {% for message in messages %} + + {% endfor %} + {% endif %} + {% endwith %} + + +
+

Print a short message

+
+ +
+
+
+ + +
+
+ + + +
+
+
+
+
Little Prynter is built for fun by n07070 for fun :)
+
+ + diff --git a/templates/password.html b/src/templates/password.html similarity index 100% rename from templates/password.html rename to src/templates/password.html diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index a2aa495..0000000 --- a/templates/index.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - LittlePrynter - - - - - -
-

Little Prynter

-
-
- {% with messages = get_flashed_messages() %} - {% if messages %} - {% for message in messages %} - - {% endfor %} - {% endif %} - {% endwith %} -
-

Imprimer une image aléatoire

- Imprimer -
-
-

Imprimer ton propre texte

-
-
- -
- - -
-
- -
- - - -