Added URL submission

This commit is contained in:
2018-11-17 16:47:39 +00:00
committed by cdramey
parent 412c625916
commit 5c669c8b93
9 changed files with 175 additions and 62 deletions

View File

@ -9,7 +9,7 @@
<body>
<div id="c">
qurl.org is a simple url shortening service, in the same vein as
<a href="https://bit.ly">bit.ly</a>, and
<a href="https://bit.ly">bit.ly</a> and
<a href="https://tinyurl.com">tinyurl.com</a>.
qurl.org is <a href="http://binarythought.com/qurl/LICENSE">open source</a>,
it's code is <a href="https://binarythought.com/fossils/qurl/">freely available</a>

View File

@ -10,6 +10,7 @@ input:focus { outline: 0; }
#u:focus { border-color: #129fea; }
#s { margin-top: 8px; color: #fff; background-color: #0078e7; border-color: transparent; }
#s:hover { background-image: linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1)); cursor: hover; }
#m { margin-bottom: 16px; }
@media screen and (min-width: 640px) {
#c { max-width: 600px; }
#u, #s { display: inline-block; margin: 0; }

24
assets/submit.html Normal file
View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>qurl.org</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" media="screen" href="qurl.css">
</head>
<body>
<div id="c">
<div id="m">
<div>{{if .Message}}{{.Message}}{{end}}</div>
<div>{{if .URL}}<a href="{{.URL}}">{{.URL}}</a>{{end}}</div>
</div>
qurl.org is a simple url shortening service, in the same vein as
<a href="https://bit.ly">bit.ly</a> and
<a href="https://tinyurl.com">tinyurl.com</a>.
qurl.org is <a href="http://binarythought.com/qurl/LICENSE">open source</a>,
it's code is <a href="https://binarythought.com/fossils/qurl/">freely available</a>
and has an <a href="api/index.html">easy to use API</a>.
</div>
</body>
</html>