summaryrefslogtreecommitdiffstats
path: root/pages/index.html
blob: c60e266bcabd5cf0205d6d6f47481863ba9f125a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>

<html>
	<head>
		<title>{{ .SiteName }}</title>
		<meta name=viewport content="width=device-width, initial-scale=1">
		<meta name="description" content="Simple, minimal, and cyberpunk file uploading. Upload any file (currently) up to {{ .MaxSize }}. Pls enjoy.">

		<link rel="stylesheet" href="/static/style.css">

		<link rel="shortcut icon" href="/favicon.ico">
		<link rel="icon" sizes="16x16 32x32 64x64" href="/static/favicons/favicon.ico">
		<link rel="icon" type="image/png" sizes="196x196" href="/static/favicons/favicon-192.png">
		<link rel="icon" type="image/png" sizes="160x160" href="/static/favicons/favicon-160.png">
		<link rel="icon" type="image/png" sizes="96x96" href="/static/favicons/favicon-96.png">
		<link rel="icon" type="image/png" sizes="64x64" href="/static/favicons/favicon-64.png">
		<link rel="icon" type="image/png" sizes="32x32" href="/static/favicons/favicon-32.png">
		<link rel="icon" type="image/png" sizes="16x16" href="/static/favicons/favicon-16.png">
		<link rel="apple-touch-icon" href="/static/favicons/favicon-57.png">
		<link rel="apple-touch-icon" sizes="114x114" href="/static/favicons/favicon-114.png">
		<link rel="apple-touch-icon" sizes="72x72" href="/static/favicons/favicon-72.png">
		<link rel="apple-touch-icon" sizes="144x144" href="/static/favicons/favicon-144.png">
		<link rel="apple-touch-icon" sizes="60x60" href="/static/favicons/favicon-60.png">
		<link rel="apple-touch-icon" sizes="120x120" href="/static/favicons/favicon-120.png">
		<link rel="apple-touch-icon" sizes="76x76" href="/static/favicons/favicon-76.png">
		<link rel="apple-touch-icon" sizes="152x152" href="/static/favicons/favicon-152.png">
		<link rel="apple-touch-icon" sizes="180x180" href="/static/favicons/favicon-180.png">
		<meta name="msapplication-TileColor" content="#FFFFFF">
		<meta name="msapplication-TileImage" content="/favicon-144.png">
		<meta name="msapplication-config" content="/browserconfig.xml">
	</head>

	<body>
		<h1 id="header">wired</h1>

		{{ with .Result }}{{ if or .Files .Description }}
		<h2>{{ if .Description }}Error!{{ else }}Uploaded!{{ end }}</h2>
		<div class="box" id="uploads">
			<div class="upload">
				{{ range .Files }}
				<p><a href="{{ .Url }}" class="link">{{ .Url }}</a></p>
				{{ else }}
				<p>{{ .Description }}</p>
				{{ end }}
			</div>
		</div>
		{{ end }}{{ end }}

		<form action="/upload.php" method="post" enctype="multipart/form-data">
			<input type=hidden name="output" value="html">

			<div class="box">
				<input type="file" name="files[]" id="file-select" multiple>
			</div>

			<input type="submit" value="Upload!" id="upload">
		</form>

		{{ range $name, $path := .Pages }}{{ if ne $path "index.html" }}<h5><a href="{{ $path }}">{{ $name }}</a></h5>{{ end }}{{ end }}

		<img src="/grill.php" id="anime">

		<script src="/static/script.js"></script>
	</body>
</html>