Spaces:
Runtime error
Runtime error
File size: 4,502 Bytes
43317b5 |
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 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Set Custom Labels</title>
<style>
body {
font-family: 'Arial', sans-serif;
background-color: #f4f4f9;
color: #333;
text-align: center;
padding: 20px;
}
h1 {
color: #4A90E2;
margin-bottom: 20px;
}
.container {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
margin: auto;
width: 500px;
display: flex;
flex-direction: column;
gap: 2px;
}
.gesture-container {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.input-img-container {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
}
.input-img-container img {
width: 100px;
height: auto;
border-radius: 8px;
}
label {
text-align: left;
font-size: 16px;
font-weight: bold;
flex: 1;
white-space: nowrap;
}
input[type="text"] {
padding: 8px;
border: 2px solid #ccc;
border-radius: 4px;
width: calc(100% - 120px); /* Subtract image width and padding */
margin-right: 10px;
}
button {
background-color: #4CAF50;
color: white;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s;
}
button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<h1>Set Custom Labels for Gestures</h1>
<form method="POST" action="{{ url_for('set_labels') }}">
<div class="container">
<div class="gesture-container">
<label for="label1">Label for Gesture 1 (Fist):</label>
<div class="input-img-container">
<input type="text" id="label1" name="label1" placeholder="Enter label for Gesture 1" required>
<img src="{{ url_for('static', filename='images/fist.png') }}" alt="Fist Gesture">
</div>
</div>
<div class="gesture-container">
<label for="label2">Label for Gesture 2 (OK):</label>
<div class="input-img-container">
<input type="text" id="label2" name="label2" placeholder="Enter label for Gesture 2" required>
<img src="{{ url_for('static', filename='images/ok.png') }}" alt="OK Gesture">
</div>
</div>
<div class="gesture-container">
<label for="label3">Label for Gesture 3 (Peace):</label>
<div class="input-img-container">
<input type="text" id="label3" name="label3" placeholder="Enter label for Gesture 3" required>
<img src="{{ url_for('static', filename='images/peace.png') }}" alt="Peace Gesture">
</div>
</div>
<div class="gesture-container">
<label for="label4">Label for Gesture 4 (Stop):</label>
<div class="input-img-container">
<input type="text" id="label4" name="label4" placeholder="Enter label for Gesture 4" required>
<img src="{{ url_for('static', filename='images/stop.png') }}" alt="Stop Gesture">
</div>
</div>
<div class="gesture-container">
<label for="label5">Label for Gesture 5 (Two Up):</label>
<div class="input-img-container">
<input type="text" id="label5" name="label5" placeholder="Enter label for Gesture 5" required>
<img src="{{ url_for('static', filename='images/two_up.png') }}" alt="Two Up Gesture">
</div>
</div>
<button type="submit">Save Labels</button>
</div>
</form>
</body>
</html>
|