Example #1
0
def main():
    st.sidebar.title("Navigation")
    menu_selection = st.sidebar.radio("Pick an option...", list(MENU.keys()))

    menu = MENU[menu_selection]

    with st.spinner(f"Loading {menu_selection} ..."):
        udisp.render_page(menu)

    st.sidebar.title("Contribute")
    st.sidebar.info(
        "This an open source project and please feel free to contribute"
        +"\n"+
        "[Github](https://github.com/acheamponge/historical_american_lynchings)"
        +"\n"+
        "\n"+
        "[Google Docs](https://lnkd.in/eZgNRy6) "
    )
    
      
    st.sidebar.title("About")
    st.sidebar.info(
        """
        This purpose of this app is to create an interactive platform to analyze the dataset of lynchings that happened in America."""
    )
    
    st.sidebar.title("Special Thanks")
    st.sidebar.info(
        "Huge thank you to MarcSkovMadsen and Avkash whose use of Streamlit helped make the webapp for this project"
        +"\n"+
        "[MarcSkovMadsen](https://github.com/MarcSkovMadsen/awesome-streamlit/)"
        +"\n"+"\n"+
        "[Avkash](https://github.com/Avkash/demoapps) "
        )
Example #2
0
def main():
    """Main Navigation Code"""
    st.sidebar.title("Navigation")
    menu_selection = st.sidebar.selectbox("Go To", list(MENU.keys()))
    menu = MENU[menu_selection]
    st.sidebar.title("User Controls")
    with st.spinner(f"Loading {menu_selection} ..."):
        udisp.render_page(menu)
Example #3
0
def main():
    st.sidebar.title("Navigation")
    menu_selection = st.sidebar.radio("Pick an option...", list(MENU.keys()))

    menu = MENU[menu_selection]

    with st.spinner(f"Loading {menu_selection} ..."):
        udisp.render_page(menu)
Example #4
0
def main():
    # st.sidebar.title("Menu")
    menu_selection = st.sidebar.radio("Escolha entre as aplicações:",
                                      list(MENU.keys()))

    menu = MENU[menu_selection]

    with st.spinner(f"Carregando {menu_selection} ..."):
        udisp.render_page(menu)
Example #5
0
def main():
    st.sidebar.title("Browse Our Library:")
    menu_selection = st.sidebar.radio("Choose your option...",
                                      list(MENU.keys()))

    menu = MENU[menu_selection]

    with st.spinner(f"Loading {menu_selection} ..."):
        udisp.render_page(menu)
Example #6
0
def main():

    local_css("style.css")
    st.sidebar.text("Navigate yourself...")
    menu_selection = st.sidebar.radio("", list(MENU.keys()))

    menu = MENU[menu_selection]

    with st.spinner(f"Loading {menu_selection} ..."):
        udisp.render_page(menu)
Example #7
0
def main():
    st.sidebar.title("Navigate yourself...")
    menu_selection = st.sidebar.radio("Choice your option...",
                                      list(MENU.keys()))

    menu = MENU[menu_selection]

    with st.spinner(f"Loading {menu_selection} ..."):
        udisp.render_page(menu)

    st.sidebar.info("https://github.com/Avkash/demoapps")
Example #8
0
def main():
    st.markdown(
        '<style>body { margin: 0; font-family: font-family: Tangerine;font-size:5px, Helvetica bold, sans-serif bold;font-size: 32px;text-align: justify} .header{padding: 15px 16px; background: black; color: #f4f1bb; position:fixed;top:0;text-align: center;} .sticky { position: fixed; top: 0; width: 100%;text-align: center; } </style><div class="header" id="myHeader"><b>'
        + str('Swift Summarator') + '</div>',
        unsafe_allow_html=True)
    #st.sidebar.image(image2, caption=None, width=170, use_column_width=False, clamp=True, channels='RGB')
    st.sidebar.image(image4,
                     caption=None,
                     width=250,
                     use_column_width=False,
                     clamp=True,
                     channels='RGB')
    menu_selection = st.sidebar.radio("NAVIGATION", list(MENU.keys()))

    menu = MENU[menu_selection]

    with st.spinner(f"Loading {menu_selection} ..."):
        udisp.render_page(menu)
Example #9
0
def main():
    menu = MENU["Home"]
    udisp.render_page(menu)