Skip to content

Commit 439f37f

Browse files
authored
Update index.html
1 parent 30f7c6e commit 439f37f

File tree

1 file changed

+42
-30
lines changed

1 file changed

+42
-30
lines changed

index.html

Lines changed: 42 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/pose-detection"></script>
1414
<style>
1515
body {
16-
background: #1a1a1a;
16+
background: linear-gradient(to right, #232526, #414345);
1717
color: #f0f0f0;
1818
font-family: 'Roboto', sans-serif;
1919
margin: 0;
@@ -22,6 +22,7 @@
2222
align-items: center;
2323
justify-content: center;
2424
min-height: 100vh;
25+
text-align: center;
2526
}
2627
h1 {
2728
margin-bottom: 0.5rem;
@@ -45,38 +46,39 @@
4546
border-radius: 10px;
4647
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
4748
}
48-
#reset-button, #view-toggle {
49+
.control-button, #reset-button, #view-toggle {
4950
font-size: 1rem;
50-
padding: 0.6rem 1.2rem;
51+
padding: 0.7rem 1.5rem;
5152
border: none;
52-
border-radius: 5px;
53+
border-radius: 25px;
5354
color: white;
5455
cursor: pointer;
55-
transition: background-color 0.3s, transform 0.2s;
56+
transition: all 0.3s ease;
5657
text-transform: uppercase;
57-
letter-spacing: 1px;
58+
letter-spacing: 1.5px;
59+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
5860
}
5961

6062
#reset-button {
61-
background: #f44336;
63+
background-image: linear-gradient(to right, #f44336, #d32f2f);
6264
}
6365

6466
#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);
6769
}
6870

6971
#controls-container {
7072
margin-top: 1.5rem;
7173
}
7274

7375
#view-toggle {
74-
background: #2196F3;
76+
background-image: linear-gradient(to right, #2196F3, #1976D2);
7577
}
7678

7779
#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);
8082
}
8183
.retry-button {
8284
font-size: 1rem;
@@ -105,20 +107,11 @@
105107
margin: 1rem auto;
106108
}
107109
.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);
118111
}
119112
.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);
122115
}
123116
.modal {
124117
position: fixed;
@@ -131,14 +124,15 @@
131124
background-color: rgba(0,0,0,0.6);
132125
}
133126
.modal-content {
134-
background-color: #2c2c2c;
127+
background: #333;
135128
margin: 15% auto;
136-
padding: 20px;
137-
border: 1px solid #888;
129+
padding: 25px;
130+
border: none;
138131
width: 90%;
139132
max-width: 400px;
140-
border-radius: 10px;
133+
border-radius: 15px;
141134
text-align: center;
135+
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
142136
}
143137
.close-button {
144138
color: #aaa;
@@ -153,6 +147,24 @@
153147
cursor: pointer;
154148
}
155149

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+
156168
@media (max-width: 600px) {
157169
h1 {
158170
font-size: 2rem;
@@ -253,8 +265,8 @@ <h2>Session History</h2>
253265
try {
254266
const stream = await navigator.mediaDevices.getUserMedia({
255267
video: {
256-
width: { ideal: 640 },
257-
height: { ideal: 480 },
268+
width: { ideal: 1280 },
269+
height: { ideal: 720 },
258270
facingMode: 'user'
259271
}
260272
});

0 commit comments

Comments
 (0)