aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulien Dessaux2021-10-29 00:58:16 +0200
committerJulien Dessaux2021-10-29 00:58:16 +0200
commitbb7a2c66ee07a0049f319cc7ded8bb34e790802a (patch)
treee4ffd108c9bc784ace1ae41c62e630a6ef08ac5f /src
parentCleaned main file (diff)
downloadshort-bb7a2c66ee07a0049f319cc7ded8bb34e790802a.tar.gz
short-bb7a2c66ee07a0049f319cc7ded8bb34e790802a.tar.bz2
short-bb7a2c66ee07a0049f319cc7ded8bb34e790802a.zip
Updated css
Diffstat (limited to 'src')
-rw-r--r--src/templates/index.html13
-rw-r--r--src/templates/partials/footer.html7
-rw-r--r--src/templates/partials/master.html9
-rw-r--r--src/templates/partials/nav.html16
4 files changed, 21 insertions, 24 deletions
diff --git a/src/templates/index.html b/src/templates/index.html
index 2c27a14..bd0f853 100644
--- a/src/templates/index.html
+++ b/src/templates/index.html
@@ -2,10 +2,9 @@
{% block content %}
<h1>Shorten a URL</h1>
<form action="/" method="post">
- <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">
+ <label>Title:<input name="title" value="{{ $req.Title }}" minlength="3" maxlength="64" required autofocus type="text" placeholder="Enter a title here"></label>
+ <label>URL:<input type="url" placeholder="Enter the URL to shorten here" name="url" value="{{ $req.Url }}" minlength="3" maxlength="512" required></label>
+ <label>Expires in:<select name="expires">
<option value="5">5 minutes</option>
<option value="10">10 minutes</option>
<option value="60">1 hour</option>
@@ -14,9 +13,7 @@
<option value="44640">1 month</option>
<option value="263520">6 months</option>
<option value="527040">1 year</option>
- </select>
- <input type="submit" value="shorten">
+ </select></label>
+ <button type="submit">shorten</button>
</form>
-<ul>
-</ul>
{% endblock %}
diff --git a/src/templates/partials/footer.html b/src/templates/partials/footer.html
index 6ae4459..555e0d1 100644
--- a/src/templates/partials/footer.html
+++ b/src/templates/partials/footer.html
@@ -1,5 +1,6 @@
<footer>
- <p>
- &copy; 2021 | Julien (Adyxax) Dessaux | <a href="https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12" title="EUPL 1.2">Some rights reserved</a>
- </p>
+ <hr>
+ <p>
+ <center><small>&copy; 2021 | <a href="https://www.adyxax.org/docs/about-me/">Julien (Adyxax) Dessaux</a> | <a href="https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12" title="EUPL 1.2">Some rights reserved</a></small></center>
+ </p>
</footer>
diff --git a/src/templates/partials/master.html b/src/templates/partials/master.html
index 78e3211..cebdd61 100644
--- a/src/templates/partials/master.html
+++ b/src/templates/partials/master.html
@@ -1,16 +1,19 @@
<!doctype html>
<html class="no-js" lang="en">
<head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="/static/favicon.ico">
<link rel="stylesheet" href="{{ $cssRoute }}">
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
<title>short.adyxax.org</title>
</head>
<body>
- {% importnwt "templates/partials/nav.html" %}
+ <header>
+ {% importnwt "templates/partials/nav.html" %}
+ </header>
<main id="main">
+ <hr>
{% block content %}{% endblock %}
</main>
{% importnwt "templates/partials/footer.html" %}
diff --git a/src/templates/partials/nav.html b/src/templates/partials/nav.html
index 8882ff0..a4132e0 100644
--- a/src/templates/partials/nav.html
+++ b/src/templates/partials/nav.html
@@ -1,10 +1,6 @@
-<header>
- <nav>
- <ul>
- <li class="nav-menu-title"><a href="/">short.adyxax.org</a></li>
- <li class="nav-menu-margin-left">
- <a href="/about">About</a>
- </li>
- </ul>
- </nav>
-</header>
+<nav>
+ <a href="/">short.adyxax.org</a>
+ <ul>
+ <li><a href="/about">About</a></li>
+ </ul>
+</nav>