from navigation import make_sidebar import streamlit as st from time import sleep import yaml make_sidebar() # Sample job data with open(f'data/jobs/jobs.yaml', 'r') as file: jobs = yaml.safe_load(file) # job = { # "ssc1": {"description": "This is a new job...", "qualification": "class 10"}, # "ssc2": {"description": "Another exciting job...", "qualification": "class 12"}, # "engineer": {"description": "Engineering job...", "qualification": "B.E/B.Tech"}, # } st.title("Job Listings") hide_st_style = """ """ st.markdown(hide_st_style, unsafe_allow_html=True) # Initialize session state to keep track of which job's details to show if 'selected_job' not in st.session_state: st.session_state.selected_job = None # Loop through all jobs and display them as buttons with title and description for title, details in jobs.items(): # Format title and description in one string button_label = "more details" st.markdown(f"""