Move updated static assets to separate folder

This commit is contained in:
raul 2024-04-30 12:10:49 +02:00
parent 7ac8586715
commit 2153ea7599
3 changed files with 84 additions and 17 deletions

24
assets/index.html Normal file
View File

@ -0,0 +1,24 @@
<html>
<head>
<link rel="stylesheet" type="" href="./style.css">
<script src="https://unpkg.com/htmx.org@1.9.4/dist/htmx.min.js"></script>
</head>
<body>
<div class="container">
<div id="main">
<h1>Raul's file uploader</h1>
<h3>Find the source <a href="https://git.bulgariu.xyz/raul/uploader" target="_blank">here!</a></h3>
<form id='form' hx-encoding='multipart/form-data' hx-post='/api/upload'>
<input type="file" name="file" value="">
<br>
<br>
<button id="but">
Upload
</button>
</form>
</div>
</div>
</body>
</html>

60
assets/style.css Normal file
View File

@ -0,0 +1,60 @@
* {
font-family: arial;
}
#but {
background-color: #eee;
border: 2px black solid;
}
button {
background-color: #eee;
border: 2px black solid;
}
#but:hover {
background-color: #ff6e00;
border: 2px black solid;
}
body {
background-color: #aaa;
}
h1 {
text-align: center;
bottom: 0%;
}
h3 {
text-align: center;
}
form {
text-align: center;
}
a {
color: #ff6e00;
}
a:hover {}
#main {
background-color: #eee;
bottom: 100%;
height: 100%;
padding-left: 5%;
padding-right: 5%;
}
.container {
display: flex;
/* outline: solid 1px black; */
justify-content: center;
height: 100%;
max-width: 100%;
background-color: #aaa;
}

View File

@ -1,17 +0,0 @@
<html>
<head>
<link rel="stylesheet" type="" href="./style.css">
<script src="https://unpkg.com/htmx.org@1.9.4/dist/htmx.min.js"></script>
</head>
<body>
<p><b>Test</b></p>
<form id='form' hx-encoding='multipart/form-data' hx-post='/api/upload'>
<input type="file" name="file" value="">
<button>
Upload
</button>
</form>
</form>
</body>
</html>