Skip to content
Merged
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
29 changes: 28 additions & 1 deletion modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,33 @@
#############################################################################

from internals import create_component
import streamlit as st

# CSS style for modules
st.markdown("""
<style>
.study-card {
border-radius: 18px;
padding: 20px;
background-color: #1e1e1e;
border: 1px solid #333;
margin-bottom: 20px;
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.subject-tag {
display: inline-block;
padding: 4px 10px;
border-radius: 12px;
background-color: #2d2d2d;
font-size: 0.8rem;
margin-bottom: 8px;
}
.location {
color: #ff4b4b;
font-weight: 500;
}
</style>
""", unsafe_allow_html=True) # Written by Chat GPT


# This one has been written for you as an example. You may change it as wanted.
Expand All @@ -29,7 +56,7 @@ def display_my_custom_component(value):
create_component(data, html_file_name)


def display_post(username, user_image, timestamp, content, post_image):
def display_post(group_title, subject, description, date, time, location, members):
"""Write a good docstring here."""
pass

Expand Down