init, dotenv, mongo, working
This commit is contained in:
commit
fe1417851d
17 changed files with 318376 additions and 0 deletions
33
public/index.html
Normal file
33
public/index.html
Normal file
|
@ -0,0 +1,33 @@
|
|||
<!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>
|
||||
<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>
|
||||
<script type="module" src="public/js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue