mirror of
https://github.com/CragglesG/url-shortener.git
synced 2024-11-23 05:23:40 +00:00
26 lines
No EOL
1.3 KiB
HTML
26 lines
No EOL
1.3 KiB
HTML
<!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>
|
|
<form action="/form" method="POST" enctype="application/x-www-form-urlencoded">
|
|
<div class="mb-3 p-2">
|
|
<label for="slug" class="form-label">Slug</label>
|
|
<input type="text" class="form-control" id="slug" name="slug">
|
|
<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>
|
|
<input type="url" class="form-control" id="link" name="link">
|
|
<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> |