SmartySmile commited on
Commit
983e818
·
verified ·
1 Parent(s): 315b3a6

Update src/App.css

Browse files
Files changed (1) hide show
  1. src/App.css +329 -1
src/App.css CHANGED
@@ -18,6 +18,7 @@
18
  .App-header h1 {
19
  margin: 0 0 5px 0;
20
  font-size: 2.5em;
 
21
  }
22
 
23
  .App-header h2 {
@@ -47,6 +48,7 @@
47
  background: rgba(255, 255, 255, 0.1);
48
  padding: 15px;
49
  border-radius: 10px;
 
50
  }
51
 
52
  .senses-grid {
@@ -93,4 +95,330 @@
93
  color: white;
94
  border: none;
95
  padding: 15px 25px;
96
- border-radius:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 {
 
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 {
 
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
+ }