debate_LMS / src /views /assignments.py
raymondEDS
Demo for first week.
3cc080f
import streamlit as st
def show_assignments():
"""Show assignments page"""
st.title("📝 Assignments")
st.markdown("---")
st.markdown("""
## Current Assignments
""")
# Assignment 1
with st.expander("Assignment 1: Debate Format Research (Due: End of Week 1)", expanded=True):
st.markdown("""
**Objective**: Research and present on different debate formats
**Instructions**:
1. Choose one debate format (Policy, LD, Public Forum, or Parliamentary)
2. Research its rules, structure, and unique characteristics
3. Prepare a 2-minute presentation explaining your chosen format
4. Submit your findings
**Grading Criteria**:
- Accuracy of information (40%)
- Clarity of presentation (30%)
- Depth of research (30%)
**Submission**: Upload your presentation or written report below
""")
uploaded_file = st.file_uploader(
"Upload your assignment",
type=['pdf', 'docx', 'txt'],
key="assignment1"
)
if uploaded_file is not None:
st.success(f"File uploaded: {uploaded_file.name}")
if st.button("Submit Assignment 1"):
st.success("Assignment submitted successfully!")
# Assignment 2
with st.expander("Assignment 2: Argument Analysis (Due: End of Week 1)"):
st.markdown("""
**Objective**: Practice identifying argument structure
**Instructions**:
1. Find a recent news article or opinion piece
2. Identify the main argument and supporting evidence
3. Analyze the strength of the argument
4. Write a 1-page analysis
**Grading Criteria**:
- Accurate identification of argument structure (50%)
- Quality of analysis (30%)
- Writing clarity (20%)
**Submission**: Upload your analysis below
""")
uploaded_file = st.file_uploader(
"Upload your assignment",
type=['pdf', 'docx', 'txt'],
key="assignment2"
)
if uploaded_file is not None:
st.success(f"File uploaded: {uploaded_file.name}")
if st.button("Submit Assignment 2"):
st.success("Assignment submitted successfully!")