import streamlit as st from components import apply_styles, add_header, add_footer def main(): """ Main function to run the Streamlit app. """ apply_styles() add_header("Streamlit CSS Demo") st.header("Form Elements") # Text input st.text_input("Enter your name") # Number input st.number_input("Enter your age", min_value=0, max_value=120, value=30) # Textarea st.text_area("Enter your message") # Date input st.date_input("Select a date") # Time input st.time_input("Select a time") # File uploader st.file_uploader("Upload a file") # Color picker st.color_picker("Choose a color") # Slider st.slider("Select a value", 0, 100, 50) # Selectbox st.selectbox("Select an option", ["Option 1", "Option 2", "Option 3"]) # Multiselect st.multiselect("Select multiple options", ["Option A", "Option B", "Option C"]) # Radio buttons st.radio("Select one", ["Radio 1", "Radio 2", "Radio 3"]) # Checkbox st.checkbox("Agree to terms") # Button if st.button("Submit"): st.write("Form submitted!") st.header("Data Display") # Table st.table({"Column 1": [1, 2, 3], "Column 2": [4, 5, 6]}) add_footer("This is a footer") if __name__ == "__main__": main()