Skip to content

Commit

Permalink
social media
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariana Vivas authored and Mariana Vivas committed Nov 4, 2024
1 parent 13aa9a7 commit b3f32a4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
19 changes: 18 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from utils import load_sidebar_tabs
import json
import os
from st_social_media_links import SocialMediaIcons

st.set_page_config(
page_title="ATLAS for Teachers",
Expand Down Expand Up @@ -53,6 +54,21 @@ def reset_language():
# Proceed button with a callback function
st.button("Proceed", on_click=proceed, args=(language,))

st.markdown("---")
social_media_links = [
"https://x.com/ATLASexperiment",
"https://www.facebook.com/ATLASexperiment",
"https://www.instagram.com/atlasexperiment/",
"https://www.tiktok.com/@atlasexperiment",
"https://www.linkedin.com/company/atlas-collaboration",
"https://www.youtube.com/c/ATLASExperiment",
"https://www.threads.net/@atlasexperiment",
]

social_media_icons = SocialMediaIcons(social_media_links)
st.write(f'Follow ATLAS in social media.')
social_media_icons.render()

# # Check if English is selected
# elif st.session_state["language"] == "English":
else:
Expand Down Expand Up @@ -108,8 +124,9 @@ def reset_language():
module = importlib.import_module("05_class_toolkit")
module.run(selected_language)


# Use the bottom container to place the language section at the bottom
with sidebar_bottom:
st.sidebar.markdown("<br><br><br><br><br>", unsafe_allow_html=True) # Add some space
st.sidebar.markdown("<br><br><br><br><br>", unsafe_allow_html=True)
st.sidebar.text(f"Language: {selected_language}")
st.sidebar.button("Change Language", on_click=reset_language)
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ streamlit==1.39.0
streamlit-ace==0.1.1
streamlit-code-editor==0.1.21
streamlit-option-menu==0.3.13
st-social-media-links==0.1.3
tenacity==8.5.0
toml==0.10.2
tornado==6.4.1
Expand Down

0 comments on commit b3f32a4

Please sign in to comment.