feat: initial release

This commit is contained in:
2026-01-16 02:39:40 +01:00
parent 15af32d382
commit 2af23db0ad
21 changed files with 1163 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
{{define "base"}}
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>safebin</title>
<link rel="stylesheet" href="/static/css/style.css" />
</head>
<body>
<div class="container">
<header class="header">
<h2 style="margin: 0; color: var(--header-white)">safebin</h2>
<div class="dim">Encrypted Temporary File Storage</div>
</header>
{{template "content" .}}
<section style="margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border)">
<div class="dim" style="text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: 1px">CLI Usage</div>
<pre style="background: #161b22; padding: 16px; border-radius: 8px; font-size: 13px; overflow-x: auto; border: 1px solid var(--border)">
curl -F file=@yourfile {{.Host}}</pre
>
</section>
</div>
<input type="file" id="file-input" style="display: none" />
<script src="/static/js/app.js"></script>
</body>
</html>
{{end}}
+18
View File
@@ -0,0 +1,18 @@
{{define "content"}}
<main class="upload-area" id="drop-zone">
<div id="idle-state">
<div style="font-size: 32px; color: var(--accent)"></div>
<div style="font-weight: 500; color: var(--header-white)">Click or drag to upload</div>
<div class="dim">Max size: {{.MaxMB}}MB</div>
</div>
<div id="busy-state" style="display: none">
<div id="status-msg" style="font-weight: 500">Uploading...</div>
<div class="progress-bar" id="p-bar-container" style="display: block">
<div class="progress-fill" id="p-fill"></div>
</div>
</div>
<div id="result-state"></div>
</main>
{{end}}