HemanthSai7 commited on
Commit
99ff8e6
·
1 Parent(s): 32b0efe

Added demo video

Browse files
frontend/components/login.py CHANGED
@@ -55,6 +55,11 @@ def login():
55
  except:
56
  st.error("Signup Failed")
57
 
 
 
 
 
 
58
 
59
 
60
 
 
55
  except:
56
  st.error("Signup Failed")
57
 
58
+ st.divider()
59
+ st.subheader(":rainbow[Our Prototype in Action 🎬]")
60
+ with st.expander("Demo video 🎬",expanded=True):
61
+ st.video("frontend/images/Showcase.mp4")
62
+
63
 
64
 
65
 
frontend/components/logo.py ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ import base64
4
+ import validators
5
+ from pathlib import Path
6
+
7
+ def add_logo(logo_url: str, height: int = 120):
8
+
9
+ if validators.url(logo_url) is True:
10
+ logo = f"url({logo_url})"
11
+ else:
12
+ logo = f"url(data:image/png;base64,{base64.b64encode(Path(logo_url).read_bytes()).decode()})"
13
+
14
+ st.markdown(
15
+ f"""
16
+ <style>
17
+ [data-testid="stSidebarNav"] {{
18
+ background-image: {logo};
19
+ background-repeat: no-repeat;
20
+ background-size: contain;
21
+ padding-top: {height - 40}px;
22
+ background-position: 20px 20px
23
+ }}
24
+ </style>
25
+ """,
26
+ unsafe_allow_html=True,
27
+ )