Spaces:
Running

Dzung Doan commited on
Commit
fa61279
Β·
1 Parent(s): adb9bd1

update book series promotion

Browse files
Files changed (1) hide show
  1. app.py +19 -37
app.py CHANGED
@@ -223,43 +223,25 @@ st.markdown("""
223
  st.markdown('<h1 class="main-title">πŸ† World Cup AI Assistant</h1>', unsafe_allow_html=True)
224
  st.write(f"**Environment:** `{ENVIRONMENT}` \nAsk any question about World Cup history and get an AI-powered answer!")
225
 
226
- # Book Series Section - Toward World Cup 2026 (Using Streamlit Native Components)
227
- with st.container():
228
- # Create a subtle container with custom styling
229
- st.markdown("""
230
- <style>
231
- .book-series-container {
232
- background: rgba(255, 255, 255, 0.95);
233
- border: 2px solid #e9ecef;
234
- border-radius: 8px;
235
- padding: 15px;
236
- margin: 15px 0;
237
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
238
- }
239
- </style>
240
- <div class="book-series-container">
241
- """, unsafe_allow_html=True)
242
-
243
- # Header with NEW badge and title
244
- col1, col2 = st.columns([1, 4])
245
- with col1:
246
- st.markdown('<div style="background: #ffd700; color: #1e3c72; padding: 4px 8px; border-radius: 12px; font-size: 0.7em; font-weight: bold; text-align: center;">πŸ“š NEW</div>', unsafe_allow_html=True)
247
- with col2:
248
- st.markdown('<h4 style="color: #495057; margin: 0; font-size: 1.1em; font-weight: 600;">Book Series: Toward World Cup 2026</h4>', unsafe_allow_html=True)
249
-
250
- # Book description
251
- st.markdown('<p style="color: #6c757d; margin: 10px 0; font-size: 0.9em; line-height: 1.4;"><strong>Book 1: Lamine Yamal</strong> - A Golden Boy Who Becomes a Record-Breaking Star: Lessons for Kids</p>', unsafe_allow_html=True)
252
-
253
- # Buttons and teaser
254
- col1, col2, col3 = st.columns([1, 1, 2])
255
- with col1:
256
- st.link_button("πŸ›’ Amazon", "https://www.amazon.com/Yamal-Golden-Becomes-Record-Breaking-Lessons/dp/B0DPCRK64H/ref=tmm_pap_swatch_0?_encoding=UTF8&dib_tag=se&dib=eyJ2IjoiMSJ9.oXOBH7gVGsbO-2qUWdAdBA.qtAKMcQoOdUgIdIDUHYywjKRDvtOJsZTgn5Pe6ds7bo&qid=1755559111&sr=8-1", use_container_width=True)
257
- with col2:
258
- st.link_button("πŸ“– Blog", "https://dzungdoan.com/2025/08/18/toward-world-cup-2026-book-series-first-book-lamine-yamal/", use_container_width=True)
259
- with col3:
260
- st.markdown('<p style="color: #6c757d; font-size: 0.8em; font-style: italic; margin: 0; padding: 8px 0;">More books coming soon! πŸš€</p>', unsafe_allow_html=True)
261
-
262
- st.markdown("</div>", unsafe_allow_html=True)
263
 
264
  # Background music (always visible audio player)
265
  try:
 
223
  st.markdown('<h1 class="main-title">πŸ† World Cup AI Assistant</h1>', unsafe_allow_html=True)
224
  st.write(f"**Environment:** `{ENVIRONMENT}` \nAsk any question about World Cup history and get an AI-powered answer!")
225
 
226
+ # Book Series Section - Toward World Cup 2026 (Clean Integration)
227
+ # Header with NEW badge and title
228
+ col1, col2 = st.columns([1, 4])
229
+ with col1:
230
+ st.markdown('<div style="background: #ffd700; color: #1e3c72; padding: 4px 8px; border-radius: 12px; font-size: 0.7em; font-weight: bold; text-align: center;">πŸ“š NEW</div>', unsafe_allow_html=True)
231
+ with col2:
232
+ st.markdown('<h4 style="color: #495057; margin: 0; font-size: 1.1em; font-weight: 600;">Book Series: Toward World Cup 2026</h4>', unsafe_allow_html=True)
233
+
234
+ # Book description
235
+ st.markdown('<p style="color: #6c757d; margin: 10px 0; font-size: 0.9em; line-height: 1.4;"><strong>Book 1: Lamine Yamal</strong> - A Golden Boy Who Becomes a Record-Breaking Star: Lessons for Kids</p>', unsafe_allow_html=True)
236
+
237
+ # Buttons and teaser
238
+ col1, col2, col3 = st.columns([1, 1, 2])
239
+ with col1:
240
+ st.link_button("πŸ›’ Amazon", "https://www.amazon.com/Yamal-Golden-Becomes-Record-Breaking-Lessons/dp/B0DPCRK64H/ref=tmm_pap_swatch_0?_encoding=UTF8&dib_tag=se&dib=eyJ2IjoiMSJ9.oXOBH7gVGsbO-2qUWdAdBA.qtAKMcQoOdUgIdIDUHYywjKRDvtOJsZTgn5Pe6ds7bo&qid=1755559111&sr=8-1", use_container_width=True)
241
+ with col2:
242
+ st.link_button("πŸ“– Blog", "https://dzungdoan.com/2025/08/18/toward-world-cup-2026-book-series-first-book-lamine-yamal/", use_container_width=True)
243
+ with col3:
244
+ st.markdown('<p style="color: #6c757d; font-size: 0.8em; font-style: italic; margin: 0; padding: 8px 0;">More books coming soon! πŸš€</p>', unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
 
246
  # Background music (always visible audio player)
247
  try: