summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/wormhole-success.html.template10
-rw-r--r--templates/wormhole.html.template14
2 files changed, 10 insertions, 14 deletions
diff --git a/templates/wormhole-success.html.template b/templates/wormhole-success.html.template
index 8df614e..a957173 100644
--- a/templates/wormhole-success.html.template
+++ b/templates/wormhole-success.html.template
@@ -1,8 +1,8 @@
{{define "head"}}<title>Uploaded!</title>{{end}}
-<div style="display:flex;justify-content:center">
- <div>
- <p style="display:flex;justify-content:center">Uploaded!</p>
- <img src="/static/tohru.webp" alt="An energetic dragon maid">
- </div>
+<div style="display:flex;flex-direction:column;align-items:center;font-size:50px">
+ <p><a href="{{.URL}}">{{.URL}}</a></p>
+ <img src="{{.QR}}" alt="QR code for {{.URL}}" width="500px">
+ <p>Uploaded!</p>
+ <img src="/static/tohru.webp" alt="An energetic dragon maid">
</div>
diff --git a/templates/wormhole.html.template b/templates/wormhole.html.template
index eb423ca..c89bad6 100644
--- a/templates/wormhole.html.template
+++ b/templates/wormhole.html.template
@@ -4,19 +4,15 @@
<form
method="post"
- enctype="multipart/form-data">
+ enctype="multipart/form-data"
+ style="display:flex;flex-direction:column;align-items:center">
<ol>
<li>
- <label for="file-input">Choose file</label>
- <input id="file-input" type="file" name="file">
+ <input id="file-input" type="file" name="file" width="50px">
</li>
<li>
- <p>Visit this URL <a href="/wormhole/{{.Hole}}">{{.Self}}/wormhole/{{.Hole}}</a> or scan QR code:</p>
- <img src="/wormhole/{{.Hole}}/qr.png?s={{.Sig}}" alt="QR code for {{.Self}}/wormhole/{{.Hole}}">
- </li>
- <li>
- <label for="submit">Click here:</label>
- <input id="submit" type="submit" value="Upload">
+ <input id="submit" type="submit" value="Upload" width="50px">
</li>
</ol>
+ Files will be deleted after 1 hour
</form>