Jack Monas commited on
Commit
2dfca59
·
1 Parent(s): a03df3f
Files changed (1) hide show
  1. app.py +19 -10
app.py CHANGED
@@ -122,17 +122,26 @@ def main():
122
 
123
 
124
  scoring_section()
125
-
126
- st.markdown("## FAQs")
127
- st.write(
128
- "**Do I have to participate in all challenges?** \n"
129
- "No, you may choose to participate in one or more challenges. However, participating in multiple challenges may improve your overall ranking.\n\n"
130
- "**Can I work in a team?** \n"
131
- "Yes, team submissions are welcome.\n\n"
132
- "**What are the submission deadlines?** \n"
133
- "Deadlines for each challenge will be announced on the website.\n\n"
134
- )
135
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
 
137
  if __name__ == '__main__':
138
  main()
 
122
 
123
 
124
  scoring_section()
 
 
 
 
 
 
 
 
 
 
125
 
126
+ def display_faq(question, answer):
127
+ st.markdown(
128
+ f"""
129
+ <div style="padding: 12px; margin-bottom: 12px; background-color: #f8f8f8; border-radius: 8px; border: 1px solid #ddd;">
130
+ <p style="font-weight: bold; margin: 0 0 4px 0;">{question}</p>
131
+ <p style="margin: 0;">{answer}</p>
132
+ </div>
133
+ """,
134
+ unsafe_allow_html=True
135
+ )
136
+
137
+ display_faq("Do I have to participate in all challenges?",
138
+ "No, you may choose to participate in one or more challenges. However, participating in multiple challenges may improve your overall ranking.")
139
+
140
+ display_faq("Can I work in a team?",
141
+ "Yes, team submissions are welcome.")
142
+
143
+ display_faq("What are the submission deadlines?",
144
+ "Deadlines for each challenge will be announced on the website.")
145
 
146
  if __name__ == '__main__':
147
  main()