Spaces:
Sleeping
Sleeping
Update influencer_onboarding.py
Browse files- influencer_onboarding.py +34 -1
influencer_onboarding.py
CHANGED
|
@@ -1,5 +1,26 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
def show_onboarding_page():
|
| 4 |
st.title("Onboard Influencers")
|
| 5 |
|
|
@@ -34,4 +55,16 @@ def onboard_single_influencer(handle):
|
|
| 34 |
def display_onboarded_influencers():
|
| 35 |
# Display the list of onboarded influencers
|
| 36 |
st.write("List of Onboarded Influencers...")
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
+
influencers_data = {
|
| 4 |
+
"influencer1": {
|
| 5 |
+
"onboarded": True,
|
| 6 |
+
"name": "Influencer One",
|
| 7 |
+
"image": "./images/inf1.png", # Replace with actual image paths
|
| 8 |
+
"details": "Details about Influencer One..."
|
| 9 |
+
},
|
| 10 |
+
"influencer2": {
|
| 11 |
+
"onboarded": True,
|
| 12 |
+
"name": "Influencer Two",
|
| 13 |
+
"image": "./images/inf2.png",
|
| 14 |
+
"details": "Details about Influencer Two..."
|
| 15 |
+
}
|
| 16 |
+
"influencer3": {
|
| 17 |
+
"onboarded": False,
|
| 18 |
+
"name": "Influencer Two",
|
| 19 |
+
"image": "./images/inf2.png"
|
| 20 |
+
}
|
| 21 |
+
# Add more influencers as needed
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
def show_onboarding_page():
|
| 25 |
st.title("Onboard Influencers")
|
| 26 |
|
|
|
|
| 55 |
def display_onboarded_influencers():
|
| 56 |
# Display the list of onboarded influencers
|
| 57 |
st.write("List of Onboarded Influencers...")
|
| 58 |
+
for influencer_id, influencer_info in influencers_data.items():
|
| 59 |
+
col1, col2 = st.columns([1, 3])
|
| 60 |
+
|
| 61 |
+
with col1:
|
| 62 |
+
st.image(influencer_info["image"], width=30)
|
| 63 |
+
|
| 64 |
+
with col2:
|
| 65 |
+
if(influencer_info["onboarded"]):
|
| 66 |
+
with st.expander("Influencer Details"):
|
| 67 |
+
st.subheader(influencer_info["name"])
|
| 68 |
+
st.write(influencer_info["details"])
|
| 69 |
+
else:
|
| 70 |
+
with st.expander("Influencer Onboarding - In Progress"):
|