FEAT: Initial Upload Page

This commit is contained in:
fahd
2026-08-12 19:03:02 +03:00
parent 7754051e9c
commit dc2d1c6e33
14 changed files with 1005 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
package layouts
templ Layout(title string) {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>{ title }</title>
<script src="https://unpkg.com/htmx.org@2.0.4"></script>
<link rel="stylesheet" href="/static/css/app.css"/>
</head>
<body>
<main class="container">
{ children... }
</main>
<script>
document.body.addEventListener('htmx:beforeSwap', function (evt) {
if (evt.detail.xhr.status === 422) {
evt.detail.shouldSwap = true;
}
});
</script>
</body>
</html>
}