mirror of
https://github.com/CragglesG/url-shortener.git
synced 2025-05-10 14:43:06 +00:00
Added HTML and server
This commit is contained in:
parent
1d0b82436d
commit
d02ca243eb
14 changed files with 191 additions and 1 deletions
26
index.html
Normal file
26
index.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<!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">
|
||||
<div class="mb-3 p-2">
|
||||
<label for="slug" class="form-label">Slug</label>
|
||||
<input type="text" class="form-control" id="slug" aria-describedby="emailHelp">
|
||||
<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="text" class="form-control" id="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>
|
Loading…
Add table
Add a link
Reference in a new issue