chore: first commit
This commit is contained in:
commit
4f811d88f2
30 changed files with 4301 additions and 0 deletions
11
frontend/css/style.scss
Normal file
11
frontend/css/style.scss
Normal 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
0
frontend/js/index.ts
Normal file
26
frontend/templates/base.html
Normal file
26
frontend/templates/base.html
Normal 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>
|
||||
35
frontend/templates/index.html
Normal file
35
frontend/templates/index.html
Normal 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 %}
|
||||
0
frontend/templates/partials/header.html
Normal file
0
frontend/templates/partials/header.html
Normal file
Loading…
Add table
Add a link
Reference in a new issue