Update ui a bit more

This commit is contained in:
Jonathan Carter
2024-12-05 12:01:16 +02:00
parent 6a2dfbbde5
commit 6a5905374d
10 changed files with 105 additions and 237 deletions

15
src/templates/header.html Normal file
View File

@@ -0,0 +1,15 @@
<!-- Header -->
<div id="titlebar" class="pywebview-drag-region">
<span>
<button class="button is-link"></button>
<a href="/welcome"><button class="button is-{% if request.path == "/welcome" %}info{% else %}dark{% endif %}">Welcome</button></a>
<a href="/users"><button class="button is-{% if request.path == "/users" %}info{% else %}dark{% endif %}">Users</button></a>
<a href="/disks"><button class="button is-{% if request.path == "/disks" %}info{% else %}dark{% endif %}">Disks</button></a>
<a href="/software"><button class="button is-{% if request.path == "/software" %}info{% else %}dark{% endif %}">Software</button></a>
<a href="/summary"><button class="button is-{% if request.path == "/summary" %}info{% else %}dark{% endif %}">Summary</button></a>
<a href="/quit"> <button class="button is-danger" style="float: right;"> 🗙 </button></a>
<a href="/help"> <button class="button is-light" style="float: right; margin-right: 5px;"> <b> ? </b> </button></a>
</span>
</div> <!-- end pywebview-drag-region -->
<br>
<!-- End Header -->

View File

@@ -7,13 +7,11 @@
<link href="/static/welcome.css" rel="stylesheet">
<script src="/static/htmx.min.js" crossorigin="anonymous"></script>
</head>
<body style="background-color: transparent; border-radius: 50px;">
<body>
<!--div class="bg"></div> -->
<!--div style="min-height: 80%; left: 22%; right: 22%; top: 50px; bottom: 50px; position: absolute; width:1000px; height:800;" class="container" -->
<div class="notification is-dark">
<div style="border-radius: 10px; padding: 12px;" class="notification is-dark">
{% include "header.html" %}
{% block body %}
{% endblock %}