coderuday21 commited on
Commit
e5c85f7
·
1 Parent(s): 8ce3880

New gradient theme: #2e33c5 to #cf2040 across nav, footer, buttons, and all accents

Browse files
Files changed (2) hide show
  1. static/css/style.css +64 -43
  2. templates/index.html +5 -5
static/css/style.css CHANGED
@@ -1,7 +1,13 @@
1
- /* SatDetect — Modern dark design system */
2
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
3
 
4
  :root {
 
 
 
 
 
 
5
  --bg-deep: #080b12;
6
  --bg-surface: #0f1320;
7
  --bg-elevated: #161c2e;
@@ -9,13 +15,13 @@
9
  --bg-hover: #1c2540;
10
  --border: rgba(148, 163, 184, 0.10);
11
  --border-hover: rgba(148, 163, 184, 0.22);
12
- --border-focus: rgba(45, 212, 191, 0.5);
13
  --text: #f1f5f9;
14
  --text-muted: #94a3b8;
15
  --text-dim: #64748b;
16
- --accent: #2dd4bf;
17
- --accent-dim: #14b8a6;
18
- --accent-glow: rgba(45, 212, 191, 0.2);
19
  --danger: #f87171;
20
  --danger-dim: #ef4444;
21
  --danger-glow: rgba(248, 113, 113, 0.15);
@@ -50,8 +56,8 @@ body::before {
50
  position: fixed;
51
  inset: 0;
52
  background-image:
53
- radial-gradient(ellipse at 20% 0%, rgba(45, 212, 191, 0.06) 0%, transparent 50%),
54
- radial-gradient(ellipse at 80% 100%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
55
  pointer-events: none;
56
  z-index: 0;
57
  }
@@ -95,7 +101,7 @@ body::before {
95
  width: 48px;
96
  height: 48px;
97
  border-radius: 14px;
98
- background: linear-gradient(135deg, var(--accent), #6366f1);
99
  color: #fff;
100
  }
101
 
@@ -125,7 +131,7 @@ body::before {
125
  text-decoration: none;
126
  transition: color var(--transition);
127
  }
128
- .forgot-link a:hover { color: var(--accent); }
129
 
130
  .toggle-auth {
131
  text-align: center;
@@ -134,7 +140,7 @@ body::before {
134
  font-size: 0.88rem;
135
  }
136
  .toggle-auth a {
137
- color: var(--accent);
138
  text-decoration: none;
139
  font-weight: 500;
140
  }
@@ -145,13 +151,13 @@ body::before {
145
  width: 52px;
146
  height: 52px;
147
  border-radius: 50%;
148
- background: var(--bg-elevated);
149
- border: 1px solid var(--border);
150
  display: flex;
151
  align-items: center;
152
  justify-content: center;
153
  margin: 0 auto 1rem;
154
- color: var(--accent);
155
  }
156
  .back-to-login {
157
  display: inline-flex;
@@ -163,7 +169,7 @@ body::before {
163
  margin-top: 1.75rem;
164
  transition: color var(--transition);
165
  }
166
- .back-to-login:hover { color: var(--accent); }
167
 
168
  /* ---- Password input with eye toggle ---- */
169
  .input-password-wrap {
@@ -246,7 +252,7 @@ textarea {
246
  input:focus, select:focus, textarea:focus {
247
  outline: none;
248
  border-color: var(--border-focus);
249
- box-shadow: 0 0 0 3px var(--accent-glow);
250
  }
251
 
252
  .checkbox-group label {
@@ -260,7 +266,7 @@ input:focus, select:focus, textarea:focus {
260
  letter-spacing: 0;
261
  }
262
  .checkbox-group input[type="checkbox"] {
263
- accent-color: var(--accent);
264
  width: 16px;
265
  height: 16px;
266
  }
@@ -286,11 +292,11 @@ input:focus, select:focus, textarea:focus {
286
  .btn:active { transform: scale(0.97); }
287
 
288
  .btn-primary {
289
- background: linear-gradient(135deg, var(--accent), #14b8a6);
290
- color: var(--bg-deep);
291
  font-weight: 600;
292
  }
293
- .btn-primary:hover { filter: brightness(1.1); box-shadow: 0 4px 20px var(--accent-glow); }
294
 
295
  .btn-secondary {
296
  background: var(--bg-elevated);
@@ -335,9 +341,11 @@ input:focus, select:focus, textarea:focus {
335
  display: flex;
336
  align-items: center;
337
  justify-content: space-between;
338
- margin-bottom: 2rem;
339
- padding-bottom: 1rem;
340
- border-bottom: 1px solid var(--border);
 
 
341
  }
342
  .nav-brand {
343
  font-weight: 700;
@@ -346,7 +354,9 @@ input:focus, select:focus, textarea:focus {
346
  align-items: center;
347
  gap: 0.5rem;
348
  letter-spacing: -0.02em;
 
349
  }
 
350
  .nav-user {
351
  display: flex;
352
  align-items: center;
@@ -354,11 +364,18 @@ input:focus, select:focus, textarea:focus {
354
  }
355
  .user-badge {
356
  font-size: 0.8rem;
357
- color: var(--text-muted);
358
- background: var(--bg-elevated);
359
  padding: 0.3rem 0.7rem;
360
  border-radius: 20px;
361
- border: 1px solid var(--border);
 
 
 
 
 
 
 
362
  }
363
 
364
  /* ---- Page header ---- */
@@ -396,9 +413,9 @@ input:focus, select:focus, textarea:focus {
396
  cursor: pointer;
397
  }
398
  .upload-zone:hover, .upload-zone.dragover {
399
- border-color: var(--accent);
400
- background: rgba(45, 212, 191, 0.04);
401
- box-shadow: 0 0 0 4px var(--accent-glow);
402
  }
403
  .upload-zone input[type="file"] {
404
  position: absolute;
@@ -411,7 +428,7 @@ input:focus, select:focus, textarea:focus {
411
  margin-bottom: 0.5rem;
412
  transition: color var(--transition);
413
  }
414
- .upload-zone:hover .upload-icon { color: var(--accent); }
415
  .upload-zone label {
416
  cursor: pointer;
417
  display: block;
@@ -421,7 +438,7 @@ input:focus, select:focus, textarea:focus {
421
  .upload-zone .filename {
422
  margin-top: 0.4rem;
423
  font-size: 0.8rem;
424
- color: var(--accent);
425
  font-family: var(--font-mono);
426
  }
427
  .upload-preview {
@@ -471,7 +488,10 @@ input:focus, select:focus, textarea:focus {
471
  .stat-box .value {
472
  font-size: 1.35rem;
473
  font-weight: 700;
474
- color: var(--accent);
 
 
 
475
  font-family: var(--font-mono);
476
  }
477
  .stat-box .label {
@@ -535,18 +555,18 @@ input:focus, select:focus, textarea:focus {
535
  .compare-handle-line {
536
  flex: 1;
537
  width: 2px;
538
- background: var(--accent);
539
- box-shadow: 0 0 10px var(--accent-glow);
540
  }
541
  .compare-handle-knob {
542
  width: 36px; height: 36px;
543
  border-radius: 50%;
544
- background: var(--accent);
545
- color: var(--bg-deep);
546
  display: flex;
547
  align-items: center;
548
  justify-content: center;
549
- box-shadow: 0 2px 16px rgba(0,0,0,0.5), 0 0 20px var(--accent-glow);
550
  flex-shrink: 0;
551
  }
552
  .compare-label {
@@ -569,7 +589,7 @@ input:focus, select:focus, textarea:focus {
569
  }
570
  .compare-label-right {
571
  right: 10px;
572
- background: rgba(248, 113, 113, 0.85);
573
  color: #fff;
574
  backdrop-filter: blur(6px);
575
  }
@@ -597,7 +617,7 @@ input:focus, select:focus, textarea:focus {
597
  top: 0;
598
  }
599
  .regions-table td { color: var(--text-muted); }
600
- .regions-table tr:hover td { background: rgba(45, 212, 191, 0.03); }
601
  .regions-table td:nth-child(2) { color: var(--text); font-weight: 500; }
602
 
603
  /* ---- History ---- */
@@ -726,7 +746,7 @@ input:focus, select:focus, textarea:focus {
726
  .spinner {
727
  width: 18px; height: 18px;
728
  border: 2px solid var(--border);
729
- border-top-color: var(--accent);
730
  border-radius: 50%;
731
  animation: spin 0.7s linear infinite;
732
  }
@@ -734,14 +754,15 @@ input:focus, select:focus, textarea:focus {
734
 
735
  /* ---- Footer ---- */
736
  .app-footer {
737
- margin-top: 3rem;
738
- padding: 1.25rem 0;
739
- border-top: 1px solid var(--border);
740
  text-align: center;
 
741
  }
742
  .app-footer p {
743
  font-size: 0.78rem;
744
- color: var(--text-dim);
745
  }
746
 
747
  /* ---- Utility ---- */
 
1
+ /* SatDetect — Gradient theme (#2e33c5 #cf2040) */
2
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
3
 
4
  :root {
5
+ --gradient: linear-gradient(135deg, #2e33c5, #cf2040);
6
+ --gradient-h: linear-gradient(90deg, #2e33c5, #cf2040);
7
+ --grad-start: #2e33c5;
8
+ --grad-end: #cf2040;
9
+ --grad-mid: #7a2a82;
10
+
11
  --bg-deep: #080b12;
12
  --bg-surface: #0f1320;
13
  --bg-elevated: #161c2e;
 
15
  --bg-hover: #1c2540;
16
  --border: rgba(148, 163, 184, 0.10);
17
  --border-hover: rgba(148, 163, 184, 0.22);
18
+ --border-focus: rgba(46, 51, 197, 0.5);
19
  --text: #f1f5f9;
20
  --text-muted: #94a3b8;
21
  --text-dim: #64748b;
22
+ --accent: #7a6aed;
23
+ --accent-dim: #6358d4;
24
+ --accent-glow: rgba(122, 106, 237, 0.2);
25
  --danger: #f87171;
26
  --danger-dim: #ef4444;
27
  --danger-glow: rgba(248, 113, 113, 0.15);
 
56
  position: fixed;
57
  inset: 0;
58
  background-image:
59
+ radial-gradient(ellipse at 20% 0%, rgba(46, 51, 197, 0.08) 0%, transparent 50%),
60
+ radial-gradient(ellipse at 80% 100%, rgba(207, 32, 64, 0.06) 0%, transparent 50%);
61
  pointer-events: none;
62
  z-index: 0;
63
  }
 
101
  width: 48px;
102
  height: 48px;
103
  border-radius: 14px;
104
+ background: var(--gradient);
105
  color: #fff;
106
  }
107
 
 
131
  text-decoration: none;
132
  transition: color var(--transition);
133
  }
134
+ .forgot-link a:hover { color: var(--grad-start); }
135
 
136
  .toggle-auth {
137
  text-align: center;
 
140
  font-size: 0.88rem;
141
  }
142
  .toggle-auth a {
143
+ color: var(--grad-start);
144
  text-decoration: none;
145
  font-weight: 500;
146
  }
 
151
  width: 52px;
152
  height: 52px;
153
  border-radius: 50%;
154
+ background: var(--gradient);
155
+ border: none;
156
  display: flex;
157
  align-items: center;
158
  justify-content: center;
159
  margin: 0 auto 1rem;
160
+ color: #fff;
161
  }
162
  .back-to-login {
163
  display: inline-flex;
 
169
  margin-top: 1.75rem;
170
  transition: color var(--transition);
171
  }
172
+ .back-to-login:hover { color: var(--grad-start); }
173
 
174
  /* ---- Password input with eye toggle ---- */
175
  .input-password-wrap {
 
252
  input:focus, select:focus, textarea:focus {
253
  outline: none;
254
  border-color: var(--border-focus);
255
+ box-shadow: 0 0 0 3px rgba(46, 51, 197, 0.18);
256
  }
257
 
258
  .checkbox-group label {
 
266
  letter-spacing: 0;
267
  }
268
  .checkbox-group input[type="checkbox"] {
269
+ accent-color: var(--grad-start);
270
  width: 16px;
271
  height: 16px;
272
  }
 
292
  .btn:active { transform: scale(0.97); }
293
 
294
  .btn-primary {
295
+ background: var(--gradient);
296
+ color: #fff;
297
  font-weight: 600;
298
  }
299
+ .btn-primary:hover { filter: brightness(1.15); box-shadow: 0 4px 24px rgba(46, 51, 197, 0.35), 0 4px 16px rgba(207, 32, 64, 0.2); }
300
 
301
  .btn-secondary {
302
  background: var(--bg-elevated);
 
341
  display: flex;
342
  align-items: center;
343
  justify-content: space-between;
344
+ margin: -1.5rem -1.5rem 2rem;
345
+ padding: 1rem 1.5rem;
346
+ background: var(--gradient-h);
347
+ border-radius: var(--radius) var(--radius) 0 0;
348
+ box-shadow: 0 4px 20px rgba(46, 51, 197, 0.25);
349
  }
350
  .nav-brand {
351
  font-weight: 700;
 
354
  align-items: center;
355
  gap: 0.5rem;
356
  letter-spacing: -0.02em;
357
+ color: #fff;
358
  }
359
+ .nav-brand svg { stroke: #fff !important; }
360
  .nav-user {
361
  display: flex;
362
  align-items: center;
 
364
  }
365
  .user-badge {
366
  font-size: 0.8rem;
367
+ color: rgba(255,255,255,0.85);
368
+ background: rgba(255,255,255,0.12);
369
  padding: 0.3rem 0.7rem;
370
  border-radius: 20px;
371
+ border: 1px solid rgba(255,255,255,0.2);
372
+ }
373
+ .nav .btn-ghost {
374
+ color: rgba(255,255,255,0.8);
375
+ }
376
+ .nav .btn-ghost:hover {
377
+ color: #fff;
378
+ background: rgba(255,255,255,0.1);
379
  }
380
 
381
  /* ---- Page header ---- */
 
413
  cursor: pointer;
414
  }
415
  .upload-zone:hover, .upload-zone.dragover {
416
+ border-color: var(--grad-start);
417
+ background: rgba(46, 51, 197, 0.04);
418
+ box-shadow: 0 0 0 4px rgba(46, 51, 197, 0.15);
419
  }
420
  .upload-zone input[type="file"] {
421
  position: absolute;
 
428
  margin-bottom: 0.5rem;
429
  transition: color var(--transition);
430
  }
431
+ .upload-zone:hover .upload-icon { color: var(--grad-start); }
432
  .upload-zone label {
433
  cursor: pointer;
434
  display: block;
 
438
  .upload-zone .filename {
439
  margin-top: 0.4rem;
440
  font-size: 0.8rem;
441
+ color: var(--grad-start);
442
  font-family: var(--font-mono);
443
  }
444
  .upload-preview {
 
488
  .stat-box .value {
489
  font-size: 1.35rem;
490
  font-weight: 700;
491
+ background: var(--gradient-h);
492
+ -webkit-background-clip: text;
493
+ -webkit-text-fill-color: transparent;
494
+ background-clip: text;
495
  font-family: var(--font-mono);
496
  }
497
  .stat-box .label {
 
555
  .compare-handle-line {
556
  flex: 1;
557
  width: 2px;
558
+ background: var(--gradient);
559
+ box-shadow: 0 0 10px rgba(46, 51, 197, 0.3);
560
  }
561
  .compare-handle-knob {
562
  width: 36px; height: 36px;
563
  border-radius: 50%;
564
+ background: var(--gradient);
565
+ color: #fff;
566
  display: flex;
567
  align-items: center;
568
  justify-content: center;
569
+ box-shadow: 0 2px 16px rgba(0,0,0,0.5), 0 0 20px rgba(46, 51, 197, 0.3);
570
  flex-shrink: 0;
571
  }
572
  .compare-label {
 
589
  }
590
  .compare-label-right {
591
  right: 10px;
592
+ background: rgba(207, 32, 64, 0.85);
593
  color: #fff;
594
  backdrop-filter: blur(6px);
595
  }
 
617
  top: 0;
618
  }
619
  .regions-table td { color: var(--text-muted); }
620
+ .regions-table tr:hover td { background: rgba(46, 51, 197, 0.04); }
621
  .regions-table td:nth-child(2) { color: var(--text); font-weight: 500; }
622
 
623
  /* ---- History ---- */
 
746
  .spinner {
747
  width: 18px; height: 18px;
748
  border: 2px solid var(--border);
749
+ border-top-color: var(--grad-start);
750
  border-radius: 50%;
751
  animation: spin 0.7s linear infinite;
752
  }
 
754
 
755
  /* ---- Footer ---- */
756
  .app-footer {
757
+ margin: 3rem -1.5rem -1.5rem;
758
+ padding: 1.25rem 1.5rem;
759
+ background: var(--gradient-h);
760
  text-align: center;
761
+ border-radius: 0 0 var(--radius) var(--radius);
762
  }
763
  .app-footer p {
764
  font-size: 0.78rem;
765
+ color: rgba(255,255,255,0.75);
766
  }
767
 
768
  /* ---- Utility ---- */
templates/index.html CHANGED
@@ -134,7 +134,7 @@
134
  <section id="view-dashboard" class="view">
135
  <nav class="nav">
136
  <div class="nav-brand">
137
- <svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="var(--accent)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z"/></svg>
138
  <span>SatDetect</span>
139
  </div>
140
  <div class="nav-user">
@@ -157,7 +157,7 @@
157
  <!-- New run card -->
158
  <div class="card">
159
  <div class="card-header">
160
- <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--accent)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" y1="3" x2="12" y2="15"/></svg>
161
  <h3>New Detection Run</h3>
162
  </div>
163
  <form id="form-detect">
@@ -215,7 +215,7 @@
215
  <!-- Result card (shown after a run) -->
216
  <div class="card hidden" id="result-card">
217
  <div class="card-header">
218
- <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--accent)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 11-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>
219
  <h3>Detection Result</h3>
220
  </div>
221
  <div class="result-stats" id="result-stats"></div>
@@ -258,7 +258,7 @@
258
  <!-- History -->
259
  <div class="card mt-2">
260
  <div class="card-header">
261
- <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--accent)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
262
  <h3>History</h3>
263
  </div>
264
  <div id="history-list" class="history-list"></div>
@@ -282,6 +282,6 @@
282
  </div>
283
  </div>
284
 
285
- <script src="/static/js/app.js?v=8"></script>
286
  </body>
287
  </html>
 
134
  <section id="view-dashboard" class="view">
135
  <nav class="nav">
136
  <div class="nav-brand">
137
+ <svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="var(--grad-start)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z"/></svg>
138
  <span>SatDetect</span>
139
  </div>
140
  <div class="nav-user">
 
157
  <!-- New run card -->
158
  <div class="card">
159
  <div class="card-header">
160
+ <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--grad-start)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" y1="3" x2="12" y2="15"/></svg>
161
  <h3>New Detection Run</h3>
162
  </div>
163
  <form id="form-detect">
 
215
  <!-- Result card (shown after a run) -->
216
  <div class="card hidden" id="result-card">
217
  <div class="card-header">
218
+ <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--grad-start)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 11-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>
219
  <h3>Detection Result</h3>
220
  </div>
221
  <div class="result-stats" id="result-stats"></div>
 
258
  <!-- History -->
259
  <div class="card mt-2">
260
  <div class="card-header">
261
+ <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--grad-start)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
262
  <h3>History</h3>
263
  </div>
264
  <div id="history-list" class="history-list"></div>
 
282
  </div>
283
  </div>
284
 
285
+ <script src="/static/js/app.js?v=9"></script>
286
  </body>
287
  </html>