diff --git a/app.py b/app.py index f87e16a..500c601 100644 --- a/app.py +++ b/app.py @@ -17,7 +17,7 @@ import streamlit as st st.set_page_config( page_title="Shannon's Equation for Dummies", - page_icon="๐ก", + page_icon="antenna_bars", layout="wide", initial_sidebar_state="expanded", ) @@ -104,7 +104,7 @@ st.markdown(""" # โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ with st.sidebar: - st.markdown("## ๐ก Shannon for Dummies") + st.markdown("## Shannon for Dummies") st.caption("Educational Application โ AP Feb 2021") st.divider() @@ -112,12 +112,12 @@ with st.sidebar: "Navigation", options=["animation", "orbits", "sat_types", "theory", "real_world", "contributions"], format_func=lambda x: { - "animation": "๐ก Satellite Link Animation", - "orbits": "๐ GEO / MEO / LEO Orbits", - "sat_types": "๐ฐ๏ธ Satellite Missions & Types", - "theory": "๐งฎ Theoretical Exploration", - "real_world": "๐ฐ๏ธ Real World Link Budget", - "contributions": "๐ฌ Community Contributions", + "animation": "Satellite Link Animation", + "orbits": "GEO / MEO / LEO Orbits", + "sat_types": "Satellite Missions & Types", + "theory": "Theoretical Exploration", + "real_world": "Real World Link Budget", + "contributions": "Community Contributions", }[x], label_visibility="collapsed", ) diff --git a/core/help_texts.py b/core/help_texts.py index cf630b2..5143606 100644 --- a/core/help_texts.py +++ b/core/help_texts.py @@ -101,7 +101,7 @@ THEORY_HELP = { "- Try multiple values in all the fields one by one\n" "- Explore the graphs and try to understand the underlying physics\n" "- The units are as explicit as possible to facilitate the exploration\n" - "- Click on the โน๏ธ icons to get information about each parameter" + "- Click on the info icons to get information about each parameter" ), } @@ -134,7 +134,7 @@ REAL_WORLD_HELP = { "The position of the ground station affects link availability due to weather statistics " "(tropical regions have very heavy rains attenuating signals at high frequencies). " "It also impacts the elevation angle and overall path length.\n\n" - "๐ [Find coordinates](https://www.gps-coordinates.net)" + "[Find coordinates](https://www.gps-coordinates.net)" ), "availability": ( "**Link Availability [%]**\n\n" diff --git a/views/__pycache__/orbits_animation.cpython-313.pyc b/views/__pycache__/orbits_animation.cpython-313.pyc index c5f1459..b3a0a8c 100644 Binary files a/views/__pycache__/orbits_animation.cpython-313.pyc and b/views/__pycache__/orbits_animation.cpython-313.pyc differ diff --git a/views/__pycache__/satellite_types.cpython-313.pyc b/views/__pycache__/satellite_types.cpython-313.pyc index b6c18bb..354282a 100644 Binary files a/views/__pycache__/satellite_types.cpython-313.pyc and b/views/__pycache__/satellite_types.cpython-313.pyc differ diff --git a/views/contributions.py b/views/contributions.py index e6a40ab..f074d6a 100644 --- a/views/contributions.py +++ b/views/contributions.py @@ -11,17 +11,17 @@ from core.database import write_contribution, search_contributions, delete_contr def render(): """Render the Contributions page.""" - st.markdown("# ๐ฌ Community Contributions") + st.markdown("# Community Contributions") st.markdown( "Share your observations about Shannon's theorem, satellite communications, " "or suggest improvements. Contributions are stored locally and shared with all users." ) - tab_read, tab_write = st.tabs(["๐ Read Contributions", "โ๏ธ Write Contribution"]) + tab_read, tab_write = st.tabs(["Read Contributions", "Write Contribution"]) # โโ Read Contributions โโ with tab_read: - st.markdown("### ๐ Search Contributions") + st.markdown("### Search Contributions") db_choice = st.radio( "Database", @@ -39,7 +39,7 @@ def render(): kw_filter = st.text_input("Filter by Keywords", key="filter_kw") content_filter = st.text_input("Filter by Content", key="filter_content") - if st.button("๐ Search", type="primary", key="btn_search"): + if st.button("Search", type="primary", key="btn_search"): results = search_contributions( db_name, name_filter=name_filter, @@ -60,10 +60,10 @@ def render(): ): st.markdown(contrib["text"]) if contrib["keywords"]: - st.caption(f"๐ท๏ธ Keywords: {contrib['keywords']}") + st.caption(f"Keywords: {contrib['keywords']}") # Delete functionality - with st.popover("๐๏ธ Delete"): + with st.popover("Delete"): st.warning("This action cannot be undone.") del_password = st.text_input( "Enter contribution password", @@ -72,7 +72,7 @@ def render(): ) if st.button("Confirm Delete", key=f"del_btn_{contrib['num']}"): if delete_contribution(db_name, contrib["num"], del_password): - st.success(f"โ Contribution #{contrib['num']} deleted.") + st.success(f"Contribution #{contrib['num']} deleted.") # Refresh results st.session_state["contrib_results"] = search_contributions( db_name, @@ -83,13 +83,13 @@ def render(): ) st.rerun() else: - st.error("โ Incorrect password or contribution not found.") + st.error("Incorrect password or contribution not found.") elif "contrib_results" in st.session_state: st.info("No contributions found matching your filters.") # โโ Write Contribution โโ with tab_write: - st.markdown("### โ๏ธ New Contribution") + st.markdown("### New Contribution") db_choice_w = st.radio( "Database", @@ -109,17 +109,16 @@ def render(): type="password", ) - submitted = st.form_submit_button("๐ค Submit", type="primary") + submitted = st.form_submit_button("Submit", type="primary") if submitted: if not name or not title or not text: - st.error("โ Please fill in all required fields (marked with *).") + st.error("Please fill in all required fields (marked with *).") else: new_id = write_contribution(db_name_w, name, title, keywords, text, password) - st.success(f"โ Thank you! Your contribution has been stored with ID #{new_id}.") - st.balloons() + st.success(f"Thank you. Your contribution has been stored with ID #{new_id}.") - with st.expander("โ Help"): + with st.expander("Help"): st.markdown( "Write your contribution as a free text. Contributions should be:\n\n" "- Candid observations about the technical subject\n" diff --git a/views/orbits_animation.py b/views/orbits_animation.py index b29a0f9..27a03f7 100644 --- a/views/orbits_animation.py +++ b/views/orbits_animation.py @@ -66,7 +66,7 @@ _ORBITS_HTML = """
Hover over a satellite to see its details. @@ -226,8 +226,8 @@ function showInfo(o) {
Select a mission type above
to explore its animation.
Select a mission type above
to explore its animation.