Jobanjps commited on
Commit
0bb2ef2
·
verified ·
1 Parent(s): 5097fc1

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +189 -36
templates/index.html CHANGED
@@ -13,19 +13,113 @@
13
 
14
  body {
15
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
16
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
17
  min-height: 100vh;
18
  display: flex;
19
  justify-content: center;
20
  align-items: center;
21
  padding: 20px;
22
- animation: backgroundShift 10s ease-in-out infinite;
23
  position: relative;
 
24
  }
25
 
26
- @keyframes backgroundShift {
27
- 0%, 100% { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
28
- 50% { background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  }
30
 
31
  .developer-info {
@@ -152,25 +246,79 @@
152
  }
153
 
154
  .container {
155
- background: rgba(255, 255, 255, 0.95);
156
- backdrop-filter: blur(10px);
157
  padding: 40px;
158
- border-radius: 20px;
159
- box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(255,255,255,0.1);
 
 
 
160
  width: 100%;
161
  max-width: 450px;
162
  text-align: center;
163
  animation: containerFloat 6s ease-in-out infinite;
164
  transform: translateY(0);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  }
166
 
167
  @keyframes containerFloat {
168
- 0%, 100% { transform: translateY(0px) scale(1); }
169
- 50% { transform: translateY(-5px) scale(1.01); }
 
 
 
 
 
 
 
 
 
 
 
 
170
  }
171
 
172
  .header {
173
  margin-bottom: 30px;
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  }
175
 
176
  h1 {
@@ -213,7 +361,8 @@
213
  border-radius: 12px;
214
  font-size: 16px;
215
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
216
- background: #ffffff;
 
217
  outline: none;
218
  position: relative;
219
  }
@@ -222,6 +371,7 @@
222
  border-color: #667eea;
223
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
224
  transform: translateY(-2px);
 
225
  }
226
 
227
  input[type="number"]::placeholder {
@@ -241,6 +391,7 @@
241
  transform: translateY(-50%);
242
  color: #a0aec0;
243
  transition: all 0.3s ease;
 
244
  }
245
 
246
  input[type="number"]:focus + .input-icon {
@@ -276,7 +427,7 @@
276
  }
277
 
278
  .predict-btn:hover {
279
- transform: translateY(-2px);
280
  box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
281
  }
282
 
@@ -403,12 +554,14 @@
403
  }
404
 
405
  .result-card {
406
- background: linear-gradient(135deg, #f7fafc, #edf2f7);
 
407
  border-radius: 16px;
408
  padding: 25px;
409
- border: 1px solid #e2e8f0;
410
  position: relative;
411
  overflow: hidden;
 
412
  }
413
 
414
  .result-card::before {
@@ -418,13 +571,8 @@
418
  left: -50%;
419
  width: 200%;
420
  height: 200%;
421
- background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.1), transparent);
422
- animation: rotate 4s linear infinite;
423
- }
424
-
425
- @keyframes rotate {
426
- 0% { transform: rotate(0deg); }
427
- 100% { transform: rotate(360deg); }
428
  }
429
 
430
  .result-content {
@@ -497,6 +645,10 @@
497
  margin-bottom: 20px;
498
  max-width: 100%;
499
  }
 
 
 
 
500
  }
501
 
502
  @media (max-width: 768px) {
@@ -537,7 +689,7 @@
537
  .copyright {
538
  margin-top: 25px;
539
  padding-top: 20px;
540
- border-top: 1px solid #e2e8f0;
541
  color: #718096;
542
  font-size: 12px;
543
  font-weight: 500;
@@ -549,12 +701,12 @@
549
  bottom: 20px;
550
  left: 20px;
551
  background: rgba(255, 255, 255, 0.95);
552
- backdrop-filter: blur(10px);
553
- border-radius: 12px;
554
  padding: 15px;
555
  max-width: 280px;
556
- box-shadow: 0 10px 25px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.1);
557
- border: 1px solid #e2e8f0;
558
  animation: slideInLeft 0.8s ease-out 1s both;
559
  z-index: 1000;
560
  }
@@ -626,10 +778,6 @@
626
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
627
  }
628
 
629
- .close-btn:active {
630
- transform: scale(1.05);
631
- }
632
-
633
  .close-btn:active {
634
  transform: scale(0.95);
635
  }
@@ -647,14 +795,18 @@
647
  pointer-events: none;
648
  transition: all 0.5s ease !important;
649
  }
650
-
651
- .developer-header-title {
652
- flex: 1;
653
- text-align: center;
654
- }
655
  </style>
656
  </head>
657
  <body>
 
 
 
 
 
 
 
 
 
658
  <!-- Developer Information Panel -->
659
  <div class="developer-info" id="developerInfo">
660
  <div class="developer-header">
@@ -682,6 +834,7 @@
682
 
683
  <div class="container">
684
  <div class="header">
 
685
  <h1>Mental Wellness Predictor</h1>
686
  <p class="subtitle">Analyze your digital habits for wellness insights</p>
687
  </div>
 
13
 
14
  body {
15
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
16
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
17
  min-height: 100vh;
18
  display: flex;
19
  justify-content: center;
20
  align-items: center;
21
  padding: 20px;
 
22
  position: relative;
23
+ overflow-x: hidden;
24
  }
25
 
26
+ /* Animated background with floating shapes */
27
+ body::before {
28
+ content: '';
29
+ position: fixed;
30
+ top: 0;
31
+ left: 0;
32
+ width: 100%;
33
+ height: 100%;
34
+ background:
35
+ radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 70%),
36
+ radial-gradient(circle at 75% 75%, rgba(255,255,255,0.08) 0%, transparent 70%),
37
+ radial-gradient(circle at 50% 50%, rgba(102,126,234,0.1) 0%, transparent 60%);
38
+ animation: backgroundPulse 8s ease-in-out infinite;
39
+ z-index: -1;
40
+ }
41
+
42
+ @keyframes backgroundPulse {
43
+ 0%, 100% {
44
+ background:
45
+ radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 70%),
46
+ radial-gradient(circle at 75% 75%, rgba(255,255,255,0.08) 0%, transparent 70%),
47
+ radial-gradient(circle at 50% 50%, rgba(102,126,234,0.1) 0%, transparent 60%);
48
+ }
49
+ 50% {
50
+ background:
51
+ radial-gradient(circle at 75% 25%, rgba(255,255,255,0.12) 0%, transparent 70%),
52
+ radial-gradient(circle at 25% 75%, rgba(255,255,255,0.1) 0%, transparent 70%),
53
+ radial-gradient(circle at 50% 50%, rgba(118,75,162,0.1) 0%, transparent 60%);
54
+ }
55
+ }
56
+
57
+ /* Floating decorative elements */
58
+ .floating-elements {
59
+ position: fixed;
60
+ top: 0;
61
+ left: 0;
62
+ width: 100%;
63
+ height: 100%;
64
+ pointer-events: none;
65
+ z-index: -1;
66
+ }
67
+
68
+ .floating-shape {
69
+ position: absolute;
70
+ opacity: 0.6;
71
+ animation: float 6s ease-in-out infinite;
72
+ }
73
+
74
+ .shape-1 {
75
+ top: 20%;
76
+ left: 10%;
77
+ font-size: 60px;
78
+ animation-delay: 0s;
79
+ animation-duration: 8s;
80
+ }
81
+
82
+ .shape-2 {
83
+ top: 60%;
84
+ right: 15%;
85
+ font-size: 45px;
86
+ animation-delay: 2s;
87
+ animation-duration: 7s;
88
+ }
89
+
90
+ .shape-3 {
91
+ top: 80%;
92
+ left: 20%;
93
+ font-size: 50px;
94
+ animation-delay: 4s;
95
+ animation-duration: 9s;
96
+ }
97
+
98
+ .shape-4 {
99
+ top: 15%;
100
+ right: 25%;
101
+ font-size: 40px;
102
+ animation-delay: 1s;
103
+ animation-duration: 6s;
104
+ }
105
+
106
+ .shape-5 {
107
+ top: 45%;
108
+ left: 5%;
109
+ font-size: 35px;
110
+ animation-delay: 3s;
111
+ animation-duration: 8s;
112
+ }
113
+
114
+ @keyframes float {
115
+ 0%, 100% {
116
+ transform: translateY(0px) rotate(0deg);
117
+ opacity: 0.6;
118
+ }
119
+ 50% {
120
+ transform: translateY(-20px) rotate(180deg);
121
+ opacity: 0.8;
122
+ }
123
  }
124
 
125
  .developer-info {
 
246
  }
247
 
248
  .container {
249
+ background: rgba(255, 255, 255, 0.98);
250
+ backdrop-filter: blur(20px);
251
  padding: 40px;
252
+ border-radius: 24px;
253
+ box-shadow:
254
+ 0 25px 50px rgba(0,0,0,0.15),
255
+ 0 0 0 1px rgba(255,255,255,0.2),
256
+ inset 0 1px 0 rgba(255,255,255,0.3);
257
  width: 100%;
258
  max-width: 450px;
259
  text-align: center;
260
  animation: containerFloat 6s ease-in-out infinite;
261
  transform: translateY(0);
262
+ position: relative;
263
+ overflow: hidden;
264
+ }
265
+
266
+ .container::before {
267
+ content: '';
268
+ position: absolute;
269
+ top: -50%;
270
+ left: -50%;
271
+ width: 200%;
272
+ height: 200%;
273
+ background: conic-gradient(
274
+ from 0deg at 50% 50%,
275
+ transparent 0deg,
276
+ rgba(102, 126, 234, 0.03) 90deg,
277
+ transparent 180deg,
278
+ rgba(118, 75, 162, 0.03) 270deg,
279
+ transparent 360deg
280
+ );
281
+ animation: rotate 20s linear infinite;
282
+ z-index: -1;
283
+ }
284
+
285
+ @keyframes rotate {
286
+ 0% { transform: rotate(0deg); }
287
+ 100% { transform: rotate(360deg); }
288
  }
289
 
290
  @keyframes containerFloat {
291
+ 0%, 100% {
292
+ transform: translateY(0px) scale(1);
293
+ box-shadow:
294
+ 0 25px 50px rgba(0,0,0,0.15),
295
+ 0 0 0 1px rgba(255,255,255,0.2),
296
+ inset 0 1px 0 rgba(255,255,255,0.3);
297
+ }
298
+ 50% {
299
+ transform: translateY(-8px) scale(1.01);
300
+ box-shadow:
301
+ 0 35px 70px rgba(0,0,0,0.2),
302
+ 0 0 0 1px rgba(255,255,255,0.3),
303
+ inset 0 1px 0 rgba(255,255,255,0.4);
304
+ }
305
  }
306
 
307
  .header {
308
  margin-bottom: 30px;
309
+ position: relative;
310
+ }
311
+
312
+ .header-icon {
313
+ font-size: 48px;
314
+ margin-bottom: 15px;
315
+ animation: headerIconFloat 4s ease-in-out infinite;
316
+ filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
317
+ }
318
+
319
+ @keyframes headerIconFloat {
320
+ 0%, 100% { transform: translateY(0px) rotate(0deg); }
321
+ 50% { transform: translateY(-5px) rotate(5deg); }
322
  }
323
 
324
  h1 {
 
361
  border-radius: 12px;
362
  font-size: 16px;
363
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
364
+ background: rgba(255, 255, 255, 0.9);
365
+ backdrop-filter: blur(5px);
366
  outline: none;
367
  position: relative;
368
  }
 
371
  border-color: #667eea;
372
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
373
  transform: translateY(-2px);
374
+ background: rgba(255, 255, 255, 1);
375
  }
376
 
377
  input[type="number"]::placeholder {
 
391
  transform: translateY(-50%);
392
  color: #a0aec0;
393
  transition: all 0.3s ease;
394
+ font-size: 18px;
395
  }
396
 
397
  input[type="number"]:focus + .input-icon {
 
427
  }
428
 
429
  .predict-btn:hover {
430
+ transform: translateY(-3px);
431
  box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
432
  }
433
 
 
554
  }
555
 
556
  .result-card {
557
+ background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(247,250,252,0.9));
558
+ backdrop-filter: blur(10px);
559
  border-radius: 16px;
560
  padding: 25px;
561
+ border: 1px solid rgba(226,232,240,0.5);
562
  position: relative;
563
  overflow: hidden;
564
+ box-shadow: 0 8px 25px rgba(0,0,0,0.08);
565
  }
566
 
567
  .result-card::before {
 
571
  left: -50%;
572
  width: 200%;
573
  height: 200%;
574
+ background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.05), transparent);
575
+ animation: rotate 8s linear infinite;
 
 
 
 
 
576
  }
577
 
578
  .result-content {
 
645
  margin-bottom: 20px;
646
  max-width: 100%;
647
  }
648
+
649
+ .floating-shape {
650
+ font-size: 30px !important;
651
+ }
652
  }
653
 
654
  @media (max-width: 768px) {
 
689
  .copyright {
690
  margin-top: 25px;
691
  padding-top: 20px;
692
+ border-top: 1px solid rgba(226,232,240,0.5);
693
  color: #718096;
694
  font-size: 12px;
695
  font-weight: 500;
 
701
  bottom: 20px;
702
  left: 20px;
703
  background: rgba(255, 255, 255, 0.95);
704
+ backdrop-filter: blur(15px);
705
+ border-radius: 16px;
706
  padding: 15px;
707
  max-width: 280px;
708
+ box-shadow: 0 15px 35px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.1);
709
+ border: 1px solid rgba(226,232,240,0.3);
710
  animation: slideInLeft 0.8s ease-out 1s both;
711
  z-index: 1000;
712
  }
 
778
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
779
  }
780
 
 
 
 
 
781
  .close-btn:active {
782
  transform: scale(0.95);
783
  }
 
795
  pointer-events: none;
796
  transition: all 0.5s ease !important;
797
  }
 
 
 
 
 
798
  </style>
799
  </head>
800
  <body>
801
+ <!-- Floating decorative elements -->
802
+ <div class="floating-elements">
803
+ <div class="floating-shape shape-1">🧠</div>
804
+ <div class="floating-shape shape-2">💚</div>
805
+ <div class="floating-shape shape-3">⭐</div>
806
+ <div class="floating-shape shape-4">🌟</div>
807
+ <div class="floating-shape shape-5">✨</div>
808
+ </div>
809
+
810
  <!-- Developer Information Panel -->
811
  <div class="developer-info" id="developerInfo">
812
  <div class="developer-header">
 
834
 
835
  <div class="container">
836
  <div class="header">
837
+ <div class="header-icon">🧠💡</div>
838
  <h1>Mental Wellness Predictor</h1>
839
  <p class="subtitle">Analyze your digital habits for wellness insights</p>
840
  </div>