Add html templates, improved URL validation and control flag for shortened URL

This commit is contained in:
2019-04-29 20:06:11 +02:00
parent dc9472b5fd
commit ecbc575db7
8 changed files with 1058 additions and 83 deletions

33
templates/returnPage.html Normal file
View File

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang=en>
<head>
<title>Short: the simple url shortner</title>
<style>
@import url('https://fonts.googleapis.com/css?family=Abril+Fatface|Lato');
body {
background: #D3DEEA;
}
.bottom {
position:fixed;
top:30%;
left:35%;
}
p {
text-align: center;
font-family: 'Lato', sans-serif;
color: #585959;
font-size: 1em;
margin-top: -20px;
text-transform: uppercase;
}
</style>
</head>
<body>
<div class="bottom">
<p>URL Shortened to <a href="{{ . }}">{{ . }}</a></p>
</div>
</body>
</html>