Style tweaks

This commit is contained in:
swagg boi 2022-01-04 18:27:05 -05:00
parent eddcca861a
commit c4d05dcb05
2 changed files with 12 additions and 10 deletions

View file

@ -88,15 +88,15 @@ img {
} }
.articles { .articles {
displace: flex; display: flex;
flex-flow: column; flex-flow: column;
margin-bottom: 1em;
} }
article { article {
border-color: #00FF00; border-color: #00FF00;
border-style: ridge; border-style: ridge;
padding: 0em 1em; padding: 0em 1em;
margin-bottom: 1em;
} }
article .message.field { article .message.field {

View file

@ -1,24 +1,26 @@
% layout 'default'; % layout 'default';
% title 'View'; % title 'View';
<h2>Messages from the World Wide Web</h2> <h2>Messages from the World Wide Web</h2>
<% for my $row (@$view_posts) { =%>
<div class="articles"> <div class="articles">
<% for my $post (@$view_posts) { =%>
<article> <article>
<h3><%= @$row[0] %></h3> <h3><%= @$post[0] %></h3>
<section class="message field"> <section class="message field">
<blockquote><p><%= @$row[2] %></p></blockquote> <blockquote><p><%= @$post[2] %></p></blockquote>
</section> </section>
<section class="name field"> <section class="name field">
<figcaption> <figcaption>
- <%= @$row[1] %> - <%= @$post[1] %>
<% if (@$row[3]) { =%> <% if (@$post[3]) { =%>
(<%= link_to Homepage => @$row[3] %>) (<%= link_to Homepage => @$post[3] %>)
<% } =%> <% } =%>
</figcaption> </figcaption>
</section> </section>
</article> </article>
</div>
<% } =%> <% } =%>
</div>
<% unless ($last_page == 1) { =%>
<nav> <nav>
<%= pagination($this_page, $last_page, '?page={page}') %> <%= pagination $this_page, $last_page, '?page={page}' %>
</nav> </nav>
<% } =%>