working on showing the max upload size, just figuring out how to make it look good and where to position it. there's probably a better way to include qts in all of these pages without having to pass all of these variables
69 lines
2.6 KiB
HTML
69 lines
2.6 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>minibin</title>
|
|
<link rel="stylesheet" href="/css/main.css" />
|
|
<script defer src="/js/dnd.js"></script>
|
|
{{if .Qt}}
|
|
<style>
|
|
:root {
|
|
--qt-url: url("{{.Qt}}");
|
|
}
|
|
</style>
|
|
{{end}}
|
|
</head>
|
|
|
|
<body class="home-page" id="home-page">
|
|
{{template "site-header"}}
|
|
<main>
|
|
<p>simple file and paste hosting service</p>
|
|
<div class="upload-tabs">
|
|
<input type="radio" name="upload-type" id="type-file" checked />
|
|
<label for="type-file">file</label>
|
|
<input type="radio" name="upload-type" id="type-paste" />
|
|
<label for="type-paste">paste</label>
|
|
<div class="file-panel">
|
|
<form action="/upload?return=html" method="post" enctype="multipart/form-data">
|
|
<div>
|
|
<label class="muted" for="file-expiry">expiry</label>
|
|
<select id="file-expiry" name="expiry">
|
|
{{range .Expiries}}
|
|
<option value="{{.Label}}">{{.Label}}</option>
|
|
{{end}}
|
|
</select>
|
|
<label class="muted" for="file-id-length">id length</label>
|
|
<select id="file-id-length" name="idlength">
|
|
<option value="long">16 characters</option>
|
|
<option value="short">10 characters</option>
|
|
</select>
|
|
<span style="margin-left: auto;">max {{.FileMaxSize}}</span>
|
|
</div>
|
|
|
|
<input id="upload-file" type="file" required name="file" />
|
|
<button type="submit" class="btn">upload file</button>
|
|
</form>
|
|
</div>
|
|
<div class="paste-panel">
|
|
<form action="/upload?return=html" method="post">
|
|
<label class="muted" for="paste-expiry">expiry</label>
|
|
<select id="paste-expiry" name="expiry">
|
|
{{range .Expiries}}
|
|
<option value="{{.Label}}">{{.Label}}</option>
|
|
{{end}}
|
|
</select>
|
|
<label class="muted" for="paste-id-length">id length</label>
|
|
<select id="paste-id-length" name="idlength">
|
|
<option value="long">16 characters</option>
|
|
<option value="short">10 characters</option>
|
|
</select>
|
|
<textarea id="content" name="content" rows="10" required placeholder="{{.PastePlaceholder}}"></textarea>
|
|
<button type="submit" class="btn">upload paste</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
</html>
|