aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorFuwn <[email protected]>2020-11-19 05:16:45 +0000
committerFuwn <[email protected]>2020-11-19 05:16:45 +0000
commit4caa665aa3f323571c8f791588c7e1baeaaf6dc7 (patch)
tree8fa9038d865b726d1d6b9508acd5cd3ef834b691 /templates
parentCreate LICENSE.md (diff)
downloadchan-4caa665aa3f323571c8f791588c7e1baeaaf6dc7.tar.xz
chan-4caa665aa3f323571c8f791588c7e1baeaaf6dc7.zip
repo: :star:
Diffstat (limited to 'templates')
-rw-r--r--templates/header.html.hbs16
-rw-r--r--templates/index.html.hbs18
-rw-r--r--templates/post.html.hbs35
-rw-r--r--templates/threads.html.hbs13
4 files changed, 82 insertions, 0 deletions
diff --git a/templates/header.html.hbs b/templates/header.html.hbs
new file mode 100644
index 0000000..6057f69
--- /dev/null
+++ b/templates/header.html.hbs
@@ -0,0 +1,16 @@
+<style>
+ * {
+ font-family: cursive;
+ }
+</style>
+
+<title>chan</title>
+
+<center>
+<nav>
+ <p>chan</a> |
+ <a href="/">index</a> |
+ <a href="/post">post</a> |
+ <a href="/threads">threads</a>
+</nav>
+<br>
diff --git a/templates/index.html.hbs b/templates/index.html.hbs
new file mode 100644
index 0000000..92d2b35
--- /dev/null
+++ b/templates/index.html.hbs
@@ -0,0 +1,18 @@
+{{> header }}
+
+<pre>
+⣿⣿⣷⡁⢆⠈⠕⢕⢂⢕⢂⢕⢂⢔⢂⢕⢄⠂⣂⠂⠆⢂⢕⢂⢕⢂⢕⢂⢕⢂
+⣿⣿⣿⡷⠊⡢⡹⣦⡑⢂⢕⢂⢕⢂⢕⢂⠕⠔⠌⠝⠛⠶⠶⢶⣦⣄⢂⢕⢂⢕
+⣿⣿⠏⣠⣾⣦⡐⢌⢿⣷⣦⣅⡑⠕⠡⠐⢿⠿⣛⠟⠛⠛⠛⠛⠡⢷⡈⢂⢕⢂
+⠟⣡⣾⣿⣿⣿⣿⣦⣑⠝⢿⣿⣿⣿⣿⣿⡵⢁⣤⣶⣶⣿⢿⢿⢿⡟⢻⣤⢑⢂
+⣾⣿⣿⡿⢟⣛⣻⣿⣿⣿⣦⣬⣙⣻⣿⣿⣷⣿⣿⢟⢝⢕⢕⢕⢕⢽⣿⣿⣷⣔
+⣿⣿⠵⠚⠉⢀⣀⣀⣈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣗⢕⢕⢕⢕⢕⢕⣽⣿⣿⣿⣿
+⢷⣂⣠⣴⣾⡿⡿⡻⡻⣿⣿⣴⣿⣿⣿⣿⣿⣿⣷⣵⣵⣵⣷⣿⣿⣿⣿⣿⣿⡿
+⢌⠻⣿⡿⡫⡪⡪⡪⡪⣺⣿⣿⣿⣿⣿⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃
+⠣⡁⠹⡪⡪⡪⡪⣪⣾⣿⣿⣿⣿⠋⠐⢉⢍⢄⢌⠻⣿⣿⣿⣿⣿⣿⣿⣿⠏⠈
+⡣⡘⢄⠙⣾⣾⣾⣿⣿⣿⣿⣿⣿⡀⢐⢕⢕⢕⢕⢕⡘⣿⣿⣿⣿⣿⣿⠏⠠⠈
+⠌⢊⢂⢣⠹⣿⣿⣿⣿⣿⣿⣿⣿⣧⢐⢕⢕⢕⢕⢕⢅⣿⣿⣿⣿⡿⢋⢜⠠⠈
+⠄⠁⠕⢝⡢⠈⠻⣿⣿⣿⣿⣿⣿⣿⣷⣕⣑⣑⣑⣵⣿⣿⣿⡿⢋⢔⢕⣿⠠⠈
+⠨⡂⡀⢑⢕⡅⠂⠄⠉⠛⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⢔⢕⢕⣿⣿⠠⠈
+⠄⠪⣂⠁⢕⠆⠄⠂⠄⠁⡀⠂⡀⠄⢈⠉⢍⢛⢛⢛⢋⢔⢕⢕⢕⣽⣿⣿⠠⠈
+</pre>
diff --git a/templates/post.html.hbs b/templates/post.html.hbs
new file mode 100644
index 0000000..37c5ec6
--- /dev/null
+++ b/templates/post.html.hbs
@@ -0,0 +1,35 @@
+{{> header }}
+
+<form action="/api/v1/post" method="post">
+ <table>
+ <tr>
+ <td>name</td>
+ <td>
+ <input name="name" type="text" placeholder="blank 4 `anonymous'">
+ <input type="submit" value="post">
+ </td>
+ </tr>
+
+ <tr>
+ <td>comment</td>
+ <td>
+ <textarea name="comment" cols="48" rows="4"
+ wrap="soft" placeholder="comment" required></textarea>
+ </td>
+ </tr>
+
+ <tr>
+ <td>verification</td>
+ <td>
+ <input type="checkbox" disabled> i'm not a robot
+ </td>
+ </tr>
+
+ <tr>
+ <td>file</td>
+ <td>
+ <input type="file" disabled>
+ </td>
+ </tr>
+ </table>
+</form>
diff --git a/templates/threads.html.hbs b/templates/threads.html.hbs
new file mode 100644
index 0000000..5a656f7
--- /dev/null
+++ b/templates/threads.html.hbs
@@ -0,0 +1,13 @@
+{{> header }}
+
+{{ #if this }}
+ {{ #each this }}
+ <div class="post" style="width: 420px">
+ <h2>{{ this.name }}</h4>
+ <p>{{ this.comment }}</p>
+ </div>
+ <br>
+ {{ /each }}
+{{ else }}
+ <p>no posts today</p>
+{{ /if }}