QOL improvements #1

Merged
raul merged 8 commits from testing into main 2024-05-02 08:16:58 +02:00
2 changed files with 32 additions and 1 deletions
Showing only changes of commit 4e412c789b - Show all commits

View File

@ -16,7 +16,21 @@
<button id="but"> <button id="but">
Upload Upload
</button> </button>
<progress id="progress" value="0" max="100">Upload progress:</progress>
</form> </form>
<script>
htmx.on('#form', 'htmx:xhr:progress', function(evt) {
htmx.find('#progress').setAttribute('value', evt.detail.loaded/evt.detail.total * 100)
});
</script>
<p class="centered">
<!-- <img src="https://bulgariu.xyz/avatar.gif" alt="" width=200px height=200px > -->
</p>
<!-- <footer> -->
<!-- Licensed under the GPL v3.0 -->
<!-- </footer> -->
</div> </div>
</div> </div>

View File

@ -7,7 +7,16 @@
border: 2px black solid; border: 2px black solid;
} }
.centered {
text-align: center;
}
img {
text-align: center;
border: 2px solid #ff6e00;
border-radius: 50%;
padding: 1%;
}
button { button {
background-color: #eee; background-color: #eee;
@ -38,9 +47,16 @@ form {
a { a {
color: #ff6e00; color: #ff6e00;
text-decoration: none;
} }
a:hover {} a:hover {
text-decoration: underline;
}
footer {
top: 100%;
}
#main { #main {
background-color: #eee; background-color: #eee;
@ -48,6 +64,7 @@ a:hover {}
height: 100%; height: 100%;
padding-left: 5%; padding-left: 5%;
padding-right: 5%; padding-right: 5%;
outline: solid 2px #ff6e00;
} }
.container { .container {