Spaces:
Sleeping
Sleeping
File size: 2,195 Bytes
62e3918 ba25241 dd55e78 62e3918 dd55e78 62e3918 ba25241 62e3918 ba25241 dd55e78 62e3918 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | import streamlit as st
import influencer_ui
import influencer_onboarding
# Page Configuration
st.set_page_config(page_title="InstaImpact", layout="wide")
# Sidebar for Navigation
st.sidebar.title("Navigation")
st.sidebar.markdown("Select the feature you want to explore:")
# Define navigation options with a flag to indicate if they are enabled or disabled
nav_options = [
("Homepage", True),
("Influencer Search", True),
("Onboard Influencers", True),
("Campaign Analytics", False),
("Market Trends", False)
]
# Function to display navigation options with disabled options shown in a different style
def display_navigation_options(options):
for option, is_enabled in options:
if is_enabled:
if st.sidebar.radio("Go to", [option]) == option:
return option
else:
# Display disabled option with different styling (e.g., using markdown)
st.sidebar.markdown(f"* ~~{option}~~ (coming soon)")
# Get the selected option
selection = display_navigation_options(nav_options)
# Homepage
if selection == "Homepage":
st.title("Welcome to InstaImpact")
st.markdown("""
**InstaImpact is your comprehensive tool for influencer marketing.
- Discover and analyze influencers
- Plan and manage your campaigns
- Get insights on the latest market trends
""")
st.markdown("## Platform Capabilities")
st.markdown("""
- **Influencer Search**: Find the perfect influencer match for your brand.
- **Campaign Analytics**: Measure the success of your campaigns.
- **Market Trends**: Stay ahead with the latest in influencer marketing.
""")
# Influencer Search
elif selection == "Influencer Search":
influencer_ui.show_influencer_search_page()
# Add a navigation option for Onboarding
elif selection == "Onboard Influencers":
influencer_onboarding.show_onboarding_page()
elif selection == "Campaign Analytics":
st.header("Campaign Analytics")
st.write("View and analyze your campaign performance.")
elif selection == "Market Trends":
st.header("Market Trends")
st.write("Explore the latest trends in influencer marketing.")
|