summaryrefslogtreecommitdiff
path: root/views/index.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/index.ejs')
-rw-r--r--views/index.ejs34
1 files changed, 34 insertions, 0 deletions
diff --git a/views/index.ejs b/views/index.ejs
new file mode 100644
index 0000000..c0496ba
--- /dev/null
+++ b/views/index.ejs
@@ -0,0 +1,34 @@
+<%- include('partials/header') %>
+
+<div class='content'>
+ <div class='leftie'>
+ <ul>
+ <% if(!currentUser) { %>
+ <li><a href='/search/all'>Search for blog posts</a></li>
+ <li><a href='/'><strong>About</strong></a></li>
+ <li><a href='/browsers'>Minimal browsers</a></li>
+ <% } else { %>
+ <li><a href='/blog/<%= currentUser.username %>'>My Blog</a></li>
+ <li><a href='/blog/<%= currentUser.username %>/new'>Create a blog post</a></li>
+ <li><a href='/search/all'>Search for blog posts</a></li>
+ <li><a href='/'><strong>About</strong></a></li>
+ <li><a href='/browsers'>Minimal browsers</a></li>
+ <% } %>
+ </ul>
+ </div>
+ <div class='rightie'>
+ <p>Tired of how bloated the web is, so I made this.</p>
+ <br>
+ <h3>News</h3>
+ <p>Find out <a href="#">more</a>.</p>
+ <h4>2020-02-08</h4>
+ <p>Sblog app is now live. Some updates will be added later.</p>
+ <p>ToDo's</p>
+ <ul>
+ <li>user warning and success cards</li>
+ <li>search by tag</li>
+ </ul>
+ </div>
+</div>
+
+<%- include('partials/footer') %>