marquesafonso commited on
Commit
8530b58
·
1 Parent(s): fb74b34

improve submit form styling

Browse files
Files changed (2) hide show
  1. .dockerignore +2 -0
  2. static/submit_video.html +60 -1
.dockerignore CHANGED
@@ -1,5 +1,7 @@
1
  .gitignore
 
2
  __pycache__/
 
3
  data/
4
  temp/
5
  cli.py
 
1
  .gitignore
2
+ .devcontainer
3
  __pycache__/
4
+ *.git
5
  data/
6
  temp/
7
  cli.py
static/submit_video.html CHANGED
@@ -1,4 +1,63 @@
 
1
  <html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  <body>
3
  <form action="/process_video/" enctype="multipart/form-data" method="post">
4
  Video File: <input type="file" name="video_file"><br>
@@ -11,4 +70,4 @@
11
  <input type="submit">
12
  </form>
13
  </body>
14
- </html>
 
1
+ <!DOCTYPE html>
2
  <html>
3
+ <head>
4
+ <style>
5
+ /* CSS Styles */
6
+ body {
7
+ font-family: 'Arial', sans-serif;
8
+ background-color: #f0f0f0;
9
+ color: #333;
10
+ line-height: 1.6;
11
+ }
12
+
13
+ form {
14
+ max-width: 600px;
15
+ margin: 20px auto;
16
+ padding: 20px;
17
+ background: #ffffff;
18
+ border-radius: 8px;
19
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
20
+ }
21
+
22
+ input[type=file],
23
+ input[type=number],
24
+ input[type=text] {
25
+ width: 95%;
26
+ padding: 10px;
27
+ margin-bottom: 10px;
28
+ border-radius: 4px;
29
+ border: 1px solid #ddd;
30
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
31
+ }
32
+
33
+ input[type=submit] {
34
+ width: 100%;
35
+ background-color: #4CAF50;
36
+ color: white;
37
+ padding: 15px 20px;
38
+ border: none;
39
+ border-radius: 4px;
40
+ cursor: pointer;
41
+ font-size: 18px;
42
+ }
43
+
44
+ input[type=submit]:hover {
45
+ background-color: #45a049;
46
+ }
47
+
48
+ label {
49
+ margin-top: 10px;
50
+ display: block;
51
+ }
52
+
53
+ /* Additional Responsiveness */
54
+ @media (max-width: 768px) {
55
+ form {
56
+ width: 90%;
57
+ }
58
+ }
59
+ </style>
60
+ </head>
61
  <body>
62
  <form action="/process_video/" enctype="multipart/form-data" method="post">
63
  Video File: <input type="file" name="video_file"><br>
 
70
  <input type="submit">
71
  </form>
72
  </body>
73
+ </html>