Spaces:
Running
Running
Update index.html
Browse files- index.html +1 -217
index.html
CHANGED
@@ -5,223 +5,7 @@
|
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Voice Assistant</title>
|
7 |
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
|
8 |
-
<
|
9 |
-
:root {
|
10 |
-
--primary-color: #4a90e2;
|
11 |
-
--secondary-color: #f39c12;
|
12 |
-
--accent-color: #38cb96;
|
13 |
-
--background-color: #f0f4f8;
|
14 |
-
--card-bg-color: #ffffff;
|
15 |
-
--text-color: #333333;
|
16 |
-
--border-color: #e0e0e0;
|
17 |
-
--shadow-color: rgba(0, 0, 0, 0.1);
|
18 |
-
--hover-shadow-color: rgba(74, 144, 226, 0.3);
|
19 |
-
--hover-bg-color: #1e9b6e;
|
20 |
-
--active-bg-color: #1a855d;
|
21 |
-
--tooltip-bg-color: #333;
|
22 |
-
--tooltip-text-color: #fff;
|
23 |
-
}
|
24 |
-
|
25 |
-
body {
|
26 |
-
font-family: 'Roboto', sans-serif;
|
27 |
-
background: linear-gradient(135deg, var(--background-color) 0%, #dfe9f3 100%);
|
28 |
-
color: var(--text-color);
|
29 |
-
margin: 0;
|
30 |
-
padding: 0;
|
31 |
-
display: flex;
|
32 |
-
justify-content: center;
|
33 |
-
align-items: center;
|
34 |
-
min-height: 100vh;
|
35 |
-
}
|
36 |
-
|
37 |
-
.container {
|
38 |
-
width: 90%;
|
39 |
-
max-width: 800px;
|
40 |
-
}
|
41 |
-
|
42 |
-
.voice-assistant-card {
|
43 |
-
background: linear-gradient(135deg, var(--card-bg-color) 0%, #f9f9f9 100%);
|
44 |
-
border-radius: 20px;
|
45 |
-
box-shadow: 0 10px 30px var(--shadow-color);
|
46 |
-
padding: 40px;
|
47 |
-
text-align: center;
|
48 |
-
position: relative;
|
49 |
-
overflow: hidden;
|
50 |
-
}
|
51 |
-
|
52 |
-
.voice-assistant-card::before {
|
53 |
-
content: '';
|
54 |
-
position: absolute;
|
55 |
-
top: 0;
|
56 |
-
left: 0;
|
57 |
-
width: 100%;
|
58 |
-
height: 100%;
|
59 |
-
background: rgba(255, 255, 255, 0.1);
|
60 |
-
border-radius: 20px;
|
61 |
-
z-index: -1;
|
62 |
-
filter: blur(10px);
|
63 |
-
}
|
64 |
-
|
65 |
-
.title {
|
66 |
-
font-size: 2.5rem;
|
67 |
-
font-weight: 700;
|
68 |
-
margin-bottom: 20px;
|
69 |
-
color: var(--primary-color);
|
70 |
-
position: relative;
|
71 |
-
z-index: 1;
|
72 |
-
}
|
73 |
-
|
74 |
-
#responseTime {
|
75 |
-
font-size: 0.9rem;
|
76 |
-
color: #777;
|
77 |
-
margin-bottom: 20px;
|
78 |
-
position: relative;
|
79 |
-
z-index: 1;
|
80 |
-
}
|
81 |
-
|
82 |
-
.indicator-wrapper {
|
83 |
-
display: flex;
|
84 |
-
justify-content: space-around;
|
85 |
-
margin-bottom: 30px;
|
86 |
-
position: relative;
|
87 |
-
z-index: 1;
|
88 |
-
}
|
89 |
-
|
90 |
-
.indicator {
|
91 |
-
display: flex;
|
92 |
-
align-items: center;
|
93 |
-
padding: 10px 20px;
|
94 |
-
border-radius: 50px;
|
95 |
-
font-size: 1rem;
|
96 |
-
color: #fff;
|
97 |
-
transition: all 0.3s ease;
|
98 |
-
position: relative;
|
99 |
-
z-index: 1;
|
100 |
-
}
|
101 |
-
|
102 |
-
.indicator svg {
|
103 |
-
margin-right: 8px;
|
104 |
-
}
|
105 |
-
|
106 |
-
#userIndicator {
|
107 |
-
background: linear-gradient(135deg, var(--primary-color) 0%, #6fb1f2 100%);
|
108 |
-
}
|
109 |
-
|
110 |
-
#aiIndicator {
|
111 |
-
background: linear-gradient(135deg, var(--secondary-color) 0%, #ffaf5c 100%);
|
112 |
-
}
|
113 |
-
|
114 |
-
#startStopButton {
|
115 |
-
background: linear-gradient(135deg, var(--accent-color) 0%, #28b475 100%);
|
116 |
-
color: #fff;
|
117 |
-
border: none;
|
118 |
-
padding: 15px 30px;
|
119 |
-
font-size: 1.2rem;
|
120 |
-
border-radius: 50px;
|
121 |
-
cursor: pointer;
|
122 |
-
transition: all 0.3s ease;
|
123 |
-
display: flex;
|
124 |
-
align-items: center;
|
125 |
-
justify-content: center;
|
126 |
-
margin: 0 auto 30px;
|
127 |
-
position: relative;
|
128 |
-
z-index: 1;
|
129 |
-
}
|
130 |
-
|
131 |
-
#startStopButton:hover {
|
132 |
-
background: linear-gradient(135deg, var(--hover-bg-color) 0%, #28b475 100%);
|
133 |
-
transform: translateY(-2px);
|
134 |
-
box-shadow: 0 5px 15px var(--hover-shadow-color);
|
135 |
-
}
|
136 |
-
|
137 |
-
#startStopButton:active {
|
138 |
-
background: linear-gradient(135deg, var(--active-bg-color) 0%, #28b475 100%);
|
139 |
-
transform: translateY(0);
|
140 |
-
box-shadow: 0 2px 10px var(--shadow-color);
|
141 |
-
}
|
142 |
-
|
143 |
-
#startStopButton svg {
|
144 |
-
margin-right: 10px;
|
145 |
-
}
|
146 |
-
|
147 |
-
.settings {
|
148 |
-
display: grid;
|
149 |
-
grid-template-columns: 1fr 1fr 1.5fr;
|
150 |
-
gap: 20px;
|
151 |
-
margin-bottom: 30px;
|
152 |
-
position: relative;
|
153 |
-
z-index: 1;
|
154 |
-
}
|
155 |
-
|
156 |
-
.setting {
|
157 |
-
text-align: left;
|
158 |
-
position: relative;
|
159 |
-
/* Added for tooltip positioning */
|
160 |
-
}
|
161 |
-
|
162 |
-
.setting label {
|
163 |
-
display: block;
|
164 |
-
margin-bottom: 5px;
|
165 |
-
font-weight: 700;
|
166 |
-
color: var(--text-color);
|
167 |
-
}
|
168 |
-
|
169 |
-
select,
|
170 |
-
input[type="password"] {
|
171 |
-
width: 100%;
|
172 |
-
padding: 10px;
|
173 |
-
border: 1px solid var(--border-color);
|
174 |
-
border-radius: 5px;
|
175 |
-
font-size: 1rem;
|
176 |
-
background-color: #fff;
|
177 |
-
color: var(--text-color);
|
178 |
-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
179 |
-
transition: all 0.3s ease;
|
180 |
-
}
|
181 |
-
|
182 |
-
select:hover,
|
183 |
-
input[type="password"]:hover {
|
184 |
-
border-color: var(--primary-color);
|
185 |
-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
186 |
-
}
|
187 |
-
|
188 |
-
.tooltip {
|
189 |
-
display: none;
|
190 |
-
position: absolute;
|
191 |
-
background-color: var(--tooltip-bg-color);
|
192 |
-
color: var(--tooltip-text-color);
|
193 |
-
padding: 5px;
|
194 |
-
border-radius: 5px;
|
195 |
-
font-size: 0.8rem;
|
196 |
-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
197 |
-
}
|
198 |
-
|
199 |
-
.setting:hover .tooltip {
|
200 |
-
display: block;
|
201 |
-
/* Show tooltip on hover */
|
202 |
-
}
|
203 |
-
|
204 |
-
#transcript {
|
205 |
-
background: linear-gradient(135deg, #f9f9f9 0%, #e6e6e6 100%);
|
206 |
-
border-radius: 10px;
|
207 |
-
padding: 20px;
|
208 |
-
margin-top: 30px;
|
209 |
-
text-align: left;
|
210 |
-
font-family: 'Courier New', monospace;
|
211 |
-
white-space: pre-wrap;
|
212 |
-
max-height: 200px;
|
213 |
-
overflow-y: auto;
|
214 |
-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
215 |
-
position: relative;
|
216 |
-
z-index: 1;
|
217 |
-
}
|
218 |
-
|
219 |
-
@media (max-width: 600px) {
|
220 |
-
.settings {
|
221 |
-
grid-template-columns: 1fr;
|
222 |
-
}
|
223 |
-
}
|
224 |
-
</style>
|
225 |
</head>
|
226 |
<body>
|
227 |
<div class="container">
|
|
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Voice Assistant</title>
|
7 |
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
|
8 |
+
<link href="styles.css" rel="stylesheet">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
</head>
|
10 |
<body>
|
11 |
<div class="container">
|