From 26b647ca3f006662676690e6b99bfbfb32167738 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 19 Nov 2020 23:53:52 +0000 Subject: feat, chore (desc) feat: - add example database - ADD BOARDS - 404 page - better ui (bootstrap) chore: - move structures to strucutres file - various capitalizations --- templates/404.html.hbs | 24 +++++++++++++++++++++++ templates/boards.html.hbs | 18 +++++++++++++++++ templates/header.html.hbs | 26 ++++++++++++------------- templates/index.html.hbs | 15 +++++++++++++++ templates/layout.html.hbs | 28 +++++++++++++++++++++++++++ templates/post.html.hbs | 35 --------------------------------- templates/threads.html.hbs | 48 ++++++++++++++++++++++++++++++++++++++++++++-- 7 files changed, 144 insertions(+), 50 deletions(-) create mode 100644 templates/404.html.hbs create mode 100644 templates/boards.html.hbs create mode 100644 templates/layout.html.hbs delete mode 100644 templates/post.html.hbs (limited to 'templates') diff --git a/templates/404.html.hbs b/templates/404.html.hbs new file mode 100644 index 0000000..5940d43 --- /dev/null +++ b/templates/404.html.hbs @@ -0,0 +1,24 @@ +chan - 404 + +{{> header }} + +

Error 404: Resource not found...

+ +
+⣿⣿⣷⡁⢆⠈⠕⢕⢂⢕⢂⢕⢂⢔⢂⢕⢄⠂⣂⠂⠆⢂⢕⢂⢕⢂⢕⢂⢕⢂
+⣿⣿⣿⡷⠊⡢⡹⣦⡑⢂⢕⢂⢕⢂⢕⢂⠕⠔⠌⠝⠛⠶⠶⢶⣦⣄⢂⢕⢂⢕
+⣿⣿⠏⣠⣾⣦⡐⢌⢿⣷⣦⣅⡑⠕⠡⠐⢿⠿⣛⠟⠛⠛⠛⠛⠡⢷⡈⢂⢕⢂
+⠟⣡⣾⣿⣿⣿⣿⣦⣑⠝⢿⣿⣿⣿⣿⣿⡵⢁⣤⣶⣶⣿⢿⢿⢿⡟⢻⣤⢑⢂
+⣾⣿⣿⡿⢟⣛⣻⣿⣿⣿⣦⣬⣙⣻⣿⣿⣷⣿⣿⢟⢝⢕⢕⢕⢕⢽⣿⣿⣷⣔
+⣿⣿⠵⠚⠉⢀⣀⣀⣈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣗⢕⢕⢕⢕⢕⢕⣽⣿⣿⣿⣿
+⢷⣂⣠⣴⣾⡿⡿⡻⡻⣿⣿⣴⣿⣿⣿⣿⣿⣿⣷⣵⣵⣵⣷⣿⣿⣿⣿⣿⣿⡿
+⢌⠻⣿⡿⡫⡪⡪⡪⡪⣺⣿⣿⣿⣿⣿⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃
+⠣⡁⠹⡪⡪⡪⡪⣪⣾⣿⣿⣿⣿⠋⠐⢉⢍⢄⢌⠻⣿⣿⣿⣿⣿⣿⣿⣿⠏⠈
+⡣⡘⢄⠙⣾⣾⣾⣿⣿⣿⣿⣿⣿⡀⢐⢕⢕⢕⢕⢕⡘⣿⣿⣿⣿⣿⣿⠏⠠⠈
+⠌⢊⢂⢣⠹⣿⣿⣿⣿⣿⣿⣿⣿⣧⢐⢕⢕⢕⢕⢕⢅⣿⣿⣿⣿⡿⢋⢜⠠⠈
+⠄⠁⠕⢝⡢⠈⠻⣿⣿⣿⣿⣿⣿⣿⣷⣕⣑⣑⣑⣵⣿⣿⣿⡿⢋⢔⢕⣿⠠⠈
+⠨⡂⡀⢑⢕⡅⠂⠄⠉⠛⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⢔⢕⢕⣿⣿⠠⠈
+⠄⠪⣂⠁⢕⠆⠄⠂⠄⠁⡀⠂⡀⠄⢈⠉⢍⢛⢛⢛⢋⢔⢕⢕⢕⣽⣿⣿⠠⠈
+
+ +Return home. diff --git a/templates/boards.html.hbs b/templates/boards.html.hbs new file mode 100644 index 0000000..d86ba2b --- /dev/null +++ b/templates/boards.html.hbs @@ -0,0 +1,18 @@ +chan - Boards + +{{> header }} + +

Boards

+ +
+
+ +
+
diff --git a/templates/header.html.hbs b/templates/header.html.hbs index 6057f69..28786e4 100644 --- a/templates/header.html.hbs +++ b/templates/header.html.hbs @@ -1,16 +1,16 @@ - +{{> layout }} -chan +

diff --git a/templates/index.html.hbs b/templates/index.html.hbs index 92d2b35..ef756d0 100644 --- a/templates/index.html.hbs +++ b/templates/index.html.hbs @@ -1,5 +1,9 @@ +chan - Home + {{> header }} +

chan

+
 ⣿⣿⣷⡁⢆⠈⠕⢕⢂⢕⢂⢕⢂⢔⢂⢕⢄⠂⣂⠂⠆⢂⢕⢂⢕⢂⢕⢂⢕⢂
 ⣿⣿⣿⡷⠊⡢⡹⣦⡑⢂⢕⢂⢕⢂⢕⢂⠕⠔⠌⠝⠛⠶⠶⢶⣦⣄⢂⢕⢂⢕
@@ -16,3 +20,14 @@
 ⠨⡂⡀⢑⢕⡅⠂⠄⠉⠛⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⢔⢕⢕⣿⣿⠠⠈
 ⠄⠪⣂⠁⢕⠆⠄⠂⠄⠁⡀⠂⡀⠄⢈⠉⢍⢛⢛⢛⢋⢔⢕⢕⢕⣽⣿⣿⠠⠈
 
+ + diff --git a/templates/layout.html.hbs b/templates/layout.html.hbs new file mode 100644 index 0000000..a9c0dcc --- /dev/null +++ b/templates/layout.html.hbs @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + +
diff --git a/templates/post.html.hbs b/templates/post.html.hbs deleted file mode 100644 index 37c5ec6..0000000 --- a/templates/post.html.hbs +++ /dev/null @@ -1,35 +0,0 @@ -{{> header }} - -
- - - - - - - - - - - - - - - - - - - - -
name - - -
comment - -
verification - i'm not a robot -
file - -
-
diff --git a/templates/threads.html.hbs b/templates/threads.html.hbs index 5a656f7..f9f1b85 100644 --- a/templates/threads.html.hbs +++ b/templates/threads.html.hbs @@ -1,13 +1,57 @@ +chan - /{{ this.0.board }}/ + {{> header }} +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + + + +
+
+ +
+ {{ #if this }} {{ #each this }} -
+ + +
+
+

{{ this.name }}

+

{{ this.comment }}

+ + +

{{ /each }} {{ else }} -

no posts today

+ {{ /if }} -- cgit v1.2.3