added basic html stuff

master
Rachel Lambda Samuelsson 2021-06-24 11:24:33 +02:00
commit a1a1401a1d
2 changed files with 53 additions and 0 deletions

41
views/index.html 100644
View File

@ -0,0 +1,41 @@
<!DOCTYPE html>
<head>
<meta cherset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>viddl</title>
</head>
<body>
<center>
<h1>viddl</h1>
<p>Download videos from sources such as youtube, vimeo, video, <a href="https://github.com/ytdl-org/youtube-dl/blob/master/docs/supportedsites.md">and more!</a></p>
<table>
<tr>
<td valign="top">
<h2>Video download</h2>
<form method="post" action="/">
<input required name="url" type="text" placeholder="Enter url here"><br>
<label for="resolution">res</label>
<select required name="resolution">
<option value="max">Smallest Possible</option>
<option value="144p">144p</option>
<option value="240p">240p</option>
<option value="360p">360p</option>
<option value="480p">480p</option>
<option selected value="720p">720p</option>
<option value="1080p">1080p</option>
<option value="max">Largest Possible</option>
</select><br>
<input type="submit" value="Download">
</form>
</td>
<td valign="top">
<h2>Audio only download</h2>
<form method="post" action="/">
<input required name="url" type="text" placeholder="Enter url here"><br>
<input type="submit" value="Download">
</form>
</td>
</tr>
</table>
</center>
</body>

12
views/loading.html 100644
View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<head>
<meta cherset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>viddl</title>
</head>
<body>
<center>
<h1>viddl</h1>
<p>Your request is being processed... Please wait...</p>
</center>
</body>