Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 24 additions & 7 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

def display_app_page():
"""Displays the home page of the app."""
# st.title('Welcome to SDS!')

# # An example of displaying a custom component called "my_custom_component"
# value = st.text_input('Enter your name')
# display_my_custom_component(value)

# Navigation sidebar
st.sidebar.title("Navigation")
page = st.sidebar.radio(
"Go to:",
["Explore Groups", "User Profile", "Recent Groups", "AI Recommendations"]
)
profile = {
"first_name": "Jane", "last_name": "Doe",
"major": "Computer Science", "year": "Junior Year",
Expand All @@ -32,7 +32,24 @@ def display_app_page():
{"day": "Tue", "slots": ["1-3 PM"]},
],
}
display_user_profile(profile)

mock_study_groups = [
{"group_title": "Calc II Cram Session", "subject": "Math", "description": "Preparing for midterm", "date": "Oct 12", "time": "4PM", "location": "Library Room 3", "members": "4/6"},
{"group_title": "Bio 101 Lab Prep", "subject": "Science", "description": "Reviewing cell structures", "date": "Oct 13", "time": "2PM", "location": "Science Hall", "members": "2/4"},
{"group_title": "Art History Chat", "subject": "Arts", "description": "Renaissance era discussion", "date": "Oct 15", "time": "11AM", "location": "Cafe Blue", "members": "8/10"},
{"group_title": "Python Basics", "subject": "CS", "description": "Looping and logic", "date": "Oct 16", "time": "6PM", "location": "Zoom", "members": "12/20"},
]
if page == "Explore Groups":
# Run the page
filtered_list = navigation_bar(mock_study_groups)
display_explore_page(filtered_list)

elif page == "User Profile":
display_user_profile(profile)

else:
st.title("Study Group Finder")


# This is the starting point for your app. You do not need to change these lines
if __name__ == '__main__':
Expand Down
Loading