1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-12-26 07:38:36 -06:00
chhoto-url/src/main/resources/public/index.html

68 lines
2 KiB
HTML
Raw Normal View History

2020-02-14 12:52:14 -06:00
<!DOCTYPE html>
<html lang="en">
2022-11-02 03:09:36 -05:00
2020-02-14 12:52:14 -06:00
<head>
<meta charset="UTF-8">
<meta name="viewport"
2022-11-02 03:09:36 -05:00
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
2020-02-14 12:52:14 -06:00
<meta http-equiv="X-UA-Compatible" content="ie=edge">
2020-04-18 15:53:01 -05:00
<title>Simply Shorten</title>
2020-02-14 12:52:14 -06:00
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.1/build/pure-min.css"
2022-11-02 03:09:36 -05:00
integrity="sha384-oAOxQR6DkCoMliIh8yFnu25d7Eq/PHS21PClpwjOTeU2jRSq11vu66rf90/cZr47" crossorigin="anonymous">
2020-02-14 12:52:14 -06:00
<script src="js/main.js"></script>
<style>
.container {
max-width: 950px;
margin: 20px auto auto;
}
table {
width: 100%;
}
input {
width: 65%;
}
2020-02-14 12:52:14 -06:00
</style>
</head>
2022-11-02 03:09:36 -05:00
2020-02-14 12:52:14 -06:00
<body>
2022-11-02 03:09:36 -05:00
<div class="container">
<form class="pure-form pure-form-aligned" name="new-url-form">
<fieldset>
<legend>Add new URL</legend>
<div class="pure-control-group">
<label for="longUrl">Long URL</label>
<input type="url" name="longUrl" id="longUrl" placeholder="Please enter a valid URL" required />
2022-11-02 03:09:36 -05:00
</div>
<div class="pure-control-group">
<label for="shortUrl">Short URL (Optional)</label>
<input type="text" name="shortUrl" id="shortUrl" placeholder="Only a-z, 0-9, - and _ are allowed"
2022-11-02 03:09:36 -05:00
pattern="[a-z0-9_-]+" />
</div>
<div class="pure-controls">
<button class="pure-button pure-button-primary">Submit</button>
</div>
</fieldset>
</form>
<table class="pure-table">
<thead>
<tr>
<td>Long URL</td>
<td>Short url</td>
<td></td>
</tr>
</thead>
<tbody id="url-table">
</tbody>
</table>
</div>
2020-02-14 12:52:14 -06:00
</body>
2022-11-02 03:09:36 -05:00
</html>