File size: 2,306 Bytes
8530b58
3fc2a44
8530b58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3fc2a44
 
 
 
 
 
 
 
 
 
 
 
8530b58
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html>
    <head>
        <style>
            /* CSS Styles */
            body {
                font-family: 'Arial', sans-serif;
                background-color: #f0f0f0;
                color: #333;
                line-height: 1.6;
            }

            form {
                max-width: 600px;
                margin: 20px auto;
                padding: 20px;
                background: #ffffff;
                border-radius: 8px;
                box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            }

            input[type=file],
            input[type=number],
            input[type=text] {
                width: 95%;
                padding: 10px;
                margin-bottom: 10px;
                border-radius: 4px;
                border: 1px solid #ddd;
                box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
            }

            input[type=submit] {
                width: 100%;
                background-color: #4CAF50;
                color: white;
                padding: 15px 20px;
                border: none;
                border-radius: 4px;
                cursor: pointer;
                font-size: 18px;
            }

            input[type=submit]:hover {
                background-color: #45a049;
            }

            label {
                margin-top: 10px;
                display: block;
            }

            /* Additional Responsiveness */
            @media (max-width: 768px) {
                form {
                    width: 90%;
                }
            }
        </style>
    </head>
    <body>
        <form action="/process_video/" enctype="multipart/form-data" method="post">
            Video File: <input type="file" name="video_file"><br>
            Subtitles File: <input type="file" name="srt_file"><br>
            Max words per line: <input type="number" name="max_words_per_line" value="8"><br>
            Font size: <input type="number" name="fontsize" value="36"><br>
            Font: <input type="text" name="font" value="FuturaPTHeavy"><br>
            Background color: <input type="text" name="bg_color" value="#070a13b3"><br>
            Text color: <input type="text" name="text_color" value="white"><br>
            <input type="submit">
        </form>
    </body>
</html>