File size: 6,788 Bytes
748e637 |
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 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" integrity="sha512-Fo3rlrZj/k7ujTnHg4CGR2D7kSs0v4LLanw2qksYuRlEzO+tcaEPQogQ0KaoGN26/zrn20ImR1DfuLWnOo7aBA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
/* CSS Styles */
body {
font-family: 'Arial', sans-serif;
background-color: #f0f0f0;
color: #333;
line-height: 1.6;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
min-height: 100vh;
}
form {
max-width: 900px;
margin: .9rem auto;
padding: 1rem;
background: #ffffff;
border-radius: 8px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
}
.form-wrapper {
display: flex;
flex-wrap: wrap;
gap: 20px;
}
.form-group {
flex: 1;
min-width: calc(50% - 20px);
box-sizing: border-box;
}
.form-group h3 {
margin-bottom: 15px;
color: #4CAF50;
font-size: 18px;
border-bottom: 2px solid #4CAF50;
padding-bottom: 5px;
}
input[type=file],
input[type=number],
input[type=text],
select {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border-radius: 4px;
border: 1px solid #ddd;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
font-size: 13px;
box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
}
input[type=submit] {
width: 100%;
background-color: #4CAF50;
color: white;
padding: 12px 18px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 15px;
margin-top: 20px;
transition: background-color 0.3s ease;
box-sizing: border-box;
}
input[type=submit]:hover {
background-color: #45a049;
}
label {
margin-top: 10px;
display: block;
font-weight: bold;
font-size: 13px;
}
.footer {
width: 100%;
background-color: #f0f0f0;
text-align: center;
}
.footer a {
padding: 0.5rem;
text-decoration: none;
}
.fa-github:hover {
transform: scale(1.2);
}
.fa-github {
color: #000000;
}
.fa-linkedin:hover {
transform: scale(1.2);
}
.fa-linkedin {
color: #0077B5;
}
/* Additional Responsiveness */
@media (max-width: 992px) {
form {
max-width: 90%;
margin-left: 15%;
margin-right: 15%;
padding: 15px;
}
.form-wrapper {
flex-direction: column;
}
.form-group {
min-width: 100%;
}
}
@media (max-width: 768px) {
form {
max-width: 90%;
margin-left: 10%;
margin-right: 10%;
padding: 15px;
}
}
@media (max-width: 480px) {
form {
max-width: 90%;
margin-left: 5%;
margin-right: 5%;
padding: 10px;
}
}
</style>
</head>
<body>
<form action="/process_video/" enctype="multipart/form-data" method="post">
<div class="form-wrapper">
<div class="form-group">
<h3>Inputs & Task Selection</h3>
<label for="video_file">Video File</label>
<input type="file" id="video_file" name="video_file"><br>
<label for="srt_file">Subtitles File</label>
<input type="file" id="srt_file" name="srt_file"><br>
<label for="task">Task</label>
<select id="task" name="task">
<option value="transcribe">Transcribe</option>
<option value="translate">Translate</option>
</select>
</div>
<div class="form-group">
<h3>Visual Parameters</h3>
<label for="max_words_per_line">Max words per line</label>
<input type="number" id="max_words_per_line" name="max_words_per_line" value="6"><br>
<label for="fontsize">Font size</label>
<input type="number" id="fontsize" name="fontsize" value="42"><br>
<label for="font">Font:</label>
<input type="text" id="font" name="font" value="FuturaPTHeavy"><br>
<label for="bg_color">Background color</label>
<input type="text" id="bg_color" name="bg_color" value="#00FFFF00"><br>
<label for="text_color">Text color</label>
<input type="text" id="text_color" name="text_color" value="white"><br>
<label for="caption_mode">Caption mode</label>
<select id="caption_mode" name="caption_mode">
<option value="desktop">Desktop</option>
<option value="mobile">Mobile</option>
</select>
</div>
</div>
<input type="submit" value="Submit">
</form>
<!-- Footer -->
<div class="footer">
<p>Created by:</p>
<a href="https://github.com/marquesafonso" class="github"><i class="fab fa-github fa-3x"></i></a>
<a href="https://www.linkedin.com/in/marquesafonso" class="linkedin"><i class="fab fa-linkedin fa-3x"></i></a>
</div>
</body>
</html>
|