gvlktejaswi commited on
Commit
3540ffa
·
verified ·
1 Parent(s): 3d71ac3

Update page_files/Home.py

Browse files
Files changed (1) hide show
  1. page_files/Home.py +30 -0
page_files/Home.py CHANGED
@@ -79,17 +79,24 @@ st.markdown("""
79
  st.markdown("""
80
  <style>
81
  @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');
 
82
  /* Hide default Streamlit chrome */
83
  .block-container { padding: 0 !important; max-width: 100% !important; background: #fff !important;}
84
  [data-testid="stToolbar"],
85
  [data-testid="stDecoration"],
86
  [data-testid="stHeader"] { display: none !important; }
 
 
 
 
 
87
  /* ── Search row ── */
88
  /* Only target the search bar's horizontal block, not all columns */
89
  .st-emotion-cache-y1l7l5 .st-emotion-cache-1permvm {
90
  gap: 0 !important;
91
  align-items: stretch !important;
92
  }
 
93
  .st-emotion-cache-16s2yzk button {
94
  background: #f2f6f4 !important;
95
  border: 1.5px solid #d0d8d4 !important;
@@ -104,6 +111,7 @@ st.markdown("""
104
  white-space: nowrap !important;
105
  box-shadow: none !important;
106
  }
 
107
  .st-emotion-cache-4dubyl [data-baseweb="input"] {
108
  background: #000 !important;
109
  height: 46px !important;
@@ -125,7 +133,9 @@ st.markdown("""
125
  box-shadow: none !important;
126
  padding-left: 18px !important;
127
  }
 
128
  .st-emotion-cache-4dubyl > div {
 
129
  height: 46px !important;
130
  }
131
  .st-emotion-cache-4dubyl input::placeholder {
@@ -145,6 +155,7 @@ st.markdown("""
145
  padding: 0 28px !important;
146
  box-shadow: none !important;
147
  }
 
148
  .st-key-view_all_btn button {
149
  background: transparent !important;
150
  border: none !important;
@@ -172,6 +183,7 @@ st.markdown("""
172
  margin-bottom: 14px;
173
  font-family: 'DM Sans', sans-serif;
174
  }
 
175
  </style>
176
  """, unsafe_allow_html=True)
177
 
@@ -248,6 +260,7 @@ components.html(f"""
248
  <style>
249
  *, *::before, *::after {{ box-sizing: border-box; margin: 0; padding: 0; }}
250
  body {{ font-family: 'DM Sans', sans-serif; background: #f7f7f5; color: #1a2e26; overflow-x: hidden; }}
 
251
  /* ANIMATION SECTION */
252
  .anim-section {{
253
  background: #000;
@@ -263,6 +276,7 @@ body {{ font-family: 'DM Sans', sans-serif; background: #f7f7f5; color: #1a2e26;
263
  display: flex; align-items: center;
264
  justify-content: space-between; padding: 0 40px;
265
  }}
 
266
  /* MAG GLASS */
267
  .mag-wrap {{ position: relative; width: 100px; display: flex; flex-direction: column; align-items: center; }}
268
  .mag-label {{ font-size: 0.65rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #4a7a6a; margin-bottom: 10px; }}
@@ -273,6 +287,7 @@ body {{ font-family: 'DM Sans', sans-serif; background: #f7f7f5; color: #1a2e26;
273
  .mag-scan {{ opacity: 0; transition: opacity 0.3s ease 0.8s; }}
274
  .mag-wrap.active .mag-scan {{ opacity: 1; animation: scanMove 1.2s ease-in-out infinite 0.8s; }}
275
  @keyframes scanMove {{ 0% {{ transform:translateY(-14px);opacity:.8; }} 50% {{ transform:translateY(0);opacity:1; }} 100% {{ transform:translateY(14px);opacity:.8; }} }}
 
276
  /* BUBBLES */
277
  .bubble {{ position:absolute; border-radius:50%; background:radial-gradient(circle at 35% 35%,rgba(255,255,255,.6),rgba(80,160,255,.25)); border:1px solid rgba(100,180,255,.4); opacity:0; pointer-events:none; backdrop-filter:blur(2px); }}
278
  .b1 {{ width:18px;height:18px;left:108px;bottom:155px; }}
@@ -293,6 +308,7 @@ body {{ font-family: 'DM Sans', sans-serif; background: #f7f7f5; color: #1a2e26;
293
  @keyframes floatBubble4 {{ 0% {{ opacity:0;transform:translate(0,0) scale(.3); }} 20% {{ opacity:1;transform:translate(-8px,-35px) scale(1); }} 65% {{ opacity:.8;transform:translate(105px,-80px) scale(.8); }} 88% {{ opacity:.3;transform:translate(255px,-50px) scale(.4); }} 100% {{ opacity:0;transform:translate(320px,-20px) scale(.1); }} }}
294
  @keyframes floatBubble5 {{ 0% {{ opacity:0;transform:translate(0,0) scale(.4); }} 15% {{ opacity:1;transform:translate(3px,-22px) scale(1); }} 58% {{ opacity:.9;transform:translate(115px,-60px) scale(.88); }} 83% {{ opacity:.45;transform:translate(270px,-35px) scale(.55); }} 100% {{ opacity:0;transform:translate(335px,-12px) scale(.2); }} }}
295
  @keyframes floatBubble6 {{ 0% {{ opacity:0;transform:translate(0,0) scale(.25); }} 20% {{ opacity:1;transform:translate(-3px,-40px) scale(1); }} 62% {{ opacity:.7;transform:translate(100px,-85px) scale(.75); }} 85% {{ opacity:.25;transform:translate(250px,-55px) scale(.35); }} 100% {{ opacity:0;transform:translate(318px,-22px) scale(.1); }} }}
 
296
  /* DATABASE */
297
  .db-wrap {{ position:relative;width:130px;display:flex;flex-direction:column;align-items:center; }}
298
  .db-label {{ font-size:.65rem;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:#4a7a6a;margin-bottom:10px; }}
@@ -301,6 +317,7 @@ body {{ font-family: 'DM Sans', sans-serif; background: #f7f7f5; color: #1a2e26;
301
  .anim-stage.active .cyl-right {{ opacity:1;transition-delay:2.2s; }}
302
  .anim-stage.active .cyl-front {{ opacity:1;transition-delay:2.4s;animation:frontPulse 2.4s ease-in-out infinite 2.8s; }}
303
  @keyframes frontPulse {{ 0%,100% {{ filter:brightness(1); }} 50% {{ filter:brightness(1.2); }} }}
 
304
  /* CAPTION */
305
  .anim-caption {{ margin-top:48px;display:flex;gap:40px;align-items:center; }}
306
  .anim-step {{ display:flex;align-items:center;gap:10px;opacity:0;transform:translateY(10px);transition:opacity .5s ease,transform .5s ease; }}
@@ -310,6 +327,7 @@ body {{ font-family: 'DM Sans', sans-serif; background: #f7f7f5; color: #1a2e26;
310
  .step-text {{ font-size:.78rem;color:#5a8a7a;font-weight:500; }}
311
  </style>
312
  </head><body>
 
313
  <section class="anim-section">
314
  <h2 class="anim-title">From Experiment to Database</h2>
315
  <div class="anim-stage" id="animStage">
@@ -401,6 +419,7 @@ body {{ font-family: 'DM Sans', sans-serif; background: #f7f7f5; color: #1a2e26;
401
  <div class="anim-step"><span class="step-text">Stored in AIM</span></div>
402
  </div>
403
  </section>
 
404
  <script>
405
  const stage = document.getElementById('animStage');
406
  const magWrap = document.getElementById('magWrap');
@@ -620,6 +639,7 @@ components.html(f"""
620
  <style>
621
  *, *::before, *::after {{ box-sizing: border-box; margin: 0; padding: 0; }}
622
  body {{ font-family: 'DM Sans', sans-serif; color: #1a2e26; }}
 
623
  .aim-about {{ background: #fff; padding: 60px; border-bottom: 1px solid #e8e8e4; }}
624
  .aim-about h2 {{ font-size: 1.65rem; font-weight: 700; color: #0f1f1a; letter-spacing: -0.5px; margin-bottom: 8px; }}
625
  .aim-about-sub {{ color: #6a7e77; font-size: 0.9rem; margin-bottom: 30px; }}
@@ -632,11 +652,13 @@ body {{ font-family: 'DM Sans', sans-serif; color: #1a2e26; }}
632
  display: flex; align-items: center; justify-content: center;
633
  color: #7a9e8f; font-size: 0.85rem; border: 1.5px dashed #c8d6d0;
634
  }}
 
635
  .aim-footer {{ background: #fff; border-top: 1px solid #e8e8e4; padding: 50px 60px 28px; }}
636
  .aim-footer-brand {{ display: flex; align-items: center; gap: 8px; font-weight: 700; color: #0f1f1a; font-size: 0.95rem; margin-bottom: 10px; }}
637
  .aim-footer-desc {{ font-size: 0.82rem; color: #7a8e87; line-height: 1.6; }}
638
  </style>
639
  </head><body>
 
640
  <section class="aim-about">
641
  <h2>About the Platform</h2>
642
  <p class="aim-about-sub">Artificially Intelligent Manufacturing Paradigm (AIM) for Composites</p>
@@ -656,6 +678,9 @@ body {{ font-family: 'DM Sans', sans-serif; color: #1a2e26; }}
656
  <div>{about_img_html}</div>
657
  </div>
658
  </section>
 
 
 
659
  </body></html>
660
  """, height=550, scrolling=False)
661
 
@@ -721,6 +746,7 @@ div[data-testid="stHorizontalBlock"]:has(.footer-nav-head) {
721
  .st-emotion-cache-1qeq59m:hover p {
722
  color: #8ACAFF !important;
723
  }
 
724
  /* copyright bar */
725
  .aim-footer-bottom {
726
  background: #fff;
@@ -730,6 +756,7 @@ div[data-testid="stHorizontalBlock"]:has(.footer-nav-head) {
730
  color: #a0b0aa;
731
  font-family: 'DM Sans', sans-serif;
732
  }
 
733
  </style>
734
  """, unsafe_allow_html=True)
735
 
@@ -763,3 +790,6 @@ with _:
763
  "page_files/Contact_Team.py",
764
  label="Contact Team",
765
  )
 
 
 
 
79
  st.markdown("""
80
  <style>
81
  @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');
82
+
83
  /* Hide default Streamlit chrome */
84
  .block-container { padding: 0 !important; max-width: 100% !important; background: #fff !important;}
85
  [data-testid="stToolbar"],
86
  [data-testid="stDecoration"],
87
  [data-testid="stHeader"] { display: none !important; }
88
+
89
+
90
+
91
+
92
+
93
  /* ── Search row ── */
94
  /* Only target the search bar's horizontal block, not all columns */
95
  .st-emotion-cache-y1l7l5 .st-emotion-cache-1permvm {
96
  gap: 0 !important;
97
  align-items: stretch !important;
98
  }
99
+
100
  .st-emotion-cache-16s2yzk button {
101
  background: #f2f6f4 !important;
102
  border: 1.5px solid #d0d8d4 !important;
 
111
  white-space: nowrap !important;
112
  box-shadow: none !important;
113
  }
114
+
115
  .st-emotion-cache-4dubyl [data-baseweb="input"] {
116
  background: #000 !important;
117
  height: 46px !important;
 
133
  box-shadow: none !important;
134
  padding-left: 18px !important;
135
  }
136
+
137
  .st-emotion-cache-4dubyl > div {
138
+
139
  height: 46px !important;
140
  }
141
  .st-emotion-cache-4dubyl input::placeholder {
 
155
  padding: 0 28px !important;
156
  box-shadow: none !important;
157
  }
158
+
159
  .st-key-view_all_btn button {
160
  background: transparent !important;
161
  border: none !important;
 
183
  margin-bottom: 14px;
184
  font-family: 'DM Sans', sans-serif;
185
  }
186
+
187
  </style>
188
  """, unsafe_allow_html=True)
189
 
 
260
  <style>
261
  *, *::before, *::after {{ box-sizing: border-box; margin: 0; padding: 0; }}
262
  body {{ font-family: 'DM Sans', sans-serif; background: #f7f7f5; color: #1a2e26; overflow-x: hidden; }}
263
+
264
  /* ANIMATION SECTION */
265
  .anim-section {{
266
  background: #000;
 
276
  display: flex; align-items: center;
277
  justify-content: space-between; padding: 0 40px;
278
  }}
279
+
280
  /* MAG GLASS */
281
  .mag-wrap {{ position: relative; width: 100px; display: flex; flex-direction: column; align-items: center; }}
282
  .mag-label {{ font-size: 0.65rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #4a7a6a; margin-bottom: 10px; }}
 
287
  .mag-scan {{ opacity: 0; transition: opacity 0.3s ease 0.8s; }}
288
  .mag-wrap.active .mag-scan {{ opacity: 1; animation: scanMove 1.2s ease-in-out infinite 0.8s; }}
289
  @keyframes scanMove {{ 0% {{ transform:translateY(-14px);opacity:.8; }} 50% {{ transform:translateY(0);opacity:1; }} 100% {{ transform:translateY(14px);opacity:.8; }} }}
290
+
291
  /* BUBBLES */
292
  .bubble {{ position:absolute; border-radius:50%; background:radial-gradient(circle at 35% 35%,rgba(255,255,255,.6),rgba(80,160,255,.25)); border:1px solid rgba(100,180,255,.4); opacity:0; pointer-events:none; backdrop-filter:blur(2px); }}
293
  .b1 {{ width:18px;height:18px;left:108px;bottom:155px; }}
 
308
  @keyframes floatBubble4 {{ 0% {{ opacity:0;transform:translate(0,0) scale(.3); }} 20% {{ opacity:1;transform:translate(-8px,-35px) scale(1); }} 65% {{ opacity:.8;transform:translate(105px,-80px) scale(.8); }} 88% {{ opacity:.3;transform:translate(255px,-50px) scale(.4); }} 100% {{ opacity:0;transform:translate(320px,-20px) scale(.1); }} }}
309
  @keyframes floatBubble5 {{ 0% {{ opacity:0;transform:translate(0,0) scale(.4); }} 15% {{ opacity:1;transform:translate(3px,-22px) scale(1); }} 58% {{ opacity:.9;transform:translate(115px,-60px) scale(.88); }} 83% {{ opacity:.45;transform:translate(270px,-35px) scale(.55); }} 100% {{ opacity:0;transform:translate(335px,-12px) scale(.2); }} }}
310
  @keyframes floatBubble6 {{ 0% {{ opacity:0;transform:translate(0,0) scale(.25); }} 20% {{ opacity:1;transform:translate(-3px,-40px) scale(1); }} 62% {{ opacity:.7;transform:translate(100px,-85px) scale(.75); }} 85% {{ opacity:.25;transform:translate(250px,-55px) scale(.35); }} 100% {{ opacity:0;transform:translate(318px,-22px) scale(.1); }} }}
311
+
312
  /* DATABASE */
313
  .db-wrap {{ position:relative;width:130px;display:flex;flex-direction:column;align-items:center; }}
314
  .db-label {{ font-size:.65rem;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:#4a7a6a;margin-bottom:10px; }}
 
317
  .anim-stage.active .cyl-right {{ opacity:1;transition-delay:2.2s; }}
318
  .anim-stage.active .cyl-front {{ opacity:1;transition-delay:2.4s;animation:frontPulse 2.4s ease-in-out infinite 2.8s; }}
319
  @keyframes frontPulse {{ 0%,100% {{ filter:brightness(1); }} 50% {{ filter:brightness(1.2); }} }}
320
+
321
  /* CAPTION */
322
  .anim-caption {{ margin-top:48px;display:flex;gap:40px;align-items:center; }}
323
  .anim-step {{ display:flex;align-items:center;gap:10px;opacity:0;transform:translateY(10px);transition:opacity .5s ease,transform .5s ease; }}
 
327
  .step-text {{ font-size:.78rem;color:#5a8a7a;font-weight:500; }}
328
  </style>
329
  </head><body>
330
+
331
  <section class="anim-section">
332
  <h2 class="anim-title">From Experiment to Database</h2>
333
  <div class="anim-stage" id="animStage">
 
419
  <div class="anim-step"><span class="step-text">Stored in AIM</span></div>
420
  </div>
421
  </section>
422
+
423
  <script>
424
  const stage = document.getElementById('animStage');
425
  const magWrap = document.getElementById('magWrap');
 
639
  <style>
640
  *, *::before, *::after {{ box-sizing: border-box; margin: 0; padding: 0; }}
641
  body {{ font-family: 'DM Sans', sans-serif; color: #1a2e26; }}
642
+
643
  .aim-about {{ background: #fff; padding: 60px; border-bottom: 1px solid #e8e8e4; }}
644
  .aim-about h2 {{ font-size: 1.65rem; font-weight: 700; color: #0f1f1a; letter-spacing: -0.5px; margin-bottom: 8px; }}
645
  .aim-about-sub {{ color: #6a7e77; font-size: 0.9rem; margin-bottom: 30px; }}
 
652
  display: flex; align-items: center; justify-content: center;
653
  color: #7a9e8f; font-size: 0.85rem; border: 1.5px dashed #c8d6d0;
654
  }}
655
+
656
  .aim-footer {{ background: #fff; border-top: 1px solid #e8e8e4; padding: 50px 60px 28px; }}
657
  .aim-footer-brand {{ display: flex; align-items: center; gap: 8px; font-weight: 700; color: #0f1f1a; font-size: 0.95rem; margin-bottom: 10px; }}
658
  .aim-footer-desc {{ font-size: 0.82rem; color: #7a8e87; line-height: 1.6; }}
659
  </style>
660
  </head><body>
661
+
662
  <section class="aim-about">
663
  <h2>About the Platform</h2>
664
  <p class="aim-about-sub">Artificially Intelligent Manufacturing Paradigm (AIM) for Composites</p>
 
678
  <div>{about_img_html}</div>
679
  </div>
680
  </section>
681
+
682
+
683
+
684
  </body></html>
685
  """, height=550, scrolling=False)
686
 
 
746
  .st-emotion-cache-1qeq59m:hover p {
747
  color: #8ACAFF !important;
748
  }
749
+
750
  /* copyright bar */
751
  .aim-footer-bottom {
752
  background: #fff;
 
756
  color: #a0b0aa;
757
  font-family: 'DM Sans', sans-serif;
758
  }
759
+
760
  </style>
761
  """, unsafe_allow_html=True)
762
 
 
790
  "page_files/Contact_Team.py",
791
  label="Contact Team",
792
  )
793
+
794
+
795
+