styling, require a code for prompts, admin privs, ordering, filtering, jump-to-page

This commit is contained in:
2022-09-07 16:25:42 -04:00
parent 7990246675
commit eefd11d85a
52 changed files with 2827 additions and 300 deletions

View File

@@ -1,8 +1,4 @@
<main class="container">
<p class="alert alert-info" role="alert"
phx-click="lv:clear-flash"
phx-value-key="info"><%= live_flash(@flash, :info) %></p>
<p class="alert alert-danger" role="alert"
phx-click="lv:clear-flash"
phx-value-key="error"><%= live_flash(@flash, :error) %></p>

View File

@@ -1,30 +1,32 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" data-theme="black">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
<meta name="csrf-token" content={csrf_token_value()}>
<%= live_title_tag assigns[:page_title] || "Diffuser", suffix: " · Phoenix Framework" %>
<%= live_title_tag assigns[:page_title] || "Diffuser" %>
<link phx-track-static rel="stylesheet" href={Routes.static_path(@conn, "/assets/app.css")}/>
<script defer phx-track-static type="text/javascript" src={Routes.static_path(@conn, "/assets/app.js")}></script>
</head>
<body>
<header>
<section class="container">
<nav>
<ul>
<li><a href="https://hexdocs.pm/phoenix/overview.html">Get Started</a></li>
<%= if function_exported?(Routes, :live_dashboard_path, 2) do %>
<li><%= link "LiveDashboard", to: Routes.live_dashboard_path(@conn, :home) %></li>
<% end %>
</ul>
</nav>
<a href="https://phoenixframework.org/" class="phx-logo">
<img src={Routes.static_path(@conn, "/images/phoenix.png")} alt="Phoenix Framework Logo"/>
</a>
</section>
</header>
<%= @inner_content %>
<footer class="footer footer-center p-10 bg-gray text-primary-content">
<div>
<p>
<span class="font-bold">Silent Silas</span><br>
<span class="italic">Disappointing my parents since 1993</span>
</p>
<p>Copyright Sucks © 2022 - No rights reserved</p>
</div>
<div>
<div class="grid grid-flow-col gap-4">
<a target="_blank" rel="noopener noreferrer" href="https://git.silentsilas.com/silentsilas/Diffuser">
<img src="/images/GitHub-Mark-Light-120px-plus.png" style="max-height: 64px;" />
</a>
</div>
</div>
</footer>
</body>
</html>