opengraph; proper max size labels

This commit is contained in:
2026-11-14 20:03:52 -05:00
parent 53b0aac403
commit 93da714ed0
3 changed files with 31 additions and 17 deletions
+2
View File
@@ -4,6 +4,8 @@
minibin is a simple file and paste hosting service written in Go
> it's not really that simple but whatever
i will try my best to make it easy to customize and deploy, but this is a personal project and made using my own preferences, so you may need to change the tos/privacy policy/faq etc to fit your needs
goals:
+7
View File
@@ -246,4 +246,11 @@ body.dragging::after {
code {
background-color: var(--surface-between);
padding-inline: 4px;
}
.submit-container {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}
+22 -17
View File
@@ -13,6 +13,9 @@
}
</style>
{{end}}
<meta name="description" content="simple file and paste hosting service" />
<meta property="og:title" content="minibin" />
<meta property="og:description" content="simple file and paste hosting service" />
</head>
<body class="home-page" id="home-page">
@@ -26,23 +29,22 @@
<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>
<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>
<input id="upload-file" type="file" required name="file" />
<button type="submit" class="btn">upload file</button>
<div class="submit-container">
<button type="submit" class="btn">upload file</button>
<span class="muted">max {{.FileMaxSize}}</span>
</div>
</form>
</div>
<div class="paste-panel">
@@ -59,7 +61,10 @@
<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>
<div class="submit-container">
<button type="submit" class="btn">upload paste</button>
<span class="muted">max {{.PasteMaxSize}}</span>
</div>
</form>
</div>
</div>