style the home page, get rid of nojs pages
instead of having dedicated nojs pages, i will instead just use javascript to enhance the already existing pages
This commit is contained in:
+35
-26
@@ -4,34 +4,43 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>minibin</title>
|
||||
<link rel="stylesheet" href="/css/main.css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>minibin</h1>
|
||||
<p>simple file and paste hosting service</p>
|
||||
<noscript>
|
||||
Javascript is required for drag and drop upload, upload progress, and a few other features. <a href="/nojs/">No Javascript version</a>
|
||||
</noscript>
|
||||
<form action="/upload?redirect=true" method="post">
|
||||
<label for="content">paste content</label>
|
||||
<textarea id="content" name="content" rows="10" required></textarea>
|
||||
<label for="paste-expiry">Expiry</label>
|
||||
<select id="paste-expiry" name="expiry">
|
||||
{{range .Expiries}}
|
||||
<option value="{{.Label}}">{{.Label}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
<button type="submit">upload paste</button>
|
||||
</form>
|
||||
<main>
|
||||
<h1>minibin</h1>
|
||||
<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?redirect=true" method="post" enctype="multipart/form-data">
|
||||
<label for="file-expiry">expiry</label>
|
||||
<select id="paste-expiry" name="expiry">
|
||||
{{range .Expiries}}
|
||||
<option value="{{.Label}}">{{.Label}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
<input type="file" required name="file" />
|
||||
<button type="submit">upload file</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="paste-panel">
|
||||
<form action="/upload?redirect=true" method="post">
|
||||
<label for="paste-expiry">expiry</label>
|
||||
|
||||
<form action="/upload?redirect=true" method="post" enctype="multipart/form-data">
|
||||
<input type="file" required name="file"/>
|
||||
<label for="file-expiry">Expiry</label>
|
||||
<select id="paste-expiry" name="expiry">
|
||||
{{range .Expiries}}
|
||||
<option value="{{.Label}}">{{.Label}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
<button type="submit">upload File</button>
|
||||
</form>
|
||||
<select id="paste-expiry" name="expiry">
|
||||
{{range .Expiries}}
|
||||
<option value="{{.Label}}">{{.Label}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
<textarea id="content" name="content" rows="10" required placeholder="cmon, paste something already!"></textarea>
|
||||
<button type="submit">upload paste</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>minibin</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>minibin</h1>
|
||||
<p>simple file and paste hosting service</p>
|
||||
<form action="/upload?redirect=true" method="post">
|
||||
<label for="content">paste content</label>
|
||||
<textarea id="content" name="content" rows="10" required></textarea>
|
||||
<label for="paste-expiry">Expiry</label>
|
||||
<select id="paste-expiry" name="expiry">
|
||||
{{range .Expiries}}
|
||||
<option value="{{.Label}}">{{.Label}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
<button type="submit">upload paste</button>
|
||||
</form>
|
||||
|
||||
<form action="/upload?redirect=true" method="post" enctype="multipart/form-data">
|
||||
<input type="file" required name="file"/>
|
||||
<label for="file-expiry">Expiry</label>
|
||||
<select id="paste-expiry" name="expiry">
|
||||
{{range .Expiries}}
|
||||
<option value="{{.Label}}">{{.Label}}</option>
|
||||
{{end}}
|
||||
</select>
|
||||
<button type="submit">upload File</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user