diff options
Diffstat (limited to '')
-rw-r--r-- | src/templates/index.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/templates/index.html b/src/templates/index.html new file mode 100644 index 0000000..b89e381 --- /dev/null +++ b/src/templates/index.html @@ -0,0 +1,25 @@ +{% 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> +<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> + <label for="expires">Expires in:</label> + <select id="expires" name="expires"> + <option value="5">5 minutes</option> + <option value="10">10 minutes</option> + <option value="60">1 hour</option> + <option value="1440">1 day</option> + <option value="10080" selected>1 week</option> + <option value="44640">1 month</option> + <option value="527040">1 year</option> + </select> + <input type="submit" value="shorten"> +</form> +<ul> +</ul> +{% endblock %} |