diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2023-01-09 00:05:38 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2023-01-09 00:05:38 +0100 |
| commit | 9d7152b5ca085c70e9b0d94adb6f5f9ff8d6f127 (patch) | |
| tree | b1b7453c97a83c45b6911148ce36050be7dbefc3 /BlobBin/wwwroot | |
| download | blob-bin-9d7152b5ca085c70e9b0d94adb6f5f9ff8d6f127.tar.xz blob-bin-9d7152b5ca085c70e9b0d94adb6f5f9ff8d6f127.zip | |
feat: init
Diffstat (limited to 'BlobBin/wwwroot')
| -rw-r--r-- | BlobBin/wwwroot/index.html | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/BlobBin/wwwroot/index.html b/BlobBin/wwwroot/index.html new file mode 100644 index 0000000..f252fe3 --- /dev/null +++ b/BlobBin/wwwroot/index.html @@ -0,0 +1,80 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <style> + body { + font-family: sans-serif; + } + + form { + width: 100%; + max-width: 300px; + display: flex; + flex-direction: column; + gap: 5px; + } + + #forms { + display: flex; + flex-direction: row; + gap: 15px; + flex-wrap: wrap; + } + + #forms summary { + width: 300px; + cursor: pointer; + } + </style> + <title>Blobbin</title> +</head> +<body> +<h1>Blobbin</h1> +<p>This is a web service you can upload files and texts to.</p> +<main id="forms"> + <details> + <summary>Upload a file</summary> + <form action="/upload" method="post"> + <input type="file" id="file" name="files" required> + <label for="file-password">Password (optional)</label> + <input type="password" name="password" id="file-password"> + <label for="file-auto-delete"> + Automatically delete after (optional) + <span class="label-description" + title="blank=never, <number><unit>, unit can be d=day,w=week,h=hour,m=minute">?</span> + </label> + <input type="text" + id="file-auto-delete" + name="autoDeleteAfter"> + <label for="file-singleton"> + <input type="checkbox" name="singleton" id="file-singleton"> + Delete after first open</label> + <input type="submit"> + </form> + </details> + <details> + <summary>Upload some text</summary> + <form action="/text" method="post"> + <textarea id="text" name="text" required></textarea> + <label for="text-password">Mimetype (default: text/plain)</label> + <input type="password" name="mime" id="text-mimetype"> + <label for="text-password">Password (optional)</label> + <input type="password" name="password" id="text-password"> + <label for="text-auto-delete"> + Automatically delete after (optional) + <span class="label-description" + title="blank=never, <number><unit>, unit can be d=day,w=week,h=hour,m=minute">?</span> + </label> + <input type="text" + id="text-auto-delete" + name="autoDeleteAfter"> + <label for="text-singleton"> + <input type="checkbox" id="text-singleton" name="singleton"> + Delete after first open</label> + <input type="submit"> + </form> + </details> +</main> +</body> +</html>
\ No newline at end of file |
