|
13 | 13 | <script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/pose-detection"></script> |
14 | 14 | <style> |
15 | 15 | body { |
16 | | - background: #1a1a1a; |
| 16 | + background: linear-gradient(to right, #232526, #414345); |
17 | 17 | color: #f0f0f0; |
18 | 18 | font-family: 'Roboto', sans-serif; |
19 | 19 | margin: 0; |
|
22 | 22 | align-items: center; |
23 | 23 | justify-content: center; |
24 | 24 | min-height: 100vh; |
| 25 | + text-align: center; |
25 | 26 | } |
26 | 27 | h1 { |
27 | 28 | margin-bottom: 0.5rem; |
|
45 | 46 | border-radius: 10px; |
46 | 47 | box-shadow: 0 4px 8px rgba(0,0,0,0.3); |
47 | 48 | } |
48 | | - #reset-button, #view-toggle { |
| 49 | + .control-button, #reset-button, #view-toggle { |
49 | 50 | font-size: 1rem; |
50 | | - padding: 0.6rem 1.2rem; |
| 51 | + padding: 0.7rem 1.5rem; |
51 | 52 | border: none; |
52 | | - border-radius: 5px; |
| 53 | + border-radius: 25px; |
53 | 54 | color: white; |
54 | 55 | cursor: pointer; |
55 | | - transition: background-color 0.3s, transform 0.2s; |
| 56 | + transition: all 0.3s ease; |
56 | 57 | text-transform: uppercase; |
57 | | - letter-spacing: 1px; |
| 58 | + letter-spacing: 1.5px; |
| 59 | + box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); |
58 | 60 | } |
59 | 61 |
|
60 | 62 | #reset-button { |
61 | | - background: #f44336; |
| 63 | + background-image: linear-gradient(to right, #f44336, #d32f2f); |
62 | 64 | } |
63 | 65 |
|
64 | 66 | #reset-button:hover { |
65 | | - background: #d32f2f; |
66 | | - transform: translateY(-2px); |
| 67 | + transform: translateY(-3px); |
| 68 | + box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); |
67 | 69 | } |
68 | 70 |
|
69 | 71 | #controls-container { |
70 | 72 | margin-top: 1.5rem; |
71 | 73 | } |
72 | 74 |
|
73 | 75 | #view-toggle { |
74 | | - background: #2196F3; |
| 76 | + background-image: linear-gradient(to right, #2196F3, #1976D2); |
75 | 77 | } |
76 | 78 |
|
77 | 79 | #view-toggle:hover { |
78 | | - background: #1976D2; |
79 | | - transform: translateY(-2px); |
| 80 | + transform: translateY(-3px); |
| 81 | + box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); |
80 | 82 | } |
81 | 83 | .retry-button { |
82 | 84 | font-size: 1rem; |
|
105 | 107 | margin: 1rem auto; |
106 | 108 | } |
107 | 109 | .control-button { |
108 | | - font-size: 1rem; |
109 | | - padding: 0.6rem 1.2rem; |
110 | | - border: none; |
111 | | - border-radius: 5px; |
112 | | - color: white; |
113 | | - cursor: pointer; |
114 | | - transition: background-color 0.3s, transform 0.2s; |
115 | | - text-transform: uppercase; |
116 | | - letter-spacing: 1px; |
117 | | - background: #2196F3; |
| 110 | + background-image: linear-gradient(to right, #2196F3, #1976D2); |
118 | 111 | } |
119 | 112 | .control-button:hover { |
120 | | - background: #1976D2; |
121 | | - transform: translateY(-2px); |
| 113 | + transform: translateY(-3px); |
| 114 | + box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); |
122 | 115 | } |
123 | 116 | .modal { |
124 | 117 | position: fixed; |
|
131 | 124 | background-color: rgba(0,0,0,0.6); |
132 | 125 | } |
133 | 126 | .modal-content { |
134 | | - background-color: #2c2c2c; |
| 127 | + background: #333; |
135 | 128 | margin: 15% auto; |
136 | | - padding: 20px; |
137 | | - border: 1px solid #888; |
| 129 | + padding: 25px; |
| 130 | + border: none; |
138 | 131 | width: 90%; |
139 | 132 | max-width: 400px; |
140 | | - border-radius: 10px; |
| 133 | + border-radius: 15px; |
141 | 134 | text-align: center; |
| 135 | + box-shadow: 0 10px 30px rgba(0,0,0,0.5); |
142 | 136 | } |
143 | 137 | .close-button { |
144 | 138 | color: #aaa; |
|
153 | 147 | cursor: pointer; |
154 | 148 | } |
155 | 149 |
|
| 150 | + #login-modal input { |
| 151 | + width: calc(100% - 20px); |
| 152 | + padding: 10px; |
| 153 | + margin-bottom: 10px; |
| 154 | + border-radius: 5px; |
| 155 | + border: 1px solid #555; |
| 156 | + background: #444; |
| 157 | + color: #f0f0f0; |
| 158 | + } |
| 159 | + |
| 160 | + #leaderboard-list li, #session-history-list li { |
| 161 | + background: #444; |
| 162 | + margin-bottom: 5px; |
| 163 | + padding: 10px; |
| 164 | + border-radius: 5px; |
| 165 | + list-style-position: inside; |
| 166 | + } |
| 167 | + |
156 | 168 | @media (max-width: 600px) { |
157 | 169 | h1 { |
158 | 170 | font-size: 2rem; |
@@ -253,8 +265,8 @@ <h2>Session History</h2> |
253 | 265 | try { |
254 | 266 | const stream = await navigator.mediaDevices.getUserMedia({ |
255 | 267 | video: { |
256 | | - width: { ideal: 640 }, |
257 | | - height: { ideal: 480 }, |
| 268 | + width: { ideal: 1280 }, |
| 269 | + height: { ideal: 720 }, |
258 | 270 | facingMode: 'user' |
259 | 271 | } |
260 | 272 | }); |
|
0 commit comments