SmartySmile commited on
Commit
30bfbfa
·
verified ·
1 Parent(s): d567abc

Update src/App.css

Browse files
Files changed (1) hide show
  1. src/App.css +28 -392
src/App.css CHANGED
@@ -1,424 +1,60 @@
1
  .App {
2
  text-align: center;
3
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
4
- background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); /* Tech blue for headsets */
5
  min-height: 100vh;
6
  display: flex;
7
  flex-direction: column;
8
- color: #333;
9
- }
10
-
11
- .App-header {
12
- background-color: rgba(40, 44, 52, 0.95);
13
- padding: 20px;
14
- color: white;
15
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
16
- }
17
-
18
- .App-header h1 {
19
- margin: 0 0 5px 0;
20
- font-size: 2.5em;
21
- text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
22
- }
23
-
24
- .App-header h2 {
25
- margin: 0 0 10px 0;
26
- font-size: 1.6em;
27
- opacity: 0.9;
28
- }
29
-
30
- .App-header p {
31
- margin: 0;
32
- font-size: 1.1em;
33
- opacity: 0.8;
34
- }
35
-
36
- .App-main {
37
- flex: 1;
38
- padding: 30px 20px;
39
- max-width: 1200px;
40
- margin: 0 auto;
41
- }
42
-
43
- .scan-info {
44
- margin-bottom: 30px;
45
  color: white;
46
- font-size: 1.1em;
47
- text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
48
- background: rgba(255, 255, 255, 0.1);
49
- padding: 15px;
50
- border-radius: 10px;
51
- backdrop-filter: blur(5px);
52
  }
53
 
54
- .senses-grid {
55
- display: grid;
56
- grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
57
- gap: 25px;
58
- margin-bottom: 40px;
59
- }
60
-
61
- .sense-card {
62
- background: rgba(255, 255, 255, 0.95);
63
- padding: 25px;
64
- border-radius: 15px;
65
- box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
66
- transition: transform 0.3s ease, box-shadow 0.3s ease;
67
- backdrop-filter: blur(10px);
68
- }
69
-
70
- .sense-card:hover {
71
- transform: translateY(-5px);
72
- box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
73
- }
74
-
75
- .sense-icon {
76
- font-size: 3.5em;
77
- margin-bottom: 15px;
78
- display: block;
79
- }
80
-
81
- .sense-card h3 {
82
- color: #282c34;
83
- margin: 0 0 10px 0;
84
- font-size: 1.4em;
85
- }
86
-
87
- .sense-card p {
88
- color: #666;
89
- margin: 0 0 20px 0;
90
- line-height: 1.5;
91
- }
92
-
93
- .sense-button {
94
- background: linear-gradient(45deg, #007bff, #0056b3);
95
- color: white;
96
- border: none;
97
- padding: 15px 25px;
98
- border-radius: 10px;
99
- cursor: pointer;
100
- font-size: 16px;
101
- font-weight: bold;
102
- width: 100%;
103
- transition: all 0.3s ease;
104
- box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
105
- position: relative;
106
- overflow: hidden;
107
- }
108
-
109
- .sense-button::before {
110
- content: '';
111
- position: absolute;
112
- top: 0;
113
- left: -100%;
114
- width: 100%;
115
- height: 100%;
116
- background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
117
- transition: left 0.5s;
118
- }
119
-
120
- .sense-button:hover:not(:disabled)::before {
121
- left: 100%;
122
- }
123
-
124
- .sense-button:hover:not(:disabled) {
125
- transform: translateY(-2px);
126
- box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
127
- }
128
-
129
- .sense-button:disabled {
130
- background: #6c757d;
131
- cursor: not-allowed;
132
- box-shadow: none;
133
- transform: none;
134
- }
135
-
136
- .button-icon {
137
- margin-right: 8px;
138
- font-size: 1.1em;
139
- }
140
-
141
- .scanning-status {
142
  display: flex;
 
143
  align-items: center;
144
  justify-content: center;
145
  gap: 20px;
146
- margin: 30px 0;
147
- padding: 20px;
148
- background: rgba(255, 255, 255, 0.9);
149
- border-radius: 10px;
150
- box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
151
- }
152
-
153
- .loading-spinner {
154
- width: 40px;
155
- height: 40px;
156
- border: 4px solid #f3f3f3;
157
- border-top: 4px solid #007bff;
158
- border-radius: 50%;
159
- animation: spin 1s linear infinite;
160
  }
161
 
162
- @keyframes spin {
163
- 0% { transform: rotate(0deg); }
164
- 100% { transform: rotate(360deg); }
165
- }
166
-
167
- .loading-text {
168
- text-align: left;
169
- }
170
-
171
- .loading-text p {
172
- margin: 5px 0;
173
- color: #282c34;
174
- font-weight: 500;
175
- }
176
-
177
- .loading-text small {
178
- color: #666;
179
- font-style: italic;
180
- }
181
-
182
- .error-container {
183
- margin: 20px 0;
184
- text-align: center;
185
- }
186
-
187
- .error {
188
- background-color: #f8d7da;
189
- color: #721c24;
190
- padding: 15px;
191
- border-radius: 10px;
192
- border: 1px solid #f5c6cb;
193
- margin-bottom: 15px;
194
- font-size: 1em;
195
- line-height: 1.5;
196
- }
197
-
198
- .retry-button {
199
- background-color: #dc3545;
200
- color: white;
201
  border: none;
202
  padding: 10px 20px;
203
- border-radius: 5px;
204
  cursor: pointer;
205
- font-size: 14px;
206
- transition: background-color 0.3s ease;
207
- }
208
-
209
- .retry-button:hover {
210
- background-color: #c82333;
211
- }
212
-
213
- .results-container {
214
- margin: 30px auto;
215
- max-width: 600px;
216
- }
217
-
218
- .results {
219
- background: rgba(255, 255, 255, 0.95);
220
- padding: 30px;
221
- border-radius: 15px;
222
- box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
223
- backdrop-filter: blur(10px);
224
- }
225
-
226
- .results h3 {
227
- color: #282c34;
228
- margin: 0 0 20px 0;
229
- font-size: 1.8em;
230
- display: flex;
231
- align-items: center;
232
- justify-content: center;
233
- gap: 10px;
234
  }
235
 
236
- .result-header {
237
- display: flex;
238
- justify-content: space-between;
239
- align-items: center;
240
- margin-bottom: 20px;
241
- padding-bottom: 10px;
242
- border-bottom: 2px solid #eee;
243
  }
244
 
245
- .status-badge {
246
- background: #28a745;
247
- color: white;
248
- padding: 5px 12px;
249
- border-radius: 20px;
250
- font-size: 0.9em;
251
  font-weight: bold;
252
  }
253
 
254
- .result-details {
255
- margin-bottom: 25px;
256
- }
257
-
258
- .detail-row {
259
  display: flex;
260
- justify-content: space-between;
261
- padding: 8px 0;
262
- border-bottom: 1px solid #eee;
263
- }
264
-
265
- .label {
266
- font-weight: bold;
267
- color: #666;
268
- }
269
-
270
- .value {
271
- color: #282c34;
272
- font-weight: 500;
273
  }
274
 
275
- .sensor-data {
276
- background: #f8f9fa;
277
  padding: 20px;
278
  border-radius: 10px;
279
- margin-bottom: 25px;
280
- text-align: left;
281
- }
282
-
283
- .sensor-data h4 {
284
- color: #282c34;
285
- margin: 0 0 15px 0;
286
- text-align: center;
287
- }
288
-
289
- .sensor-reading {
290
- display: flex;
291
- justify-content: space-between;
292
- padding: 8px 0;
293
- border-bottom: 1px solid #dee2e6;
294
- }
295
-
296
- .sensor-label {
297
- font-weight: bold;
298
- color: #495057;
299
- min-width: 150px;
300
- }
301
-
302
- .sensor-value {
303
- color: #007bff;
304
- font-weight: 500;
305
- }
306
-
307
- .result-actions {
308
- display: flex;
309
- gap: 10px;
310
- justify-content: center;
311
- }
312
-
313
- .clear-button,
314
- .rescan-button {
315
- padding: 10px 20px;
316
- border: none;
317
- border-radius: 5px;
318
- cursor: pointer;
319
- font-size: 14px;
320
- transition: all 0.3s ease;
321
- font-weight: bold;
322
- }
323
-
324
- .clear-button {
325
- background-color: #6c757d;
326
- color: white;
327
- }
328
-
329
- .clear-button:hover {
330
- background-color: #5a6268;
331
- }
332
-
333
- .rescan-button {
334
- background-color: #007bff;
335
- color: white;
336
- }
337
-
338
- .rescan-button:hover {
339
- background-color: #0056b3;
340
- }
341
-
342
- .App-footer {
343
- background-color: rgba(40, 44, 52, 0.95);
344
- padding: 20px;
345
- color: white;
346
- text-align: center;
347
- box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
348
- }
349
-
350
- .footer-content {
351
- max-width: 800px;
352
- margin: 0 auto;
353
- }
354
-
355
- .footer-content p {
356
- margin: 5px 0;
357
- opacity: 0.9;
358
- }
359
-
360
- .version {
361
- font-size: 0.9em;
362
- opacity: 0.7;
363
- margin-top: 10px;
364
- }
365
-
366
- /* Responsive Design */
367
- @media (max-width: 768px) {
368
- .senses-grid {
369
- grid-template-columns: 1fr;
370
- gap: 20px;
371
- }
372
-
373
- .App-header h1 {
374
- font-size: 2em;
375
- }
376
-
377
- .App-header h2 {
378
- font-size: 1.3em;
379
- }
380
-
381
- .scanning-status {
382
- flex-direction: column;
383
- text-align: center;
384
- gap: 15px;
385
- }
386
-
387
- .result-actions {
388
- flex-direction: column;
389
- }
390
-
391
- .detail-row,
392
- .sensor-reading {
393
- flex-direction: column;
394
- gap: 5px;
395
- text-align: left;
396
- }
397
-
398
- .sensor-label {
399
- min-width: auto;
400
- }
401
-
402
- .sense-icon {
403
- font-size: 2.5em;
404
- }
405
-
406
- .sense-button {
407
- padding: 12px 20px;
408
- font-size: 14px;
409
- }
410
  }
411
 
412
- @media (max-width: 480px) {
413
- .App-main {
414
- padding: 20px 10px;
415
- }
416
-
417
- .results {
418
- padding: 20px;
419
- }
420
-
421
- .sensor-data {
422
- padding: 15px;
423
- }
424
  }
 
1
  .App {
2
  text-align: center;
3
+ background-color: #282c34;
 
4
  min-height: 100vh;
5
  display: flex;
6
  flex-direction: column;
7
+ align-items: center;
8
+ justify-content: center;
9
+ font-size: calc(10px + 2vmin);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  color: white;
 
 
 
 
 
 
11
  }
12
 
13
+ .App-header {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  display: flex;
15
+ flex-direction: column;
16
  align-items: center;
17
  justify-content: center;
18
  gap: 20px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  }
20
 
21
+ button {
22
+ background-color: #61dafb;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  border: none;
24
  padding: 10px 20px;
25
+ font-size: 16px;
26
  cursor: pointer;
27
+ border-radius: 5px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  }
29
 
30
+ button:disabled {
31
+ background-color: #ccc;
32
+ cursor: not-allowed;
 
 
 
 
33
  }
34
 
35
+ .error {
36
+ color: #ff6b6b;
 
 
 
 
37
  font-weight: bold;
38
  }
39
 
40
+ .scans {
 
 
 
 
41
  display: flex;
42
+ flex-direction: column;
43
+ gap: 20px;
44
+ margin-top: 30px;
45
+ width: 80%;
46
+ max-width: 600px;
 
 
 
 
 
 
 
 
47
  }
48
 
49
+ .scan-card {
50
+ background-color: #3a3f4a;
51
  padding: 20px;
52
  border-radius: 10px;
53
+ box-shadow: 0 2px 10px rgba(0,0,0,0.3);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  }
55
 
56
+ footer {
57
+ margin-top: 40px;
58
+ font-size: 12px;
59
+ color: #ccc;
 
 
 
 
 
 
 
 
60
  }