url-shortener/index.html

26 lines
1.3 KiB
HTML
Raw Normal View History

2024-09-27 16:01:12 +00:00
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>URL Shortener</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>
<body>
<h1 class="p-2">URL Shortener</h1>
<p class="ps-2">Quickly shorten any URL!</p>
2024-09-29 13:37:39 +00:00
<form action="/form" method="POST" enctype="application/x-www-form-urlencoded">
2024-09-27 16:01:12 +00:00
<div class="mb-3 p-2">
<label for="slug" class="form-label">Slug</label>
2024-09-29 13:37:39 +00:00
<input type="text" class="form-control" id="slug" name="slug">
2024-09-27 16:01:12 +00:00
<div id="slugHelp" class="form-text">This is added to the short URL. Keep it simple.</div>
</div>
<div class="mb-3 p-2">
<label for="link" class="form-label">Link</label>
2024-09-29 13:37:39 +00:00
<input type="url" class="form-control" id="link" name="link">
2024-09-27 16:01:12 +00:00
<div id="linkHelp" class="form-text">This is the link that you want to redirect to.</div>
</div>
<button type="submit" class="btn btn-success" style="margin-left:.5rem;">Submit</button>
</form>
</body>
</html>