Upload 2 files
Browse files- templates/home.html +85 -0
- templates/login.html +27 -0
templates/home.html
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html>
|
| 3 |
+
|
| 4 |
+
<head>
|
| 5 |
+
<title>YouTube Livestream Audio Recorder</title>
|
| 6 |
+
<!-- Add necessary CSS and jQuery libraries -->
|
| 7 |
+
<style>
|
| 8 |
+
body {
|
| 9 |
+
font-family: Roboto, sans-serif;
|
| 10 |
+
margin: 0;
|
| 11 |
+
padding: 0;
|
| 12 |
+
height: 100%;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
#container {
|
| 16 |
+
width: 600px;
|
| 17 |
+
margin: 0 auto;
|
| 18 |
+
text-align: center;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
#url {
|
| 22 |
+
width: 500px;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
button {
|
| 26 |
+
margin: 10px;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
.row, h2 {
|
| 30 |
+
display: flex;
|
| 31 |
+
align-items: center;
|
| 32 |
+
margin: 10px;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
select, button {
|
| 36 |
+
padding: 5px;
|
| 37 |
+
border: 1px solid #ccc;
|
| 38 |
+
border-radius: 5px;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
input {
|
| 42 |
+
padding: 5px;
|
| 43 |
+
border: 1px solid #ccc;
|
| 44 |
+
border-radius: 5px;
|
| 45 |
+
width: 500px;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
label, #message {
|
| 49 |
+
margin: 0px 5px 0px 10px;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
button {
|
| 53 |
+
background-color: #2196f3;
|
| 54 |
+
color: white;
|
| 55 |
+
cursor: pointer;
|
| 56 |
+
margin: 0px 0px 0px 3px;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
button:hover {
|
| 60 |
+
background-color: #1976d2;
|
| 61 |
+
}
|
| 62 |
+
</style>
|
| 63 |
+
</head>
|
| 64 |
+
|
| 65 |
+
<body>
|
| 66 |
+
<div class="container">
|
| 67 |
+
<h2>Search & Transcribing Utilities</h2>
|
| 68 |
+
<div class="mb-3 row">
|
| 69 |
+
<label for="urlInput" class="form-label">Enter YouTube Livestream URL:</label>
|
| 70 |
+
<input type="text" class="form-control" id="urlInput"
|
| 71 |
+
placeholder="e.g., https://www.youtube.com/watch?v=YOUR_STREAM_ID">
|
| 72 |
+
|
| 73 |
+
<button class="btn btn-primary" id="startBtn">Start</button>
|
| 74 |
+
<button class="btn btn-danger" id="stopBtn">Stop</button>
|
| 75 |
+
<div id="message"></div>
|
| 76 |
+
</div>
|
| 77 |
+
|
| 78 |
+
<!-- Add necessary jQuery library -->
|
| 79 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
| 80 |
+
<!-- Add custom script for handling button clicks -->
|
| 81 |
+
<script src="{{ url_for('static', filename='script.js') }}"></script>
|
| 82 |
+
|
| 83 |
+
</body>
|
| 84 |
+
|
| 85 |
+
</html>
|
templates/login.html
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
|
| 4 |
+
<head>
|
| 5 |
+
<meta charset="UTF-8">
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 8 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 9 |
+
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
|
| 10 |
+
<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='style.css') }}">
|
| 11 |
+
<title>Flask app</title>
|
| 12 |
+
</head>
|
| 13 |
+
|
| 14 |
+
<body>
|
| 15 |
+
<div id="login">
|
| 16 |
+
<a href="google/" id="loginButton" style="text-decoration:none;">
|
| 17 |
+
<img id="google"
|
| 18 |
+
src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/53/Google_%22G%22_Logo.svg/2048px-Google_%22G%22_Logo.svg.png"
|
| 19 |
+
alt="Google" style="width:50px;height:50px;">
|
| 20 |
+
<div id="loginButtonText">
|
| 21 |
+
Login with Google
|
| 22 |
+
</div>
|
| 23 |
+
</a>
|
| 24 |
+
</div>
|
| 25 |
+
</body>
|
| 26 |
+
|
| 27 |
+
</html>
|