Moar CSS and HTML stuff

This commit is contained in:
swagg boi 2023-05-14 22:43:13 -04:00
parent c7e5528a27
commit 3f5b6862a3
3 changed files with 9 additions and 6 deletions

View file

@ -19,8 +19,8 @@ should be YAML or XML or something better suited.
Run it in development mode:
morbo -w assets/css/ -w lib/ -w migrations/ -w t/ -w templates/ \
script/post_text
morbo -w assets/css/ -w public/ -w lib/ -w templates/ \
-w script/ script/post_text
Now try requesting http://localhost:3000

View file

@ -80,7 +80,7 @@ header > nav a {
padding: 0.25em 0.5em;
}
.remark .date, .remark .author, .remark .body {
.remark .author, .remark .body {
margin: 1em 0.5em;
padding: 0.25em 0.5em;
}

View file

@ -3,7 +3,10 @@
<h2><%= title %></h2>
<main class="threads">
<article class="thread">
<h3 class="title"><%= $thread->{'title'} %></h3>
<h3 class="title">
<%= $thread->{'title'} %>
<span class="id">#<%= $thread->{'id'} %></span>
</h3>
<h4 class="date"><%= $thread->{'date'} %></h4>
<h5 class="author"><%= $thread->{'author'} %></h5>
<div class="body">
@ -47,10 +50,10 @@
</nav>
</article>
<% } =%>
<nav>
<% if ($last_page && $last_page != 1) { =%>
<nav>
<%= pagination $this_page, $last_page, ($base_path . '/{page}') %>
<% } =%>
</nav>
<% } =%>
</section>
<% } =%>