backend: rework and simplify styles

This commit is contained in:
Lucas 2023-03-14 21:53:34 +00:00
parent 4571ab3643
commit 6e11d9d00f
3 changed files with 58 additions and 48 deletions

View file

@ -3,7 +3,7 @@
<div class="flex-c-horizontal flex-c-wrap gallery">
% for my $m (@$media) {
<%= link_to $m->{media_src} => begin %>
<%= image $m->{media_src}, class => "gallery-image" %>
<%= image $m->{media_src} %>
<% end %>
% }
</div>

View file

@ -8,18 +8,18 @@
</head>
<body class="bg-default fg-default flex-c-vertical">
<header>
<nav class="viewport flex-c-horizontal main-nav-link-gap">
<%= link_to "Pooru~" => "/" => (class => "main-nav-link") %>
<%= link_to "random" => "/random" => (class => "main-nav-link") %>
<%= link_to "tags" => "/tags" => (class => "main-nav-link") %>
<nav class="viewport flex-c-horizontal main-nav">
<%= link_to "Pooru~" => "/" %>
<%= link_to "random" => "/random" %>
<%= link_to "tags" => "/tags" %>
<span class="flex-i-fullsize"><!-- spacer --></span>
<%= link_to login => "/login" => (class => "main-nav-link") %>
<%= link_to login => "/login" %>
</nav>
</header>
<main class="border-bottom border-top border-accent flex-i-fullsize flex-c-vertical">
<main class="flex-i-fullsize flex-c-vertical">
<div class="viewport flex-i-fullsize flex-c-vertical">
<h1><%= title %></h1>
<div class="viewport flex-i-fullsize"><%= content %></div>
<div class="flex-i-fullsize"><%= content %></div>
<% if (defined $pager) { %>
<footer>
<nav class="text-center">
@ -33,8 +33,8 @@
<% } %>
</div>
</main>
<footer class="text-center">
<p class="viewport text-small">Powered by <a href="https://www.openbsd.org">OpenBSD</a> and <a href="https://mojolicious.org/">Mojolicious</a></p>
<footer class="border-top">
<p class="viewport text-center text-small">Powered by <a href="https://www.openbsd.org">OpenBSD</a> and <a href="https://www.perl.org/">Perl</a>.</p>
</footer>
</body>
</html>