import streamlit as st import influencer_ui import influencer_onboarding import base64 def get_base64_of_bin_file(bin_file): """ Converts a binary file to base64 encoding. """ with open(bin_file, 'rb') as file: data = file.read() return base64.b64encode(data).decode() def set_bg_from_local_image(local_img_path): """ Sets a local image as the background of the Streamlit app. """ bin_str = get_base64_of_bin_file(local_img_path) page_bg_img = f""" """ st.markdown(page_bg_img, unsafe_allow_html=True) def main(): # Page Configuration st.set_page_config(page_title="InstaImpact", layout="wide") set_bg_from_local_image('images/influencer_edited.png') # 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", "Influencer Search", "Onboard Influencers", "Campaign Analytics", "Market Trends"] selection = st.sidebar.radio("Go to", nav_options) # Homepage if selection == "Homepage": st.markdown("
InstaImpact is your comprehensive tool for influencer marketing.