Kanhshsh commited on
Commit
5538997
·
verified ·
1 Parent(s): d08cefa

Create templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +41 -0
templates/index.html ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>YouTube Shorts Uploader</title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
8
+ </head>
9
+ <body class="bg-dark text-white">
10
+
11
+ <div class="container py-5 text-center">
12
+ <h1 class="mb-4">📺 YouTube Shorts Uploader</h1>
13
+
14
+ <!-- Embedded YouTube Video -->
15
+ {% if video_id %}
16
+ <div class="ratio ratio-9x16 mb-4" style="max-width: 360px; margin: auto;">
17
+ <iframe
18
+ src="https://www.youtube.com/embed/{{ video_id }}?autoplay=1&mute=1&controls=1"
19
+ title="Latest Uploaded Short"
20
+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
21
+ allowfullscreen
22
+ ></iframe>
23
+ </div>
24
+ {% else %}
25
+ <p class="text-muted">No uploaded videos yet.</p>
26
+ {% endif %}
27
+
28
+ <!-- Server Info -->
29
+ <div class="card bg-secondary p-4 mx-auto" style="max-width: 600px;">
30
+ <p><strong>Status:</strong> ✅ Running</p>
31
+ <p><strong>Server Time:</strong> {{ time }}</p>
32
+ <form method="POST" action="/run-now">
33
+ <button type="submit" class="btn btn-warning mt-3">🚀 Run Now (Manual Trigger)</button>
34
+ </form>
35
+ </div>
36
+
37
+ <p class="mt-5 text-muted">Automation runs every 8 hours</p>
38
+ </div>
39
+
40
+ </body>
41
+ </html>