@jjlmoya/utils-drones 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/SecurityWarning.astro +140 -0
- package/src/tool/antenna-length-calculator/component.astro +70 -13
- package/src/tool/drone-flight-time/component.astro +320 -319
- package/src/tool/drone-flight-time/components/FlightDashboard.astro +6 -0
- package/src/tool/gps-coordinates-converter/component.astro +473 -549
- package/src/tool/gps-coordinates-converter/components/GpsHistory.astro +6 -1
|
@@ -60,8 +60,8 @@ import AutonomyChart from "./components/AutonomyChart.astro";
|
|
|
60
60
|
datasets: [{
|
|
61
61
|
label,
|
|
62
62
|
data: [],
|
|
63
|
-
borderColor: "#
|
|
64
|
-
backgroundColor: "rgba(
|
|
63
|
+
borderColor: "#f59e0b",
|
|
64
|
+
backgroundColor: "rgba(245, 158, 11, 0.1)",
|
|
65
65
|
borderWidth: 3,
|
|
66
66
|
fill: true,
|
|
67
67
|
tension: 0.4,
|
|
@@ -138,7 +138,7 @@ import AutonomyChart from "./components/AutonomyChart.astro";
|
|
|
138
138
|
const limit = 20;
|
|
139
139
|
const progress = Math.min(safeMin / limit, 1);
|
|
140
140
|
const offset = 283 - (progress * 283);
|
|
141
|
-
displays.circle.style.strokeDashoffset = offset.toString();
|
|
141
|
+
(displays.circle as HTMLElement).style.strokeDashoffset = offset.toString();
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
|
|
@@ -185,373 +185,374 @@ import AutonomyChart from "./components/AutonomyChart.astro";
|
|
|
185
185
|
|
|
186
186
|
<style>
|
|
187
187
|
.flight-calculator-ui {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
188
|
+
--dft-accent: #f59e0b;
|
|
189
|
+
--dft-accent-rgb: 245, 158, 11;
|
|
190
|
+
--dft-bg: #fff;
|
|
191
|
+
--dft-bg-muted: #f8fafc;
|
|
192
|
+
--dft-bg-surface: #f1f5f9;
|
|
193
|
+
--dft-bg-overlay: #fdfdfd;
|
|
194
|
+
--dft-text: #1e293b;
|
|
195
|
+
--dft-text-muted: #64748b;
|
|
196
|
+
--dft-text-dim: #94a3b8;
|
|
197
|
+
--dft-border: #e2e8f0;
|
|
198
|
+
--dft-border-light: #f1f5f9;
|
|
199
|
+
--dft-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.08);
|
|
200
|
+
--dft-success: #10b981;
|
|
201
|
+
--dft-success-bg: rgba(16, 185, 129, 0.1);
|
|
202
|
+
--dft-warning: #f59e0b;
|
|
203
|
+
--dft-warning-bg: rgba(245, 158, 11, 0.1);
|
|
204
|
+
--dft-danger: #ef4444;
|
|
205
|
+
--dft-danger-bg: rgba(239, 68, 68, 0.1);
|
|
206
|
+
|
|
207
|
+
width: 100%;
|
|
208
|
+
max-width: 1200px;
|
|
209
|
+
margin: 2rem auto;
|
|
210
|
+
padding: 0 1.5rem;
|
|
210
211
|
}
|
|
211
212
|
|
|
212
213
|
:global([data-theme="dark"]) .flight-calculator-ui,
|
|
213
214
|
:global(.theme-dark) .flight-calculator-ui {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
--dft-success: #4ade80;
|
|
225
|
-
--dft-success-bg: rgba(21, 128, 61, 0.15);
|
|
226
|
-
--dft-warning: #facc15;
|
|
227
|
-
--dft-warning-bg: rgba(161, 98, 7, 0.15);
|
|
228
|
-
--dft-danger: #f87171;
|
|
229
|
-
--dft-danger-bg: rgba(185, 28, 28, 0.15);
|
|
215
|
+
--dft-bg: #0f172a;
|
|
216
|
+
--dft-bg-muted: #1e293b;
|
|
217
|
+
--dft-bg-surface: #334155;
|
|
218
|
+
--dft-bg-overlay: #1e293b;
|
|
219
|
+
--dft-text: #f1f5f9;
|
|
220
|
+
--dft-text-muted: #94a3b8;
|
|
221
|
+
--dft-text-dim: #64748b;
|
|
222
|
+
--dft-border: #334155;
|
|
223
|
+
--dft-border-light: #1e293b;
|
|
224
|
+
--dft-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.4);
|
|
230
225
|
}
|
|
231
226
|
|
|
232
227
|
.flight-calculator-ui .tech-mega-card {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
228
|
+
background: var(--dft-bg);
|
|
229
|
+
backdrop-filter: blur(24px) saturate(180%);
|
|
230
|
+
-webkit-backdrop-filter: blur(24px) saturate(180%);
|
|
231
|
+
border: 1px solid var(--dft-border);
|
|
232
|
+
border-radius: 40px;
|
|
233
|
+
box-shadow: var(--dft-shadow);
|
|
234
|
+
overflow: hidden;
|
|
235
|
+
position: relative;
|
|
236
|
+
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.flight-calculator-ui .tech-mega-card::before {
|
|
240
|
+
content: '';
|
|
241
|
+
position: absolute;
|
|
242
|
+
top: 0;
|
|
243
|
+
left: 0;
|
|
244
|
+
right: 0;
|
|
245
|
+
height: 6px;
|
|
246
|
+
background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
|
|
247
|
+
background-size: 200% 100%;
|
|
248
|
+
animation: gradient-shift-dft 4s linear infinite;
|
|
249
|
+
z-index: 10;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
@keyframes gradient-shift-dft {
|
|
253
|
+
0% { background-position: 0% 50%; }
|
|
254
|
+
100% { background-position: 200% 50%; }
|
|
239
255
|
}
|
|
240
256
|
|
|
241
257
|
.flight-calculator-ui .card-grid {
|
|
242
|
-
|
|
243
|
-
|
|
258
|
+
display: grid;
|
|
259
|
+
grid-template-columns: 400px 1fr;
|
|
260
|
+
min-height: 700px;
|
|
244
261
|
}
|
|
245
262
|
|
|
246
263
|
.flight-calculator-ui .config-sidebar {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
:global([data-theme="dark"]) .flight-calculator-ui .config-sidebar,
|
|
256
|
-
:global(.theme-dark) .flight-calculator-ui .config-sidebar {
|
|
257
|
-
background: var(--dft-bg-surface);
|
|
258
|
-
border-right-color: var(--dft-border-light);
|
|
264
|
+
padding: 3.5rem 3rem;
|
|
265
|
+
background: var(--dft-bg-overlay);
|
|
266
|
+
border-right: 1px solid var(--dft-border-light);
|
|
267
|
+
display: flex;
|
|
268
|
+
flex-direction: column;
|
|
269
|
+
gap: 3rem;
|
|
259
270
|
}
|
|
260
271
|
|
|
261
272
|
.flight-calculator-ui .main-display {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
:global([data-theme="dark"]) .flight-calculator-ui .main-display,
|
|
270
|
-
:global(.theme-dark) .flight-calculator-ui .main-display {
|
|
271
|
-
background: var(--dft-bg);
|
|
273
|
+
padding: 3.5rem 3rem;
|
|
274
|
+
display: flex;
|
|
275
|
+
flex-direction: column;
|
|
276
|
+
gap: 3rem;
|
|
277
|
+
background: var(--dft-bg);
|
|
272
278
|
}
|
|
273
279
|
|
|
274
280
|
.flight-calculator-ui .divider {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
}
|
|
281
|
+
height: 1px;
|
|
282
|
+
width: 100%;
|
|
283
|
+
background: linear-gradient(90deg, transparent, var(--dft-border-light), transparent);
|
|
284
|
+
}
|
|
279
285
|
|
|
280
|
-
|
|
281
|
-
:
|
|
282
|
-
|
|
286
|
+
.flight-calculator-ui :global(.tech-section) {
|
|
287
|
+
display: flex;
|
|
288
|
+
flex-direction: column;
|
|
289
|
+
gap: 2rem;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.flight-calculator-ui :global(.section-title) {
|
|
293
|
+
font-size: 0.75rem;
|
|
294
|
+
font-weight: 800;
|
|
295
|
+
color: var(--dft-text-dim);
|
|
296
|
+
text-transform: uppercase;
|
|
297
|
+
letter-spacing: 0.15em;
|
|
298
|
+
margin-bottom: 0.5rem;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.flight-calculator-ui :global(.input-group) {
|
|
302
|
+
display: flex;
|
|
303
|
+
flex-direction: column;
|
|
304
|
+
gap: 1rem;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.flight-calculator-ui :global(.label-row) {
|
|
308
|
+
display: flex;
|
|
309
|
+
justify-content: space-between;
|
|
310
|
+
align-items: center;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.flight-calculator-ui :global(.input-group label) {
|
|
314
|
+
font-size: 0.8rem;
|
|
315
|
+
font-weight: 800;
|
|
316
|
+
color: var(--dft-text-muted);
|
|
283
317
|
}
|
|
284
318
|
|
|
285
|
-
.flight-calculator-ui .
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
319
|
+
.flight-calculator-ui :global(.value-badge) {
|
|
320
|
+
padding: 0.4rem 1rem;
|
|
321
|
+
background: var(--dft-bg-surface);
|
|
322
|
+
border-radius: 12px;
|
|
323
|
+
color: var(--dft-accent);
|
|
324
|
+
font-weight: 850;
|
|
325
|
+
font-size: 0.85rem;
|
|
326
|
+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.flight-calculator-ui :global(.tech-slider) {
|
|
330
|
+
width: 100%;
|
|
331
|
+
height: 6px;
|
|
332
|
+
appearance: none;
|
|
333
|
+
-webkit-appearance: none;
|
|
334
|
+
background: var(--dft-border);
|
|
335
|
+
border-radius: 100px;
|
|
336
|
+
outline: none;
|
|
337
|
+
transition: all 0.3s ease;
|
|
298
338
|
}
|
|
299
339
|
|
|
300
|
-
.flight-calculator-ui .
|
|
301
|
-
|
|
302
|
-
flex-direction: column;
|
|
303
|
-
gap: 0.75rem;
|
|
340
|
+
.flight-calculator-ui :global(.tech-slider:hover) {
|
|
341
|
+
background: var(--dft-border-light);
|
|
304
342
|
}
|
|
305
343
|
|
|
306
|
-
.flight-calculator-ui .
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
344
|
+
.flight-calculator-ui :global(.tech-slider::-webkit-slider-thumb) {
|
|
345
|
+
appearance: none;
|
|
346
|
+
-webkit-appearance: none;
|
|
347
|
+
width: 22px;
|
|
348
|
+
height: 22px;
|
|
349
|
+
background: var(--dft-accent);
|
|
350
|
+
border: 4px solid var(--dft-bg);
|
|
351
|
+
border-radius: 50%;
|
|
352
|
+
cursor: pointer;
|
|
353
|
+
box-shadow: 0 4px 10px rgba(var(--dft-accent-rgb), 0.3);
|
|
354
|
+
transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.flight-calculator-ui :global(.tech-select),
|
|
358
|
+
.flight-calculator-ui :global(.tech-input) {
|
|
359
|
+
width: 100%;
|
|
360
|
+
padding: 1rem 1.25rem;
|
|
361
|
+
background: var(--dft-bg-surface);
|
|
362
|
+
border: 1px solid var(--dft-border);
|
|
363
|
+
border-radius: 16px;
|
|
364
|
+
font-weight: 700;
|
|
365
|
+
color: var(--dft-text);
|
|
366
|
+
font-size: 1rem;
|
|
367
|
+
transition: all 0.3s ease;
|
|
368
|
+
cursor: pointer;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.flight-calculator-ui :global(.tech-select:focus),
|
|
372
|
+
.flight-calculator-ui :global(.tech-input:focus) {
|
|
373
|
+
outline: none;
|
|
374
|
+
border-color: var(--dft-accent);
|
|
375
|
+
background: var(--dft-bg);
|
|
376
|
+
box-shadow: 0 0 0 4px var(--dft-accent-glow);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.flight-calculator-ui :global(.presets) {
|
|
380
|
+
display: flex;
|
|
381
|
+
gap: 0.5rem;
|
|
382
|
+
flex-wrap: wrap;
|
|
383
|
+
margin-top: 0.5rem;
|
|
310
384
|
}
|
|
311
|
-
|
|
312
|
-
.flight-calculator-ui .
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
cursor: pointer;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
.flight-calculator-ui .tech-select {
|
|
356
|
-
width: 100%;
|
|
357
|
-
padding: 0.75rem;
|
|
358
|
-
background: var(--dft-bg-surface);
|
|
359
|
-
border: 1px solid var(--dft-border);
|
|
360
|
-
border-radius: 12px;
|
|
361
|
-
font-weight: 600;
|
|
362
|
-
color: var(--dft-text);
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
.flight-calculator-ui .tech-input {
|
|
366
|
-
width: 100%;
|
|
367
|
-
padding: 0.75rem;
|
|
368
|
-
background: var(--dft-bg-surface);
|
|
369
|
-
border: 1px solid var(--dft-border);
|
|
370
|
-
border-radius: 12px;
|
|
371
|
-
font-weight: 600;
|
|
372
|
-
color: var(--dft-text);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.flight-calculator-ui .presets {
|
|
376
|
-
display: flex;
|
|
377
|
-
gap: 0.5rem;
|
|
378
|
-
flex-wrap: wrap;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
.flight-calculator-ui .preset-btn {
|
|
382
|
-
padding: 0.35rem 0.65rem;
|
|
383
|
-
background: var(--dft-bg-surface);
|
|
384
|
-
border: none;
|
|
385
|
-
border-radius: 8px;
|
|
386
|
-
font-size: 0.75rem;
|
|
387
|
-
font-weight: 700;
|
|
388
|
-
color: var(--dft-text-muted);
|
|
389
|
-
cursor: pointer;
|
|
390
|
-
transition: all 0.2s;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
.flight-calculator-ui .preset-btn:hover {
|
|
394
|
-
background: var(--dft-border);
|
|
395
|
-
color: var(--dft-text);
|
|
385
|
+
|
|
386
|
+
.flight-calculator-ui :global(.preset-btn) {
|
|
387
|
+
padding: 0.5rem 1rem;
|
|
388
|
+
background: var(--dft-bg-surface);
|
|
389
|
+
border: 1px solid transparent;
|
|
390
|
+
border-radius: 12px;
|
|
391
|
+
font-size: 0.75rem;
|
|
392
|
+
font-weight: 800;
|
|
393
|
+
color: var(--dft-text-muted);
|
|
394
|
+
cursor: pointer;
|
|
395
|
+
transition: all 0.2s;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.flight-calculator-ui :global(.preset-btn:hover) {
|
|
399
|
+
background: var(--dft-bg);
|
|
400
|
+
border-color: var(--dft-accent);
|
|
401
|
+
color: var(--dft-accent);
|
|
402
|
+
transform: translateY(-2px);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.flight-calculator-ui :global(.hint) {
|
|
406
|
+
font-size: 0.7rem;
|
|
407
|
+
color: var(--dft-text-dim);
|
|
408
|
+
font-style: italic;
|
|
409
|
+
line-height: 1.4;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.flight-calculator-ui :global(.dashboard-section) {
|
|
413
|
+
display: flex;
|
|
414
|
+
flex-direction: column;
|
|
415
|
+
align-items: center;
|
|
416
|
+
gap: 3.5rem;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.flight-calculator-ui :global(.radial-container) {
|
|
420
|
+
position: relative;
|
|
421
|
+
width: 320px;
|
|
422
|
+
height: 320px;
|
|
423
|
+
display: flex;
|
|
424
|
+
justify-content: center;
|
|
425
|
+
align-items: center;
|
|
396
426
|
}
|
|
397
427
|
|
|
398
|
-
.flight-calculator-ui .
|
|
399
|
-
|
|
400
|
-
|
|
428
|
+
.flight-calculator-ui :global(.radial-svg) {
|
|
429
|
+
transform: rotate(-90deg);
|
|
430
|
+
width: 100%;
|
|
431
|
+
height: 100%;
|
|
432
|
+
filter: drop-shadow(0 10px 30px rgba(var(--dft-accent-rgb), 0.15));
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.flight-calculator-ui :global(.bg-circle) {
|
|
436
|
+
fill: none;
|
|
437
|
+
stroke: var(--dft-bg-surface);
|
|
438
|
+
stroke-width: 10;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.flight-calculator-ui :global(.fg-circle) {
|
|
442
|
+
fill: none;
|
|
443
|
+
stroke: url("#statGradient");
|
|
444
|
+
stroke-width: 10;
|
|
445
|
+
stroke-linecap: round;
|
|
446
|
+
stroke-dasharray: 283;
|
|
447
|
+
stroke-dashoffset: 0;
|
|
448
|
+
transition: stroke-dashoffset 1s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.flight-calculator-ui :global(.result-text) {
|
|
452
|
+
position: absolute;
|
|
453
|
+
display: flex;
|
|
454
|
+
flex-direction: column;
|
|
455
|
+
align-items: center;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.flight-calculator-ui :global(.time-primary) {
|
|
459
|
+
font-size: 7rem;
|
|
460
|
+
font-weight: 950;
|
|
461
|
+
color: var(--dft-text);
|
|
462
|
+
letter-spacing: -0.08em;
|
|
463
|
+
line-height: 1;
|
|
401
464
|
}
|
|
402
465
|
|
|
403
|
-
.flight-calculator-ui .
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
466
|
+
.flight-calculator-ui :global(.time-label) {
|
|
467
|
+
font-size: 1rem;
|
|
468
|
+
font-weight: 850;
|
|
469
|
+
color: var(--dft-text-muted);
|
|
470
|
+
text-transform: uppercase;
|
|
471
|
+
letter-spacing: 0.2em;
|
|
472
|
+
margin-top: 0.5rem;
|
|
408
473
|
}
|
|
409
474
|
|
|
410
|
-
.flight-calculator-ui .
|
|
411
|
-
|
|
412
|
-
|
|
475
|
+
.flight-calculator-ui :global(.secondary-stats) {
|
|
476
|
+
display: grid;
|
|
477
|
+
grid-template-columns: repeat(3, 1fr);
|
|
478
|
+
gap: 2rem;
|
|
479
|
+
width: 100%;
|
|
413
480
|
}
|
|
414
481
|
|
|
415
|
-
.flight-calculator-ui .
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
482
|
+
.flight-calculator-ui :global(.stat-box) {
|
|
483
|
+
display: flex;
|
|
484
|
+
flex-direction: column;
|
|
485
|
+
align-items: center;
|
|
486
|
+
gap: 0.5rem;
|
|
487
|
+
padding: 2rem 1.5rem;
|
|
488
|
+
background: var(--dft-bg-overlay);
|
|
489
|
+
border: 1px solid var(--dft-border-light);
|
|
490
|
+
border-radius: 32px;
|
|
491
|
+
transition: all 0.3s ease;
|
|
422
492
|
}
|
|
423
493
|
|
|
424
|
-
.flight-calculator-ui .
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
494
|
+
.flight-calculator-ui :global(.stat-box:hover) {
|
|
495
|
+
transform: translateY(-5px);
|
|
496
|
+
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
|
|
497
|
+
border-color: var(--dft-accent);
|
|
428
498
|
}
|
|
429
499
|
|
|
430
|
-
.flight-calculator-ui .
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
500
|
+
.flight-calculator-ui :global(.stat-label) {
|
|
501
|
+
font-size: 0.75rem;
|
|
502
|
+
font-weight: 800;
|
|
503
|
+
color: var(--dft-text-dim);
|
|
504
|
+
text-transform: uppercase;
|
|
505
|
+
letter-spacing: 0.1em;
|
|
434
506
|
}
|
|
435
507
|
|
|
436
|
-
.flight-calculator-ui .
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
stroke-linecap: round;
|
|
441
|
-
stroke-dasharray: 283;
|
|
442
|
-
stroke-dashoffset: 0;
|
|
443
|
-
transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
|
|
508
|
+
.flight-calculator-ui :global(.stat-value) {
|
|
509
|
+
font-size: 1.75rem;
|
|
510
|
+
font-weight: 950;
|
|
511
|
+
color: var(--dft-text);
|
|
444
512
|
}
|
|
445
513
|
|
|
446
|
-
.flight-calculator-ui .
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
gap: 0.25rem;
|
|
514
|
+
.flight-calculator-ui :global(.chart-header) {
|
|
515
|
+
display: flex;
|
|
516
|
+
justify-content: space-between;
|
|
517
|
+
align-items: center;
|
|
518
|
+
margin-bottom: 2rem;
|
|
452
519
|
}
|
|
453
520
|
|
|
454
|
-
.flight-calculator-ui .
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
letter-spacing: -0.05em;
|
|
459
|
-
line-height: 1;
|
|
521
|
+
.flight-calculator-ui :global(.chart-subtitle) {
|
|
522
|
+
font-size: 0.85rem;
|
|
523
|
+
font-weight: 700;
|
|
524
|
+
color: var(--dft-text-muted);
|
|
460
525
|
}
|
|
461
526
|
|
|
462
|
-
.flight-calculator-ui .
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
527
|
+
.flight-calculator-ui :global(.chart-body) {
|
|
528
|
+
position: relative;
|
|
529
|
+
height: 350px;
|
|
530
|
+
width: 100%;
|
|
531
|
+
background: var(--dft-bg-surface);
|
|
532
|
+
border-radius: 32px;
|
|
533
|
+
padding: 1.5rem;
|
|
534
|
+
border: 1px solid var(--dft-border-light);
|
|
468
535
|
}
|
|
469
536
|
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
display: flex;
|
|
479
|
-
flex-direction: column;
|
|
480
|
-
align-items: center;
|
|
481
|
-
gap: 0.25rem;
|
|
482
|
-
padding: 1.25rem;
|
|
483
|
-
background: var(--dft-bg-overlay);
|
|
484
|
-
border: 1px solid var(--dft-border-light);
|
|
485
|
-
border-radius: 20px;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
:global([data-theme="dark"]) .flight-calculator-ui .stat-box,
|
|
489
|
-
:global(.theme-dark) .flight-calculator-ui .stat-box {
|
|
490
|
-
background: var(--dft-bg-muted);
|
|
491
|
-
border-color: var(--dft-border);
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
.flight-calculator-ui .stat-label {
|
|
495
|
-
font-size: 0.7rem;
|
|
496
|
-
font-weight: 700;
|
|
497
|
-
color: var(--dft-text-dim);
|
|
498
|
-
text-transform: uppercase;
|
|
499
|
-
text-align: center;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
.flight-calculator-ui .stat-value {
|
|
503
|
-
font-size: 1.2rem;
|
|
504
|
-
font-weight: 900;
|
|
505
|
-
color: var(--dft-text);
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
.flight-calculator-ui .chart-header {
|
|
509
|
-
display: flex;
|
|
510
|
-
justify-content: space-between;
|
|
511
|
-
align-items: center;
|
|
512
|
-
margin-bottom: 1rem;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
.flight-calculator-ui .chart-subtitle {
|
|
516
|
-
font-size: 0.85rem;
|
|
517
|
-
font-weight: 600;
|
|
518
|
-
color: var(--dft-text-muted);
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
.flight-calculator-ui .chart-body {
|
|
522
|
-
position: relative;
|
|
523
|
-
height: 300px;
|
|
524
|
-
width: 100%;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
@media (max-width: 992px) {
|
|
528
|
-
.flight-calculator-ui .card-grid {
|
|
529
|
-
grid-template-columns: 1fr;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
.flight-calculator-ui .config-sidebar {
|
|
533
|
-
border-right: none;
|
|
534
|
-
border-bottom: 1px solid var(--dft-border-light);
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
:global([data-theme="dark"]) .flight-calculator-ui .config-sidebar,
|
|
538
|
-
:global(.theme-dark) .flight-calculator-ui .config-sidebar {
|
|
539
|
-
border-bottom-color: var(--dft-border-light);
|
|
540
|
-
}
|
|
537
|
+
@media (max-width: 1200px) {
|
|
538
|
+
.flight-calculator-ui .card-grid {
|
|
539
|
+
grid-template-columns: 1fr;
|
|
540
|
+
}
|
|
541
|
+
.flight-calculator-ui .config-sidebar {
|
|
542
|
+
border-right: none;
|
|
543
|
+
border-bottom: 1px solid var(--dft-border-light);
|
|
544
|
+
}
|
|
541
545
|
}
|
|
542
546
|
|
|
543
547
|
@media (max-width: 600px) {
|
|
544
|
-
|
|
545
|
-
grid-template-columns: 1fr;
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
.flight-calculator-ui .time-primary {
|
|
554
|
-
font-size: 3.5rem;
|
|
555
|
-
}
|
|
548
|
+
.flight-calculator-ui { padding: 0.5rem; }
|
|
549
|
+
.flight-calculator-ui :global(.secondary-stats) { grid-template-columns: 1fr; }
|
|
550
|
+
.flight-calculator-ui :global(.radial-container) {
|
|
551
|
+
width: 240px;
|
|
552
|
+
height: 240px;
|
|
553
|
+
}
|
|
554
|
+
.flight-calculator-ui :global(.time-primary) { font-size: 4.5rem; }
|
|
555
|
+
.flight-calculator-ui :global(.stat-box) { padding: 1.5rem; }
|
|
556
556
|
}
|
|
557
557
|
</style>
|
|
558
|
+
|