aboutsummaryrefslogtreecommitdiff
path: root/src/templates/index.html
diff options
context:
space:
mode:
authorJulien Dessaux2021-10-25 23:33:28 +0200
committerJulien Dessaux2021-10-25 23:33:28 +0200
commit031473807e1f1d811d1e294e09cbca6c6ba839f9 (patch)
treea78260577d4ce3ebf2e7b79c8b144eb8d7553335 /src/templates/index.html
parentHardcode HEAD for jester and tiny_sqlite while waiting for releases in both p... (diff)
downloadshort-031473807e1f1d811d1e294e09cbca6c6ba839f9.tar.gz
short-031473807e1f1d811d1e294e09cbca6c6ba839f9.tar.bz2
short-031473807e1f1d811d1e294e09cbca6c6ba839f9.zip
Added about page and a nav menu that links to it
Diffstat (limited to '')
-rw-r--r--src/templates/index.html10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/templates/index.html b/src/templates/index.html
index b89e381..acce5c4 100644
--- a/src/templates/index.html
+++ b/src/templates/index.html
@@ -1,13 +1,9 @@
{% extends "templates/partials/master.html" %}
{% block content %}
-<h1>URL shortener</h1>
-<p>
-The simple, open source and privacy friendly URL shortener : anonymous usage, no tracking.<br>
-This is a personal sharing service: Data may be deleted anytime. Don't share illegal, unethical or morally reprehensible content.
-</p>
+<h1>Shorten a URL</h1>
<form action="/" method="post">
- <label for="title">Title:</label><input class="fullwidth" type="text" placeholder="Enter a title here" name="title" value="{{ $req.Title }}" minlength="3" maxlength="64" required autofocus><br>
- <label for="url">URL:</label><input class="fullwidth" type="url" placeholder="Enter the URL to shorten here" name="url" value="{{ $req.Url }}" minlength="3" maxlength="512" required><br>
+ <input class="fullwidth" type="text" placeholder="Enter a title here" name="title" value="{{ $req.Title }}" minlength="3" maxlength="64" required autofocus><br>
+ <input class="fullwidth" type="url" placeholder="Enter the URL to shorten here" name="url" value="{{ $req.Url }}" minlength="3" maxlength="512" required><br>
<label for="expires">Expires in:</label>
<select id="expires" name="expires">
<option value="5">5 minutes</option>