Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -170,18 +170,17 @@ if st.session_state.content_plan:
|
|
170 |
# Calculate start index, accounting for potential inconsistent line counts
|
171 |
start_index = day * 5
|
172 |
if start_index + 4 < len(plan_lines):
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
)
|
185 |
|
186 |
# Download button
|
187 |
st.download_button(
|
|
|
170 |
# Calculate start index, accounting for potential inconsistent line counts
|
171 |
start_index = day * 5
|
172 |
if start_index + 4 < len(plan_lines):
|
173 |
+
st.markdown(f"""
|
174 |
+
|
175 |
+
<div class="day-card">
|
176 |
+
<h3>{plan_lines[start_index] if start_index < len(plan_lines) else 'No Topic'}</h3>
|
177 |
+
<p>๐ฏ Objective: {plan_lines[start_index+1] if start_index+1 < len(plan_lines) else 'N/A'}</p>
|
178 |
+
<p>๐น Format: {plan_lines[start_index+2] if start_index+2 < len(plan_lines) else 'N/A'}</p>
|
179 |
+
<p>๐ก Engagement Strategy: {plan_lines[start_index+3] if start_index+3 < len(plan_lines) else 'N/A'}</p>
|
180 |
+
<p>๐ Success Metrics: {plan_lines[start_index+4] if start_index+4 < len(plan_lines) else 'N/A'}</p>
|
181 |
+
</div>
|
182 |
+
""", unsafe_allow_html=True)
|
183 |
+
|
|
|
184 |
|
185 |
# Download button
|
186 |
st.download_button(
|