Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import influencer_ui
|
|
|
|
| 3 |
|
| 4 |
# Page Configuration
|
| 5 |
st.set_page_config(page_title="InstaImpact", layout="wide")
|
|
@@ -7,8 +8,28 @@ st.set_page_config(page_title="InstaImpact", layout="wide")
|
|
| 7 |
# Sidebar for Navigation
|
| 8 |
st.sidebar.title("Navigation")
|
| 9 |
st.sidebar.markdown("Select the feature you want to explore:")
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# Homepage
|
| 14 |
if selection == "Homepage":
|
|
@@ -29,6 +50,9 @@ if selection == "Homepage":
|
|
| 29 |
# Influencer Search
|
| 30 |
elif selection == "Influencer Search":
|
| 31 |
influencer_ui.show_influencer_search_page()
|
|
|
|
|
|
|
|
|
|
| 32 |
elif selection == "Campaign Analytics":
|
| 33 |
st.header("Campaign Analytics")
|
| 34 |
st.write("View and analyze your campaign performance.")
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import influencer_ui
|
| 3 |
+
import influencer_onboarding
|
| 4 |
|
| 5 |
# Page Configuration
|
| 6 |
st.set_page_config(page_title="InstaImpact", layout="wide")
|
|
|
|
| 8 |
# Sidebar for Navigation
|
| 9 |
st.sidebar.title("Navigation")
|
| 10 |
st.sidebar.markdown("Select the feature you want to explore:")
|
| 11 |
+
|
| 12 |
+
# Define navigation options with a flag to indicate if they are enabled or disabled
|
| 13 |
+
nav_options = [
|
| 14 |
+
("Homepage", True),
|
| 15 |
+
("Influencer Search", True),
|
| 16 |
+
("Onboard Influencers", True),
|
| 17 |
+
("Campaign Analytics", False),
|
| 18 |
+
("Market Trends", False)
|
| 19 |
+
]
|
| 20 |
+
|
| 21 |
+
# Function to display navigation options with disabled options shown in a different style
|
| 22 |
+
def display_navigation_options(options):
|
| 23 |
+
for option, is_enabled in options:
|
| 24 |
+
if is_enabled:
|
| 25 |
+
if st.sidebar.radio("Go to", [option]) == option:
|
| 26 |
+
return option
|
| 27 |
+
else:
|
| 28 |
+
# Display disabled option with different styling (e.g., using markdown)
|
| 29 |
+
st.sidebar.markdown(f"* ~~{option}~~ (coming soon)")
|
| 30 |
+
|
| 31 |
+
# Get the selected option
|
| 32 |
+
selection = display_navigation_options(nav_options)
|
| 33 |
|
| 34 |
# Homepage
|
| 35 |
if selection == "Homepage":
|
|
|
|
| 50 |
# Influencer Search
|
| 51 |
elif selection == "Influencer Search":
|
| 52 |
influencer_ui.show_influencer_search_page()
|
| 53 |
+
# Add a navigation option for Onboarding
|
| 54 |
+
elif selection == "Onboard Influencers":
|
| 55 |
+
influencer_onboarding.show_onboarding_page()
|
| 56 |
elif selection == "Campaign Analytics":
|
| 57 |
st.header("Campaign Analytics")
|
| 58 |
st.write("View and analyze your campaign performance.")
|