qtify other pages + fixed position on qts
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
This commit is contained in:
@@ -5,6 +5,13 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>faq | minibin</title>
|
||||
<link rel="stylesheet" href="/css/main.css" />
|
||||
{{if .Qt}}
|
||||
<style>
|
||||
:root {
|
||||
--qt-url: url("{{.Qt}}");
|
||||
}
|
||||
</style>
|
||||
{{end}}
|
||||
</head>
|
||||
<body>
|
||||
{{template "site-header"}}
|
||||
|
||||
+15
-11
@@ -26,17 +26,21 @@
|
||||
<label for="type-paste">paste</label>
|
||||
<div class="file-panel">
|
||||
<form action="/upload?return=html" method="post" enctype="multipart/form-data">
|
||||
<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>
|
||||
<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>
|
||||
|
||||
@@ -5,6 +5,13 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>privacy | minibin</title>
|
||||
<link rel="stylesheet" href="/css/main.css" />
|
||||
{{if .}}
|
||||
<style>
|
||||
:root {
|
||||
--qt-url: url("{{.}}");
|
||||
}
|
||||
</style>
|
||||
{{end}}
|
||||
</head>
|
||||
<body>
|
||||
{{template "site-header"}}
|
||||
|
||||
@@ -5,6 +5,13 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>tos | minibin</title>
|
||||
<link rel="stylesheet" href="/css/main.css" />
|
||||
{{if .}}
|
||||
<style>
|
||||
:root {
|
||||
--qt-url: url("{{.}}");
|
||||
}
|
||||
</style>
|
||||
{{end}}
|
||||
</head>
|
||||
<body>
|
||||
{{template "site-header"}}
|
||||
|
||||
@@ -5,6 +5,13 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>{{.ID}} | minibin</title>
|
||||
<link rel="stylesheet" href="/css/main.css" />
|
||||
{{if .Qt}}
|
||||
<style>
|
||||
:root {
|
||||
--qt-url: url("{{.Qt}}");
|
||||
}
|
||||
</style>
|
||||
{{end}}
|
||||
</head>
|
||||
<script src="/js/copy.js" defer></script>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user