chore: first commit

This commit is contained in:
Alexander Navarro 2025-04-15 21:40:36 -04:00
commit 4f811d88f2
30 changed files with 4301 additions and 0 deletions

11
frontend/css/style.scss Normal file
View file

@ -0,0 +1,11 @@
@use "@mini-strap/core";
@use "@picocss/pico/scss/pico.scss" with (
$theme-color: "cyan",
$enable-semantic-container: true
);
:root {
--pico-form-element-spacing-vertical: 0.25rem;
--pico-form-element-spacing-horizontal: 0.5rem;
}

0
frontend/js/index.ts Normal file
View file

View file

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="color-scheme" content="dark light">
<link rel="stylesheet" href="../css/style.scss" />
<script type="module" src="htmx.org"></script>
<title>
{% block title %}Axum web service!{% endblock %}
</title>
</head>
<body>
<header>
{% include "partials/header.html" ignore missing %}
</header>
<main>
{% block content %}{% endblock %}
</main>
<footer>
{% include "partials/footer.html" ignore missing %}
</footer>
</body>
</html>

View file

@ -0,0 +1,35 @@
{% extends "base.html" %}
{% block content %}
<div class="msp-hstack msp-justify-content-between">
<h1>Axum example!</h1>
<button class="" hx-get="/" hx-target="#example-table">Refresh</button>
</div>
{% block htmx %}
<table id="example-table" class="striped">
<thead>
<tr>
<th class="msp-text-center">Database</th>
<th class="msp-text-center">Version</th>
<th class="msp-text-center">Database Name</th>
<th class="msp-text-center">Current User</th>
<th class="msp-text-center">Current Timestamp</th>
</tr>
</thead>
<tbody>
{% for row in rows %}
<tr>
<th>{{ row.database }}</th>
<th>{{ row.version }}</th>
<th>{{ row.current_database }}</th>
<th>{{ row.current_user }}</th>
<th>{{ row.current_timestamp }}</th>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock htmx %}
{% endblock content %}

View file