url-shortener/public/index.html

45 lines
1.8 KiB
HTML
Raw Permalink Normal View History

2022-02-23 11:29:46 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="public/main.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto">
<title>URL Shortener</title>
</head>
<body class="bg-coolgray-800 text-pink-200">
<div class="form">
<form action="" id="form">
<h2>URL Shortener</h2>
<div class="form-longurl">
<label for="longUrl">Long Url</label>
<input class="bg-coolgray-700 text-emerald-400 focus:border-coolgray-50 rounded-lg" type="text" id="longUrl" placeholder="www.example.com/very-long-url/and/totally/hard-to-remember" name="longUrl">
</div>
2022-09-05 16:41:06 +00:00
<div id="customPathDiv">
<label for="customPath">custom Path</label>
<input class="bg-coolgray-700 text-emerald-400 focus:border-coolgray-50 rounded-lg" type="text" id="customPath" placeholder="cool_path" name="customPath">
</div>
2022-02-23 11:29:46 +00:00
<div class="form-button">
<button type="submit" class="btn-submit hover:bg-red-700 focus:bg-red-700" id="btnSubmit">
Submit
</button>
</div>
</form>
</div>
<div id="response">
<br/>
<p id="longUrl"></p>
<a id="shortUrl" class="text-emerald-500" href=""></a>
</div>
2022-09-05 16:41:06 +00:00
<div id="edit">
<br>
<br>
<p class="text-emerald-500">New Url for the site </p>
<a class="text-emerald-500" href="" id="oldLongUrl"></a>
<br>
<a class="text-emerald-500" href="" id="oldShortUrl"></a>
</div>
2022-02-23 11:29:46 +00:00
<script type="module" src="public/js/app.js"></script>
</body>
</html>