Spaces:
Running

Dzung Doan commited on
Commit
3dbb569
Β·
1 Parent(s): af27a2e

add book series promotion section

Browse files
Files changed (1) hide show
  1. app.py +82 -0
app.py CHANGED
@@ -171,6 +171,50 @@ st.markdown("""
171
  margin-top: 5px;
172
  font-style: italic;
173
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  </style>
175
  """, unsafe_allow_html=True)
176
 
@@ -179,6 +223,44 @@ st.markdown("""
179
  st.markdown('<h1 class="main-title">πŸ† World Cup AI Assistant</h1>', unsafe_allow_html=True)
180
  st.write(f"**Environment:** `{ENVIRONMENT}` \nAsk any question about World Cup history and get an AI-powered answer!")
181
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
  # Background music (always visible audio player)
183
  try:
184
  import requests
 
171
  margin-top: 5px;
172
  font-style: italic;
173
  }
174
+
175
+ /* Book series section responsive design */
176
+ @media (max-width: 768px) {
177
+ .book-series-container {
178
+ padding: 15px !important;
179
+ margin: 15px 0 !important;
180
+ }
181
+
182
+ .book-series-title {
183
+ font-size: 1.5em !important;
184
+ }
185
+
186
+ .book-series-buttons {
187
+ flex-direction: column !important;
188
+ gap: 10px !important;
189
+ }
190
+
191
+ .book-series-button {
192
+ width: 100% !important;
193
+ text-align: center !important;
194
+ }
195
+ }
196
+
197
+ /* Enhanced book series styling for better visibility */
198
+ .book-series-section {
199
+ animation: fadeInUp 0.8s ease-out;
200
+ }
201
+
202
+ @keyframes fadeInUp {
203
+ from {
204
+ opacity: 0;
205
+ transform: translateY(30px);
206
+ }
207
+ to {
208
+ opacity: 1;
209
+ transform: translateY(0);
210
+ }
211
+ }
212
+
213
+ /* Hover effects for book series elements */
214
+ .book-series-card:hover {
215
+ transform: translateY(-5px);
216
+ box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
217
+ }
218
  </style>
219
  """, unsafe_allow_html=True)
220
 
 
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:
266
  import requests