gkdivya commited on
Commit
4e58999
·
1 Parent(s): 0398d1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +50 -47
app.py CHANGED
@@ -29,53 +29,56 @@ def set_bg_from_local_image(local_img_path):
29
  </style>
30
  """
31
 
32
- set_bg_from_local_image('images/Influencers.png')
 
 
 
 
33
 
34
- # Page Configuration
35
- st.set_page_config(page_title="InstaImpact", layout="wide")
36
-
37
- # Sidebar for Navigation
38
- st.sidebar.title("Navigation")
39
- st.sidebar.markdown("Select the feature you want to explore:")
40
-
41
- # Define navigation options with a flag to indicate if they are enabled or disabled
42
- nav_options = ["Homepage", "Influencer Search", "Onboard Influencers", "Campaign Analytics", "Market Trends"]
43
- selection = st.sidebar.radio("Go to", nav_options)
44
-
45
- # Homepage
46
- if selection == "Homepage":
47
- st.markdown("<h1 style='text-align: center; color: white;'>Welcome to InstaImpact</h1>", unsafe_allow_html=True)
48
- st.markdown("""
49
- <div style="font-size: 20px; color: white;">
50
- <p><strong>InstaImpact is your comprehensive tool for influencer marketing.</strong></p>
51
- <ul>
52
- <li>Discover and analyze influencers</li>
53
- <li>Plan and manage your campaigns</li>
54
- <li>Get insights on the latest market trends</li>
55
- </ul>
56
- </div>
57
- """, unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
- st.markdown("<h2 style='color: white;'>Platform Capabilities</h2>", unsafe_allow_html=True)
60
- st.markdown("""
61
- <div style="font-size: 18px; color: white;">
62
- <ul>
63
- <li><strong>Influencer Search</strong>: Find the perfect influencer match for your brand.</li>
64
- <li><strong>Campaign Analytics</strong>: Measure the success of your campaigns.</li>
65
- <li><strong>Market Trends</strong>: Stay ahead with the latest in influencer marketing.</li>
66
- </ul>
67
- </div>
68
- """, unsafe_allow_html=True)
69
- # Influencer Search
70
- elif selection == "Influencer Search":
71
- influencer_ui.show_influencer_search_page()
72
- # Add a navigation option for Onboarding
73
- elif selection == "Onboard Influencers":
74
- influencer_onboarding.show_onboarding_page()
75
- elif selection == "Campaign Analytics":
76
- st.header("Campaign Analytics")
77
- st.write("View and analyze your campaign performance - Coming Soon")
78
- elif selection == "Market Trends":
79
- st.header("Market Trends")
80
- st.write("Explore the latest trends in influencer marketing - Coming Soon")
81
 
 
 
29
  </style>
30
  """
31
 
32
+ def main():
33
+ set_bg_from_local_image('images/Influencers.png')
34
+
35
+ # Page Configuration
36
+ st.set_page_config(page_title="InstaImpact", layout="wide")
37
 
38
+ # Sidebar for Navigation
39
+ st.sidebar.title("Navigation")
40
+ st.sidebar.markdown("Select the feature you want to explore:")
41
+
42
+ # Define navigation options with a flag to indicate if they are enabled or disabled
43
+ nav_options = ["Homepage", "Influencer Search", "Onboard Influencers", "Campaign Analytics", "Market Trends"]
44
+ selection = st.sidebar.radio("Go to", nav_options)
45
+
46
+ # Homepage
47
+ if selection == "Homepage":
48
+ st.markdown("<h1 style='text-align: center; color: white;'>Welcome to InstaImpact</h1>", unsafe_allow_html=True)
49
+ st.markdown("""
50
+ <div style="font-size: 20px; color: white;">
51
+ <p><strong>InstaImpact is your comprehensive tool for influencer marketing.</strong></p>
52
+ <ul>
53
+ <li>Discover and analyze influencers</li>
54
+ <li>Plan and manage your campaigns</li>
55
+ <li>Get insights on the latest market trends</li>
56
+ </ul>
57
+ </div>
58
+ """, unsafe_allow_html=True)
59
+
60
+ st.markdown("<h2 style='color: white;'>Platform Capabilities</h2>", unsafe_allow_html=True)
61
+ st.markdown("""
62
+ <div style="font-size: 18px; color: white;">
63
+ <ul>
64
+ <li><strong>Influencer Search</strong>: Find the perfect influencer match for your brand.</li>
65
+ <li><strong>Campaign Analytics</strong>: Measure the success of your campaigns.</li>
66
+ <li><strong>Market Trends</strong>: Stay ahead with the latest in influencer marketing.</li>
67
+ </ul>
68
+ </div>
69
+ """, unsafe_allow_html=True)
70
+ # Influencer Search
71
+ elif selection == "Influencer Search":
72
+ influencer_ui.show_influencer_search_page()
73
+ # Add a navigation option for Onboarding
74
+ elif selection == "Onboard Influencers":
75
+ influencer_onboarding.show_onboarding_page()
76
+ elif selection == "Campaign Analytics":
77
+ st.header("Campaign Analytics")
78
+ st.write("View and analyze your campaign performance - Coming Soon")
79
+ elif selection == "Market Trends":
80
+ st.header("Market Trends")
81
+ st.write("Explore the latest trends in influencer marketing - Coming Soon")
82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
 
84
+ main()