summaryrefslogtreecommitdiffstats
path: root/pages/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'pages/index.html')
-rw-r--r--pages/index.html65
1 files changed, 65 insertions, 0 deletions
diff --git a/pages/index.html b/pages/index.html
new file mode 100644
index 0000000..038fbcd
--- /dev/null
+++ b/pages/index.html
@@ -0,0 +1,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="/static/anime.png" id="anime">
+
+ <script src="/static/script.js"></script>
+ </body>
+</html>