-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathmy_ui_changes.patch
More file actions
3418 lines (3236 loc) · 233 KB
/
Copy pathmy_ui_changes.patch
File metadata and controls
3418 lines (3236 loc) · 233 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
diff --git a/Frontend/Analysis/analysis.css b/Frontend/Analysis/analysis.css
index 09a2c5a..db8acae 100644
--- a/Frontend/Analysis/analysis.css
+++ b/Frontend/Analysis/analysis.css
@@ -189,8 +189,12 @@ body::before {
}
.analysis-hero {
- padding: 28px 8px 0 6px;
- max-width: 960px;
+ display: grid;
+ grid-template-columns: 1.15fr 0.85fr;
+ gap: 40px;
+ align-items: center;
+ padding: 28px 8px 0 6px;
+ max-width: 1140px;
}
.eyebrow {
@@ -208,13 +212,72 @@ body::before {
}
.analysis-hero h1 {
- font-size: clamp(2.4rem, 5vw, 4.7rem);
- line-height: 0.98;
- letter-spacing: -0.04em;
- max-width: 10ch;
- color: #f8fafc;
+ font-size: clamp(2.2rem, 4vw, 4.2rem);
+ line-height: 1.1;
+ letter-spacing: -0.03em;
+ min-height: 3.3em;
}
+#hero-typing-text {
+ display: block;
+}
+
+.typewriter-cursor {
+ display: inline-block;
+ width: 4px;
+ height: 1em;
+ background-color: var(--accent);
+ margin-left: 4px;
+ vertical-align: middle;
+ animation: blink 1s step-end infinite;
+}
+
+@keyframes blink {
+ 0%, 100% { opacity: 1; }
+ 50% { opacity: 0; }
+}
+
+.hero-right {
+ position: relative;
+ width: 100%;
+ aspect-ratio: 16 / 9;
+ border-radius: 20px;
+ overflow: hidden;
+ box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
+ border: 1px solid rgba(255, 255, 255, 0.1);
+}
+
+.hero-image-carousel {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+}
+
+.carousel-img {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ opacity: 0;
+ transition: opacity 1.5s ease-in-out, transform 8s ease-out;
+ transform: scale(1.05);
+}
+
+.carousel-img.active {
+ opacity: 1;
+ transform: scale(1);
+}
+
+.carousel-overlay {
+ position: absolute;
+ inset: 0;
+ background:
+ linear-gradient(to top, var(--bg-0) 0%, rgba(2, 6, 23, 0.1) 60%);
+ pointer-events: none;
+ box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
+}
.analysis-hero p {
margin-top: 18px;
@@ -232,25 +295,25 @@ body::before {
}
.mini-stats div {
- padding: 18px 16px;
- border-radius: 18px;
- background: rgba(255, 255, 255, 0.06);
- border: 1px solid rgba(255, 255, 255, 0.1);
- backdrop-filter: blur(12px);
- cursor: pointer;
- transition: all 0.3s ease;
+ padding: 18px 16px;
+ border-radius: 18px;
+ background: rgba(255, 255, 255, 0.06);
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ backdrop-filter: blur(12px);
+ cursor: pointer;
+ transition: all 0.3s ease;
}
.mini-stats div:hover {
- transform: scale(1.03);
- box-shadow: 0 12px 28px rgba(56, 189, 248, 0.2);
+ transform: scale(1.03);
+ box-shadow: 0 12px 28px rgba(56, 189, 248, 0.2);
}
.mini-stats strong {
- display: block;
- font-size: 1.25rem;
- font-weight: 700;
- margin-bottom: 6px;
+ display: block;
+ font-size: 1.25rem;
+ font-weight: 700;
+ margin-bottom: 6px;
}
.mini-stats span {
@@ -279,7 +342,7 @@ body::before {
border-radius: 999px;
background: rgba(56, 189, 248, 0.12);
border: 1px solid rgba(56, 189, 248, 0.22);
- color: #0284c7;
+ color: #a5f3fc;
font-size: 0.8rem;
letter-spacing: 0.08em;
text-transform: uppercase;
@@ -303,25 +366,25 @@ body::before {
}
.analysis-intro-meta div {
- padding: 14px 16px;
- border-radius: 16px;
- background: rgba(255, 255, 255, 0.06);
- border: 1px solid rgba(255, 255, 255, 0.08);
- cursor: pointer;
- transition: all 0.3s ease;
+ padding: 14px 16px;
+ border-radius: 16px;
+ background: rgba(255, 255, 255, 0.06);
+ border: 1px solid rgba(255, 255, 255, 0.08);
+ cursor: pointer;
+ transition: all 0.3s ease;
}
.analysis-intro-meta div:hover {
- transform: scale(1.03);
- box-shadow: 0 12px 28px rgba(56, 189, 248, 0.2);
+ transform: scale(1.03);
+ box-shadow: 0 12px 28px rgba(56, 189, 248, 0.2);
}
.analysis-intro-meta strong {
- display: block;
- margin-bottom: 6px;
- color: #7dd3fc;
- font-size: 1.05rem;
- font-weight: 700;
+ display: block;
+ margin-bottom: 6px;
+ color: #7dd3fc;
+ font-size: 1.05rem;
+ font-weight: 700;
}
.analysis-intro-meta span {
@@ -600,16 +663,11 @@ button:hover {
.risk-card {
text-align: center;
- display: flex;
- flex-direction: column;
- align-items: center;
- min-width: 0;
}
-.risk-card > p:not(.risk-label):not(.risk-description) {
+.risk-card p {
font-size: 1.8rem;
font-weight: 800;
- margin: 0;
}
.flood {
@@ -626,7 +684,7 @@ button:hover {
padding: 20px;
border-radius: 18px;
line-height: 1.7;
- font-weight: 700;
+ font-weight: 600;
font-size: 0.98rem;
animation: fadeIn 0.35s ease;
}
@@ -654,7 +712,7 @@ button:hover {
.alert-danger {
background: rgba(239, 68, 68, 0.16);
- border: 1px solid rgba(230, 10, 10, 0.42);
+ border: 1px solid rgba(239, 68, 68, 0.42);
color: #fecaca;
}
@@ -665,8 +723,16 @@ button:hover {
}
.footer {
- margin-top: 30px;
+ margin-top: 22px;
+ padding: 22px 24px;
border-radius: 22px;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ background: rgba(2, 6, 23, 0.55);
+ backdrop-filter: blur(18px);
+ display: flex;
+ justify-content: space-between;
+ gap: 16px;
+ align-items: center;
box-shadow: var(--shadow);
}
@@ -858,9 +924,20 @@ button:hover {
align-items: flex-start;
}
- .analysis-hero h1 {
- max-width: 12ch;
- }
+ .analysis-hero {
+ grid-template-columns: 1fr;
+ }
+ .hero-right {
+ aspect-ratio: 16 / 9;
+ margin-top: 14px;
+ }
+ #hero-typing-text {
+ min-height: auto;
+ }
+
+ .analysis-hero h1 {
+ max-width: 12ch;
+ }
.analysis-intro {
grid-template-columns: 1fr;
@@ -946,12 +1023,10 @@ button:hover {
background: rgba(239, 68, 68, 0.15);
border: 1px solid rgba(239, 68, 68, 0.35);
color: #fecaca;
- font-weight: 700;
}
.clear-btn:hover {
- background: #fecaca;
- color: #b91c1c;
+ background: rgba(239, 68, 68, 0.25);
}
/* =========================================================
@@ -1033,8 +1108,8 @@ button:hover {
/* MULTI-RISK GRID (5 CARDS) */
.risk-grid-five {
display: grid;
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
- gap: 14px;
+ grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
+ gap: 12px;
margin-bottom: 22px;
}
@@ -1279,7 +1354,7 @@ button:hover {
}
.log-entry {
- background: rgba(255, 255, 255, 0.04);
+ background: rgba(255,255,255,0.04);
border-radius: 14px;
padding: 14px;
border-left: 4px solid;
@@ -1289,12 +1364,10 @@ button:hover {
transition: all 0.2s ease;
animation: fadeIn 0.25s ease;
}
-
.log-entry:hover {
transform: translateY(-2px);
- background: rgba(255, 255, 255, 0.07);
+ background: rgba(255,255,255,0.07);
}
-
.log-entry.success {
border-left-color: #22c55e;
color: #86efac;
@@ -1345,18 +1418,19 @@ button:hover {
font-weight: 700;
}
+
.badge-info {
- background: rgba(56, 189, 248, 0.15);
+ background: rgba(56,189,248,0.15);
color: #38bdf8;
}
.badge-warning {
- background: rgba(245, 158, 11, 0.15);
+ background: rgba(245,158,11,0.15);
color: #f59e0b;
}
.badge-critical {
- background: rgba(239, 68, 68, 0.15);
+ background: rgba(239,68,68,0.15);
color: #ef4444;
}
@@ -1390,7 +1464,7 @@ button:hover {
}
.demo-indicator.hidden {
- display: none !important;
+ display: none !important;
}
/* RESPONSIVE LAYOUT UPDATES */
@@ -1398,19 +1472,15 @@ button:hover {
.report-main-grid {
grid-template-columns: 1fr;
}
-
.map-card-wrapper {
min-height: 320px;
}
-
.forecast-cards-container {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
-
.charts-wrapper {
grid-template-columns: 1fr;
}
-
.alerts-center-section {
grid-template-columns: 1fr;
}
@@ -1420,11 +1490,9 @@ button:hover {
.forecast-cards-container {
grid-template-columns: 1fr;
}
-
.subscribe-inputs {
grid-template-columns: 1fr;
}
-
.risk-grid-five {
grid-template-columns: 1fr 1fr;
}
@@ -1450,229 +1518,77 @@ button:hover {
.contact-links a:hover {
opacity: 0.8;
}
-.recent-search-container {
- margin-top: 24px;
- width: 100%;
-}
-.recent-search-header {
- display: flex;
- align-items: center;
- gap: 12px;
- justify-content: flex-start;
-}
-
-.toggle-history-btn,
-.clear-history-btn {
- width: auto;
- min-width: 180px;
- padding: 12px 18px;
- border-radius: 12px;
- cursor: pointer;
- font-size: 14px;
- font-weight: 600;
-}
-
-.toggle-history-btn {
- background: rgba(255, 255, 255, 0.08);
- border: 1px solid rgba(255, 255, 255, 0.15);
- color: white;
-}
-
-.clear-history-btn {
- background: rgba(239, 68, 68, 0.15);
- border: 1px solid rgba(239, 68, 68, 0.35);
- color: #fecaca;
-}
-
-.hidden-history {
- display: none;
-}
-
-.show-history {
- display: block;
- margin-top: 16px;
-}
-#recent-search-list {
- display: flex;
- flex-wrap: wrap;
- gap: 10px;
-}
-
-.search-chip {
- padding: 10px 16px;
- border-radius: 999px;
- border: none;
- cursor: pointer;
- background: rgba(255, 255, 255, 0.12);
- color: white;
- font-size: 13px;
- transition: 0.3s ease;
-}
-
-.search-chip:hover {
- background: rgba(255, 255, 255, 0.22);
-}
+/* Theme Toggle & Light Mode for Analysis Page */
.theme-toggle {
width: 42px;
height: 42px;
- min-width: 42px;
- max-width: 42px;
-
- padding: 0;
- border: none;
-
border-radius: 50%;
-
+ border: none;
+ cursor: pointer;
+ font-size: 1.2rem;
+ background: var(--panel);
+ color: var(--text);
display: flex;
align-items: center;
justify-content: center;
-
- background: rgba(255, 255, 255, 0.08);
- color: white;
-
- font-size: 20px;
- cursor: pointer;
-
- transition: all 0.3s ease;
+ flex: 0 0 auto;
+ transition: transform 0.2s ease, background 0.2s ease;
}
-
.theme-toggle:hover {
- background: rgba(255, 255, 255, 0.15);
-}
-body.light-theme {
- background: #f8fafc;
- color: #0f172a;
-}
-
-body.light-theme .glass-card,
-body.light-theme .navbar,
-body.light-theme .result-card,
-body.light-theme .sidebar,
-body.light-theme .map-card {
- background: rgba(255, 255, 255, 0.9);
- color: #0f172a;
-}
-
-body.light-theme input {
- background: #ffffff;
- color: #0f172a;
- border-color: #cbd5e1;
-}
-
-body.light-theme label,
-body.light-theme h1,
-body.light-theme h2,
-body.light-theme h3,
-body.light-theme p {
- color: #0f172a;
-}
-
-body.light-theme .theme-toggle {
- background: #111827;
- color: #ffffff;
-}
-body.light-theme .toggle-history-btn {
- background: #e5e7eb;
- color: #111827;
- border: 1px solid #cbd5e1;
+ transform: scale(1.05);
}
-body.light-theme .clear-history-btn,
-body.light-theme .clear-btn {
- background: #fee2e2;
- color: #991b1b;
- border: 1px solid #fca5a5;
-}
+body.light-mode {
+ --bg-0: #f8fafc;
+ --bg-1: #edf2f7;
+ --bg-2: #dbeafe;
-body.light-theme .clear-history-btn:hover,
-body.light-theme .clear-btn:hover {
- background: #fecaca;
- color: #7f1d1d;
-}
-body.light-theme .eyebrow {
- background: #dbeafe;
- color: #075985;
- border: 1px solid #7dd3fc;
-}
-body.light-theme .alert-success,
-body.light-theme .success-message,
-body.light-theme .status-success,
-body.light-theme .alert-box.success {
- background: #beefcf;
- border: 1px solid #27c260;
- color: #166534 !important;
-}
+ --panel: rgba(255, 255, 255, 0.75);
+ --panel-strong: rgba(255, 255, 255, 0.9);
-body.light-theme .alert-success *,
-body.light-theme .success-message *,
-body.light-theme .status-success *,
-body.light-theme .alert-box.success *,
-body.light-theme .reults-kicker * {
- color: #166534 !important;
+ --text: #0f172a;
+ --muted: #334155;
+ --muted-2: #64748b;
}
-#scrollTopBtn,
-.scroll-top-btn {
- position: fixed !important;
- right: 31px !important;
- bottom: 96px !important;
-
- width: 52px !important;
- height: 52px !important;
- min-width: 52px !important;
- max-width: 52px !important;
- padding: 0 !important;
- margin: 0 !important;
- border-radius: 50% !important;
-
- display: none;
- align-items: center !important;
- justify-content: center !important;
-
- font-size: 22px !important;
- z-index: 9999;
+body.light-mode .navbar {
+ background: rgba(255, 255, 255, 0.35);
+ backdrop-filter: blur(20px);
+ border: 1px solid rgba(255, 255, 255, 0.4);
+}
+
+/* Light mode text visibility overrides */
+body.light-mode .section-title,
+body.light-mode .location-box p,
+body.light-mode .weather-box p,
+body.light-mode .risk-card p,
+body.light-mode .input-group input,
+body.light-mode .results-kicker,
+body.light-mode .status-pill,
+body.light-mode .eyebrow,
+body.light-mode .clear-btn,
+body.light-mode .log-message,
+body.light-mode .demo-indicator {
+ color: var(--text) !important;
}
-#chatbot-toggle,
-.chatbot-toggle,
-.chatbot-btn {
- position: fixed !important;
- right: 24px !important;
- bottom: 24px !important;
- width: 64px !important;
- height: 64px !important;
- min-width: 64px !important;
- max-width: 64px !important;
-
- border-radius: 50% !important;
- z-index: 9999;
-}
-body.light-theme #recent-search-list {
- background: transparent;
+body.light-mode .weather-box h3,
+body.light-mode .risk-card h3,
+body.light-mode .input-group input::placeholder {
+ color: var(--muted) !important;
}
-body.light-theme .search-chip {
- background: #e0f2fe;
- color: #075985;
- border: 1px solid #7dd3fc;
+body.light-mode .input-group input {
+ background: rgba(255, 255, 255, 0.8) !important;
+ border-color: rgba(0, 0, 0, 0.1) !important;
}
-body.light-theme .search-chip:hover {
- background: #bae6fd;
- color: #0c4a6e;
-}
-.forecast-primary-cause {
- margin-top: 10px;
- text-align: center;
- color: #fbbf24;
- font-weight: 700;
- font-size: 0.9rem;
+body.light-mode .location-box {
+ background: rgba(56, 189, 248, 0.2) !important;
+ border-color: rgba(56, 189, 248, 0.3) !important;
}
-.forecast-secondary-cause {
- margin-top: 4px;
- text-align: center;
- color: #fcd34d;
- font-size: 0.8rem;
+body.light-mode #alerts-box {
+ color: var(--text) !important;
}
diff --git a/Frontend/Analysis/analysis.html b/Frontend/Analysis/analysis.html
index 8c03c3b..ac76322 100644
--- a/Frontend/Analysis/analysis.html
+++ b/Frontend/Analysis/analysis.html
@@ -44,40 +44,51 @@
</a>
<div class="nav-links">
- <a href="../index.html">Home</a>
- <a href="#analysis-form">Analysis</a>
- <a href="#results">Results</a>
- </div>
+ <a href="../index.html">Home</a>
+ <a href="#analysis-form">Analysis</a>
+ <a href="#results">Results</a>
+</div>
- <button id="theme-toggle" class="theme-toggle">
- Γÿ╛
- </button>
+<button id="theme-toggle" class="theme-toggle">
+ Γÿ╛
+</button>
- <a class="nav-cta" href="#analysis-form">Analyze now</a>
+<a class="nav-cta" href="#analysis-form">Analyze now</a>
</nav>
<main class="analysis-layout">
<section class="analysis-hero">
- <span class="eyebrow">Weather analysis workspace</span>
- <h1>Check flood and heat risk for any location in seconds.</h1>
- <p>
- Enter a city, state, and country to pull live weather data, summarize risk,
- and surface alerts in a clean, readable format.
- </p>
-
- <div class="mini-stats">
- <div>
- <strong>Live</strong>
- <span>Weather fetch</span>
- </div>
- <div>
- <strong>Fast</strong>
- <span>Risk scoring</span>
+ <div class="analysis-hero-left">
+ <span class="eyebrow">Weather analysis workspace</span>
+ <h1 id="hero-typing-text"></h1>
+ <p>
+ Enter a city, state, and country to pull live weather data, summarize risk,
+ and surface alerts in a clean, readable format.
+ </p>
+
+ <div class="mini-stats">
+ <div>
+ <strong>Live</strong>
+ <span>weather fetch</span>
+ </div>
+ <div>
+ <strong>Fast</strong>
+ <span>risk scoring</span>
+ </div>
+ <div>
+ <strong>Clear</strong>
+ <span>alert feedback</span>
+ </div>
</div>
- <div>
- <strong>Clear</strong>
- <span>Alert feedback</span>
+ </div>
+
+ <div class="hero-right">
+ <div class="hero-image-carousel">
+ <img src="../images/weather_1.jpg" class="carousel-img active" alt="Safe City" />
+ <img src="../images/weather_2.jpg" class="carousel-img" alt="Heatwave Risk" />
+ <img src="../images/weather_3.jpg" class="carousel-img" alt="Flood Risk" />
+ <div class="carousel-overlay"></div>
</div>
</div>
</section>
@@ -137,16 +148,16 @@
<div class="button-group">
- <button id="analyze-btn" onclick="getWeatherData()">
- Analyze Climate Risk
- </button>
- <button type="button" onclick="useCurrentLocation()">
- Use Current Location
- </button>
+ <button id="analyze-btn" onclick="getWeatherData()">
+ Analyze Climate Risk
+ </button>
+ <button type="button" onclick="useCurrentLocation()">
+ Use Current Location
+ </button>
- <button class="clear-btn" onclick="clearResults()">
- 🗑 Clear All
- </button>
+ <button class="clear-btn" onclick="clearResults()">
+ Clear All
+ </button>
</div>
<div id="loading" class="loading hidden">
@@ -154,39 +165,27 @@
</div>
<div id="message-box" class="message-box hidden"></div>
- <div id="recent-search-container" class="recent-search-container">
- <div class="recent-search-header">
-
- <button id="toggle-history-btn" class="toggle-history-btn" type="button">
- Recent Searches Γû╝
- </button>
- <button id="clear-history-btn" class="clear-history-btn" type="button">
- 🗑 Clear History
- </button>
- </div>
- <div id="recent-search-wrapper" class="hidden-history">
- <div id="recent-search-list"></div>
- </div>
-</div>
</div>
- <div id="results" class="glass-card results-card hidden">
+ <div id="results" class="glass-card results-card is-visible">
<div class="results-header">
<div>
- <span class="results-kicker">Analysis complete</span>
- <h3 id="result-status">Ready to review location risk</h3>
+ <span class="results-kicker">Live Data</span>
+ <h3 id="result-status">Current Heat Scenario: India</h3>
<p id="result-summary">
- Your live weather snapshot and risk analysis will appear here after each search.
+ Showing default live temperature trends. Enter a location to analyze specific weather
+ risks.
</p>
</div>
<div class="status-pill" id="status-pill">
- Waiting for input
+ Live Status
</div>
</div>
+
<div class="location-box">
<h3>📌 Location Under Analysis</h3>
<p id="location"></p>
@@ -223,32 +222,22 @@
<div class="risk-card flood">
<h3>Flood Risk</h3>
<p id="flood-risk"></p>
- <p class="risk-label">--</p>
- <p class="risk-description">--</p>
</div>
<div class="risk-card heat">
<h3>Heat Risk</h3>
<p id="heat-risk"></p>
- <p class="risk-label">--</p>
- <p class="risk-description">--</p>
</div>
<div class="risk-card wildfire">
<h3>Wildfire Risk</h3>
<p id="wildfire-risk"></p>
- <p class="risk-label">--</p>
- <p class="risk-description">--</p>
</div>
<div class="risk-card cyclone">
<h3>Cyclone Risk</h3>
<p id="cyclone-risk"></p>
- <p class="risk-label">--</p>
- <p class="risk-description">--</p>
</div>
<div class="risk-card drought">
<h3>Drought Risk</h3>
<p id="drought-risk"></p>
- <p class="risk-label">--</p>
- <p class="risk-description">--</p>
</div>
</div>
</div>
@@ -261,10 +250,7 @@
</div>
</div>
-<div id="recommendations-panel" class="recommendations-panel hidden">
- <h3>🛡 Safety Recommendations</h3>
- <ul id="recommendations-list"></ul>
-</div>
+
<div id="alert-box" class="alert-box hidden"></div>
<!-- 5-Day Weather & Risk Forecast Section -->
@@ -361,135 +347,35 @@
</main>
- <footer id="contact" style="
- display: block !important;
- background: #1a2232 !important;
- padding: 0 !important;
- margin-top: 30px;
- border-radius: 22px;
- border: 1px solid rgba(255,255,255,0.07);
- ">
-
- <!-- main footer content -->
- <div style="padding: 44px 48px 36px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; align-items: start;">
-
- <!-- col 1: brand -->
- <div>
- <div style="display:flex; align-items:center; gap:10px; margin-bottom:16px;">
- <span style="font-size:28px; line-height:1;">🌍</span>
- <div>
- <div style="font-size:1.2rem; font-weight:800; color:#ffffff; letter-spacing:-0.01em; line-height:1;">Climate Shield</div>
- <div style="font-size:0.72rem; color:#64748b; letter-spacing:0.04em; margin-top:2px; text-transform:uppercase;">Climate Intelligence</div>
- </div>
- </div>
- <p style="font-size:0.8rem; color:#94a3b8; line-height:1.7; margin-bottom:20px; max-width:200px;">
- Real-time weather risk monitoring for flood and heatwave awareness.
- </p>
- <!-- phone-style contact -->
- <div style="font-size:0.95rem; font-weight:700; color:#38bdf8; margin-bottom:14px; letter-spacing:0.01em;">
- Protecting communities with fast, simple climate risk visibility.
+ <footer class="footer">
+ <div>
+ <strong>Climate Shield</strong>
+ <p>Focused weather analysis with a cleaner, faster interface.</p>
</div>
- <!-- social icons row -->
- <div style="display:flex; gap:7px;">
- <a href="https://github.com/thetechguardians/Climate-Shield" target="_blank" rel="noopener"
- style="width:30px;height:30px;border-radius:4px;background:#38bdf8;display:flex;align-items:center;justify-content:center;text-decoration:none;"
- onmouseover="this.style.background='#0ea5e9'" onmouseout="this.style.background='#38bdf8'">
- <svg width="14" height="14" fill="white" viewBox="0 0 24 24"><path d="M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2c-3.3.7-4-1.6-4-1.6-.6-1.4-1.4-1.8-1.4-1.8-1-.7.1-.7.1-.7 1.2.1 1.8 1.2 1.8 1.2 1 1.8 2.8 1.3 3.5 1 .1-.8.4-1.3.7-1.6-2.7-.3-5.5-1.3-5.5-5.9 0-1.3.5-2.4 1.2-3.2 0-.4-.5-1.6.2-3.2 0 0 1-.3 3.3 1.2a11.5 11.5 0 0 1 6 0C17 4.7 18 5 18 5c.7 1.6.2 2.8.1 3.2.8.8 1.2 1.9 1.2 3.2 0 4.6-2.8 5.6-5.5 5.9.5.4.9 1.2.9 2.3v3.3c0 .3.2.7.8.6A12 12 0 0 0 12 .3"/></svg>
- </a>
- <a href="https://github.com/thetechguardians/Climate-Shield/issues" target="_blank" rel="noopener"
- style="width:30px;height:30px;border-radius:4px;background:#0f766e;display:flex;align-items:center;justify-content:center;text-decoration:none;"
- onmouseover="this.style.background='#0d9488'" onmouseout="this.style.background='#0f766e'">
- <svg width="14" height="14" fill="none" stroke="white" stroke-width="2.2" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>
- </a>
- <a href="https://github.com/thetechguardians/Climate-Shield/discussions" target="_blank" rel="noopener"
- style="width:30px;height:30px;border-radius:4px;background:#334155;display:flex;align-items:center;justify-content:center;text-decoration:none;"
- onmouseover="this.style.background='#475569'" onmouseout="this.style.background='#334155'">
- <svg width="14" height="14" fill="none" stroke="white" stroke-width="2.2" viewBox="0 0 24 24"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
- </a>
- </div>
- </div>
-
- <!-- col 2: navigate -->
- <div>
- <p style="font-size:0.78rem;font-weight:700;color:#ffffff;text-transform:uppercase;letter-spacing:0.08em;margin-bottom:16px;padding-bottom:10px;border-bottom:2px solid #38bdf8;display:inline-block;">Navigate</p>
- <div style="display:flex;flex-direction:column;gap:9px;">
- <a href="../index.html" style="font-size:0.8rem;color:#94a3b8;text-decoration:none;display:flex;align-items:center;gap:7px;transition:color 0.2s;" onmouseover="this.style.color='#38bdf8'" onmouseout="this.style.color='#94a3b8'"><span style="width:5px;height:1.5px;background:#38bdf8;display:inline-block;flex-shrink:0;"></span>Home</a>
- <a href="../index.html#features" style="font-size:0.8rem;color:#94a3b8;text-decoration:none;display:flex;align-items:center;gap:7px;" onmouseover="this.style.color='#38bdf8'" onmouseout="this.style.color='#94a3b8'"><span style="width:5px;height:1.5px;background:#38bdf8;display:inline-block;flex-shrink:0;"></span>Features</a>
- <a href="#chatbot-panel" style="font-size:0.8rem;color:#94a3b8;text-decoration:none;display:flex;align-items:center;gap:7px;" onmouseover="this.style.color='#38bdf8'" onmouseout="this.style.color='#94a3b8'"><span style="width:5px;height:1.5px;background:#38bdf8;display:inline-block;flex-shrink:0;"></span>Climate Bot</a>
- </div>
- </div>
-
- <!-- col 3: resources -->
- <div>
- <p style="font-size:0.78rem;font-weight:700;color:#ffffff;text-transform:uppercase;letter-spacing:0.08em;margin-bottom:16px;padding-bottom:10px;border-bottom:2px solid #38bdf8;display:inline-block;">Resources</p>
- <div style="display:flex;flex-direction:column;gap:9px;">
-
- <a href="https://github.com/thetechguardians/Climate-Shield/issues" target="_blank" rel="noopener"
- style="font-size:0.8rem;color:#94a3b8;text-decoration:none;display:flex;align-items:center;gap:7px;" onmouseover="this.style.color='#38bdf8'" onmouseout="this.style.color='#94a3b8'"><span style="width:5px;height:1.5px;background:#38bdf8;display:inline-block;flex-shrink:0;"></span>Report an Issue</a>
- <a href="https://github.com/thetechguardians/Climate-Shield/discussions" target="_blank" rel="noopener"
- style="font-size:0.8rem;color:#94a3b8;text-decoration:none;display:flex;align-items:center;gap:7px;" onmouseover="this.style.color='#38bdf8'" onmouseout="this.style.color='#94a3b8'"><span style="width:5px;height:1.5px;background:#38bdf8;display:inline-block;flex-shrink:0;"></span>Discussions</a>
- <a href="https://github.com/thetechguardians/Climate-Shield/blob/main/CONTRIBUTING.md" target="_blank" rel="noopener"
- style="font-size:0.8rem;color:#94a3b8;text-decoration:none;display:flex;align-items:center;gap:7px;" onmouseover="this.style.color='#38bdf8'" onmouseout="this.style.color='#94a3b8'"><span style="width:5px;height:1.5px;background:#38bdf8;display:inline-block;flex-shrink:0;"></span>Contributing</a>
- <a href="https://github.com/thetechguardians/Climate-Shield/blob/main/README.md" target="_blank" rel="noopener"
- style="font-size:0.8rem;color:#94a3b8;text-decoration:none;display:flex;align-items:center;gap:7px;" onmouseover="this.style.color='#38bdf8'" onmouseout="this.style.color='#94a3b8'"><span style="width:5px;height:1.5px;background:#38bdf8;display:inline-block;flex-shrink:0;"></span>Documentation</a>
- </div>
- </div>
-
-
-
- <!-- col 4: Community -->
- <div>
- <p style="font-size:0.78rem;font-weight:700;color:#ffffff;text-transform:uppercase;letter-spacing:0.08em;margin-bottom:16px;padding-bottom:10px;border-bottom:2px solid #38bdf8;display:inline-block;">Community</p>
- <div style="display:flex;flex-direction:column;gap:9px;">
-
- <a href="https://github.com/thetechguardians/Climate-Shield/graphs/contributors" style="font-size:0.8rem;color:#94a3b8;text-decoration:none;display:flex;align-items:center;gap:7px;" onmouseover="this.style.color='#38bdf8'" onmouseout="this.style.color='#94a3b8'"><span style="width:5px;height:1.5px;background:#38bdf8;display:inline-block;flex-shrink:0;"></span>Contributors</a>
- <a href="https://github.com/thetechguardians/Climate-Shield" target="_blank" rel="noopener"
- style="font-size:0.8rem;color:#94a3b8;text-decoration:none;display:flex;align-items:center;gap:7px;" onmouseover="this.style.color='#38bdf8'" onmouseout="this.style.color='#94a3b8'"><span style="width:5px;height:1.5px;background:#38bdf8;display:inline-block;flex-shrink:0;"></span>GitHub Repository</a>
- <a href="https://github.com/thetechguardians/Climate-Shield/blob/main/LICENSE" target="_blank" rel="noopener"
- style="font-size:0.8rem;color:#94a3b8;text-decoration:none;display:flex;align-items:center;gap:7px;" onmouseover="this.style.color='#38bdf8'" onmouseout="this.style.color='#94a3b8'"><span style="width:5px;height:1.5px;background:#38bdf8;display:inline-block;flex-shrink:0;"></span>MIT License</a>
+ <div class="footer-links">
+ <a href="../index.html">Home</a>
+ <a href="#analysis-form">Analysis</a>
+ <a href="#results">Results</a>
</div>
- </div>
-
- </div><!-- /main grid -->
-
- <!-- copyright bar ΓÇö darker strip like IQMS -->
- <div style="background:#111827; border-top:1px solid rgba(255,255,255,0.06); padding:14px 48px; display:flex; align-items:center; justify-content:center; border-radius:0 0 22px 22px;">
- <p style="font-size:0.75rem; color:#475569; margin:0; text-align:center;">
- © 2025 <strong style="color:#64748b; font-weight:600;">Climate Shield</strong>
- · MIT License
- · SSoC 2026
- · Made with ♥ by The Tech Guardians
- </p>
- </div>
-
- <!-- responsive styles -->
- <style>
- @media (max-width: 1024px) {
- #contact > div:first-of-type {
- grid-template-columns: 1fr 1fr 1fr !important;
- }
- }
- @media (max-width: 700px) {
- #contact > div:first-of-type {
- grid-template-columns: 1fr 1fr !important;
- padding: 32px 24px 28px !important;
- }
- #contact > div:last-of-type {
- padding-left: 24px !important;
- padding-right: 24px !important;
- }
- }
- @media (max-width: 480px) {
- #contact > div:first-of-type {
- grid-template-columns: 1fr !important;
- }
- }
- </style>
-
- </footer>
+ <div class="contact-section">
+ <strong>Contact & Support</strong>
+ <div class="contact-links">
+ <a href="https://github.com/thetechguardians/Climate-Shield" target="_blank">
+ GitHub Repository
+ </a>