diff --git "a/app.py" "b/app.py"
--- "a/app.py"
+++ "b/app.py"
@@ -2281,6 +2281,1438 @@ def render_card_html(card_id: str, card_info: dict, primary: str, secondary: str
|||||||||||||||
"""
+
+ # E-COMMERCE EXTENDED (15)
+ elif card_id == "cart_item":
+ base_style = "width: 100%; max-width: 300px; height: 100px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; display: flex; gap: 12px; padding: 12px;"
+ content = f"""
+ 👟
+
+
+
Running Shoes
+
Size: 42, Color: Blue
+
+
+
+ -
+ 2
+ +
+
+
$158.00
+
+
+ """
+ elif card_id == "wishlist_item":
+ base_style = "width: 100%; max-width: 200px; min-height: 260px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white;"
+ content = f"""
+
+
+
Running Shoes
+
$79.00
+
+ """
+ elif card_id == "checkout_step":
+ base_style = "width: 100%; max-width: 300px; min-height: 80px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+
+
+ """
+ elif card_id == "shipping_option":
+ base_style = "width: 100%; max-width: 280px; height: 80px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px; display: flex; align-items: center; gap: 12px;"
+ content = f"""
+
+
+
Express Delivery
+
Arrives tomorrow
+
+ $9.99
+ """
+ elif card_id == "product_review":
+ content = f"""
+
+
+
👤
+
+
John Doe ✓ Verified
+
⭐⭐⭐⭐⭐
+
+
+
Great product! Exactly as described. Fast shipping too.
+
👍 45 people found this helpful
+
+ """
+ elif card_id == "category_grid":
+ base_style = "width: 100%; max-width: 120px; height: 120px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;"
+ content = f"""
+ 👕
+ Clothing
+ 245 items
+ """
+ elif card_id == "filter_chip":
+ base_style = "width: 100%; max-width: 100px; height: 36px; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: {primary}; color: white; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 6px;"
+ content = f"""
+ On Sale
+ ×
+ """
+ elif card_id == "order_summary":
+ base_style = "width: 100%; max-width: 280px; min-height: 180px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Order Summary
+
+
+ Subtotal (3 items)
+ $237.00
+
+
+ Shipping
+ $9.99
+
+
+ Discount
+ -$20.00
+
+
+
+ Total
+ $226.99
+
+ """
+ elif card_id == "payment_method":
+ base_style = "width: 100%; max-width: 280px; height: 80px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px; display: flex; align-items: center; gap: 12px;"
+ content = f"""
+ VISA
+
+
•••• 4242
+
Expires 12/25
+
+ DEFAULT
+ """
+ elif card_id == "order_tracking":
+ base_style = "width: 100%; max-width: 300px; min-height: 200px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Order #12345
+
+
+
✓
+
+
Order Placed
+
Dec 15, 2:30 PM
+
+
+
+
✓
+
+
Shipped
+
Dec 16, 10:00 AM
+
+
+
+
3
+
+
Delivered
+
Estimated: Dec 18
+
+
+
+ """
+ elif card_id == "brand_showcase":
+ base_style = "width: 100%; max-width: 200px; min-height: 160px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px;"
+ content = f"""
+ 🏷️
+ Nike
+ 1,234 products
+ Follow
+ """
+ elif card_id == "size_selector":
+ base_style = "width: 100%; max-width: 240px; height: 80px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Select Size
+
+ """
+ elif card_id == "color_picker":
+ base_style = "width: 100%; max-width: 200px; height: 80px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Color: Ocean Blue
+
+ """
+ elif card_id == "flash_sale":
+ base_style = "width: 100%; max-width: 240px; min-height: 200px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: linear-gradient(135deg, #FF3B30, #FF9500);"
+ content = f"""
+
+
FLASH SALE
+
50% OFF
+
+
+ 📱
+ """
+ elif card_id == "related_products":
+ base_style = "width: 100%; max-width: 120px; min-height: 180px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white;"
+ content = f"""
+ 📱
+
+ """
+
+ # SOCIAL EXTENDED (10)
+ elif card_id == "comment_thread":
+ base_style = "width: 100%; max-width: 300px; min-height: 80px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 12px;"
+ content = f"""
+
+
👤
+
+
Alex Kim • 2h ago
+
This is amazing! Can't wait to try it out.
+
+ 👍 12
+ 💬 Reply
+
+
+
+ """
+ elif card_id == "reaction_bar":
+ base_style = "width: 100%; max-width: 200px; height: 48px; border-radius: 24px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 8px 16px; display: flex; align-items: center; justify-content: space-around; gap: 8px;"
+ content = f"""
+ 👍
+ ❤️
+ 😂
+ 😮
+ 😢
+ """
+ elif card_id == "share_sheet":
+ base_style = "width: 100%; max-width: 280px; min-height: 160px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Share
+
+ """
+ elif card_id == "follower_item":
+ base_style = "width: 100%; max-width: 280px; height: 72px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 12px; display: flex; align-items: center; gap: 12px;"
+ content = f"""
+ 👤
+
+
Emma Watson
+
Followed by john_doe + 12 others
+
+ Follow
+ """
+ elif card_id == "story_ring":
+ base_style = "width: 100%; max-width: 80px; height: 100px; display: flex; flex-direction: column; align-items: center; gap: 6px;"
+ content = f"""
+
+ John
+ """
+ elif card_id == "reel_preview":
+ base_style = "width: 100%; max-width: 160px; height: 280px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: relative;"
+ content = f"""
+ ▶️
+ 0:45
+
+ """
+ elif card_id == "live_streaming":
+ base_style = "width: 100%; max-width: 260px; height: 160px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: relative;"
+ content = f"""
+
+ 🔴 LIVE
+ 👁️ 2.3K
+
+
Tech Talk Live
+
with @johndoe
+
+ """
+ elif card_id == "poll_card":
+ base_style = "width: 100%; max-width: 280px; min-height: 160px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Which feature do you want next?
+
+
+
+
+ Dark Mode
+ 65%
+
+
+
+
+ Notifications
+ 35%
+
+
+
+ 1,234 votes • 2 days left
+ """
+ elif card_id == "mention_tag":
+ base_style = "width: 100%; max-width: 120px; height: 36px; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1); background: {primary}10; color: {primary}; padding: 0 14px; display: flex; align-items: center; justify-content: center;"
+ content = f"""
+ @johndoe
+ """
+ elif card_id == "group_member":
+ base_style = "width: 100%; max-width: 280px; height: 72px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 12px; display: flex; align-items: center; gap: 12px;"
+ content = f"""
+ 👤
+
+
Sarah Johnson ADMIN
+
Joined 3 months ago
+
+ ⋮
+ """
+
+ # FINANCE & BANKING (10)
+ elif card_id == "account_balance":
+ base_style = "width: 100%; max-width: 280px; min-height: 120px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: linear-gradient(135deg, {primary}, {secondary}); padding: 16px; color: white;"
+ content = f"""
+ Checking Account
+ $12,459.32
+ **** 4242
+ """
+ elif card_id == "transaction_item":
+ base_style = "width: 100%; max-width: 300px; height: 72px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 12px; display: flex; align-items: center; gap: 12px;"
+ content = f"""
+ 🏪
+
+
Amazon
+
Shopping • Today at 2:30 PM
+
+ -$49.99
+ """
+ elif card_id == "credit_card":
+ base_style = "width: 100%; max-width: 320px; height: 200px; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.2); background: linear-gradient(135deg, {primary}, {secondary}); padding: 20px; color: white; position: relative;"
+ content = f"""
+ 💳
+ **** **** **** 4242
+
+ """
+ elif card_id == "transfer_form":
+ base_style = "width: 100%; max-width: 280px; min-height: 180px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Transfer Money
+
+
To
+
John Doe (**** 5678)
+
+
+ Confirm Transfer
+ """
+ elif card_id == "investment_item":
+ base_style = "width: 100%; max-width: 280px; height: 100px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 14px;"
+ content = f"""
+
+
+ """
+ elif card_id == "crypto_wallet":
+ base_style = "width: 100%; max-width: 260px; height: 100px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+
+
+
+
0.0245 BTC
+
≈ $1,089.50
+
+
+5.2%
+
+ """
+ elif card_id == "bill_payment":
+ base_style = "width: 100%; max-width: 280px; height: 90px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 14px; display: flex; align-items: center; gap: 12px;"
+ content = f"""
+ ⚡
+
+
Electricity Bill
+
Due: Dec 25, 2024
+
$124.50
+
+ Pay
+ """
+ elif card_id == "budget_category":
+ base_style = "width: 100%; max-width: 260px; height: 100px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+
+
🍔
+
+
Food & Dining
+
$450 of $600
+
+
+
+ $150 remaining
+ """
+ elif card_id == "loan_summary":
+ base_style = "width: 100%; max-width: 280px; min-height: 140px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Home Loan
+
+
+ Outstanding
+ $245,000
+
+
+ Monthly EMI
+ $1,850
+
+
+ Next Payment
+ Jan 1, 2025
+
+
+ """
+ elif card_id == "statement_month":
+ base_style = "width: 100%; max-width: 240px; height: 80px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 14px; display: flex; align-items: center; justify-content: space-between;"
+ content = f"""
+
+
December 2024
+
Total Spent
+
$3,245.80
+
+ 📄
+ """
+
+ # HEALTH & FITNESS (10)
+ elif card_id == "workout_exercise":
+ base_style = "width: 100%; max-width: 280px; height: 100px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 14px;"
+ content = f"""
+
+
+
Push-ups
+
Chest • Triceps
+
+
💪
+
+
+
3 sets
+
15 reps
+
60s rest
+
+ """
+ elif card_id == "nutrition_log":
+ base_style = "width: 100%; max-width: 300px; height: 90px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 14px; display: flex; gap: 12px;"
+ content = f"""
+ 🥗
+
+
Grilled Chicken Salad
+
245 cal
+
P: 32g • C: 12g • F: 8g
+
+ """
+ elif card_id == "step_counter":
+ base_style = "width: 100%; max-width: 160px; height: 160px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;"
+ content = f"""
+
+ Goal: 10,000
+ """
+ elif card_id == "heart_rate":
+ base_style = "width: 100%; max-width: 240px; height: 100px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+
+
+ """
+ elif card_id == "sleep_tracker":
+ base_style = "width: 100%; max-width: 280px; min-height: 140px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+
+
+
Sleep Quality
+
Last night
+
+
🌙
+
+ 7h 32m
+
+
Deep: 2h 15m
+
Light: 4h 45m
+
REM: 32m
+
+ """
+ elif card_id == "water_intake":
+ base_style = "width: 100%; max-width: 200px; height: 140px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px; display: flex; flex-direction: column; justify-content: space-between;"
+ content = f"""
+
+
Water Intake
+
+
6 of 8 glasses
+
+ + Add Glass
+ """
+ elif card_id == "bmi_calculator":
+ base_style = "width: 100%; max-width: 220px; height: 140px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;"
+ content = f"""
+ Body Mass Index
+ 22.5
+ Normal Weight
+ Height: 175cm • Weight: 69kg
+ """
+ elif card_id == "calorie_goal":
+ base_style = "width: 100%; max-width: 240px; height: 160px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Daily Calories
+
+
+
1,430
+
Remaining of 2,000
+
+ """
+ elif card_id == "meditation_session":
+ base_style = "width: 100%; max-width: 260px; height: 160px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: linear-gradient(135deg, {primary}, {secondary}); padding: 20px; color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;"
+ content = f"""
+ 🧘
+ Mindful Breathing
+ 10 minutes
+ ▶️
+ """
+ elif card_id == "weight_progress":
+ base_style = "width: 100%; max-width: 280px; min-height: 160px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Weight Progress
+
+
+ """
+
+ # EDUCATION & LEARNING (8)
+ elif card_id == "course_card":
+ base_style = "width: 100%; max-width: 280px; min-height: 280px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white;"
+ content = f"""
+ 📚
+
+
Complete Web Development Bootcamp
+
by Dr. Angela Yu
+
+
+
👥 45,234 students
+
$89.99
+
+
+ """
+ elif card_id == "lesson_item":
+ base_style = "width: 100%; max-width: 300px; height: 72px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 12px; display: flex; align-items: center; gap: 12px;"
+ content = f"""
+ 5
+
+
Introduction to React Hooks
+
⏱️ 18 min • 📹 Video
+
+ ✓
+ """
+ elif card_id == "quiz_question":
+ base_style = "width: 100%; max-width: 300px; min-height: 200px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Question 3 of 10
+ What is the correct way to create a useState hook in React?
+
+
A) const [state, setState] = useState()
+
B) const [state, setState] = useState(initialValue)
+
C) useState(state, setState)
+
D) const state = useState()
+
+ """
+ elif card_id == "certificate_card":
+ base_style = "width: 100%; max-width: 320px; height: 200px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: linear-gradient(135deg, #f5f5f5, #e0e0e0); padding: 20px; position: relative; border: 4px solid {primary};"
+ content = f"""
+
+
CERTIFICATE OF COMPLETION
+
Web Development Bootcamp
+
Awarded to John Doe
+
Completed on December 15, 2024
+
🏆
+
+ """
+ elif card_id == "learning_progress":
+ base_style = "width: 100%; max-width: 260px; height: 100px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ JavaScript Masterclass
+
+
12 of 24 modules
+
50%
+
+
+ """
+ elif card_id == "assignment_card":
+ base_style = "width: 100%; max-width: 280px; min-height: 100px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 14px;"
+ content = f"""
+
+
+
Build a React Todo App
+
Due: Dec 20, 2024
+
+
PENDING
+
+ 📎 Upload Submission
+ """
+ elif card_id == "grade_item":
+ base_style = "width: 100%; max-width: 260px; height: 80px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 14px; display: flex; align-items: center; justify-content: space-between;"
+ content = f"""
+
+
Mathematics
+
Final Exam • 85/100 points
+
+ A
+ """
+ elif card_id == "study_streak":
+ base_style = "width: 100%; max-width: 180px; height: 140px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;"
+ content = f"""
+ 🔥
+ 15
+ Day Streak
+ Keep it up!
+ """
+
+ # TRAVEL & TOURISM (8) - FOOD & RESTAURANT (8) - REAL ESTATE (7) - MUSIC & AUDIO (7) - GAMING (6) - PRODUCTIVITY (6) - DASHBOARD WIDGETS (8)
+ elif card_id == "flight_card":
+ base_style = "width: 100%; max-width: 320px; min-height: 160px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+
+
+
+
✈️
+
+
2h 45m • Direct
+
+
+
+
+
Delta Airlines
+
$299
+
+ """
+ elif card_id == "hotel_listing":
+ base_style = "width: 100%; max-width: 280px; min-height: 240px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white;"
+ content = f"""
+ 🏨
+
+
Grand Hotel Downtown
+
⭐⭐⭐⭐⭐
+
📍 Times Square, New York • WiFi, Pool, Gym
+
+
+ """
+ elif card_id == "booking_confirm":
+ base_style = "width: 100%; max-width: 300px; min-height: 200px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+
+
Booking Confirmed
+
ID: BK-12345678
+
+
+
Grand Hotel
+
Check-in: Dec 20, 2024
+
Check-out: Dec 22, 2024
+
2 Guests • 1 Room
+
+
+ """
+ elif card_id == "destination_card":
+ base_style = "width: 100%; max-width: 240px; height: 200px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: relative;"
+ content = f"""
+
+ HOT DEAL
+
+
🗼
+
Paris
+
France • From $599
+
+ """
+ elif card_id == "itinerary_day":
+ base_style = "width: 100%; max-width: 300px; min-height: 180px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Day 2 - Paris
+
+
+
09:00
+
+
Eiffel Tower
+
📍 Champ de Mars
+
+
+
+
13:00
+
+
Louvre Museum
+
📍 Rue de Rivoli
+
+
+
+
19:00
+
+
Seine River Cruise
+
📍 Port de la Bourdonnais
+
+
+
+ """
+ elif card_id == "map_location":
+ base_style = "width: 100%; max-width: 280px; height: 100px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 14px; display: flex; gap: 12px;"
+ content = f"""
+ 📍
+
+
Central Park
+
5th Ave, New York, NY
+
2.5 km away
+
+ →
+ """
+ elif card_id == "travel_review":
+ base_style = "width: 100%; max-width: 280px; min-height: 120px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 14px;"
+ content = f"""
+
+ "Amazing experience! The hotel was perfect and the location was great."
+ 📷 3 photos • 👍 24 helpful • 2 weeks ago
+ """
+ elif card_id == "passport_info":
+ base_style = "width: 100%; max-width: 280px; height: 100px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 14px;"
+ content = f"""
+
+ Number: A12345678
+ Nationality: United States
+ Expires: Mar 15, 2025
+ """
+ elif card_id == "menu_item":
+ base_style = "width: 100%; max-width: 280px; min-height: 240px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white;"
+ content = f"""
+ 🍔
+
+
Classic Burger
+
Beef patty, lettuce, tomato, cheese, special sauce
+
+
+ """
+ elif card_id == "recipe_card":
+ base_style = "width: 100%; max-width: 280px; min-height: 260px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white;"
+ content = f"""
+ 🍝
+
+
Spaghetti Carbonara
+
+
⏱️ 25 min
+
👨🍳 Medium
+
🍽️ 4 servings
+
+
+
⭐⭐⭐⭐⭐
+
(2.5K reviews)
+
+
+ """
+ elif card_id == "order_item":
+ base_style = "width: 100%; max-width: 300px; height: 100px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 12px; display: flex; gap: 12px;"
+ content = f"""
+ 🍕
+
+
Margherita Pizza
+
x2 • Large • Extra cheese
+
$28.00
+
+ """
+ elif card_id == "reservation_slot":
+ base_style = "width: 100%; max-width: 240px; height: 80px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 14px; display: flex; align-items: center; justify-content: space-between;"
+ content = f"""
+
+
7:30 PM
+
4 seats available
+
+ Book
+ """
+ elif card_id == "delivery_tracker":
+ base_style = "width: 100%; max-width: 300px; min-height: 160px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Order #5678
+
+
🚗 Out for Delivery
+
Your order will arrive in 15-20 minutes
+
+
+
👤
+
+
John Driver
+
⭐ 4.9 • 245 deliveries
+
+
+ """
+ elif card_id == "restaurant_rating":
+ base_style = "width: 100%; max-width: 260px; height: 120px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+
+
4.5
+
⭐⭐���⭐⭐
+
Based on 1,234 reviews
+
+
+ """
+ elif card_id == "ingredient_list":
+ base_style = "width: 100%; max-width: 260px; height: 60px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 12px; display: flex; align-items: center; gap: 12px;"
+ content = f"""
+
+
+ """
+ elif card_id == "dietary_tag":
+ base_style = "width: 100%; max-width: 100px; height: 32px; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1); background: #34C759; color: white; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 4px;"
+ content = f"""
+ 🌱
+ Vegan
+ """
+ elif card_id == "property_listing":
+ base_style = "width: 100%; max-width: 300px; min-height: 280px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white;"
+ content = f"""
+ 🏠
+
+
$425,000
+
Modern Downtown Apartment
+
📍 123 Main St, New York
+
+
🛏️ 2 beds
+
🚿 2 baths
+
📐 1,200 sqft
+
+
+ """
+ elif card_id == "agent_card":
+ base_style = "width: 100%; max-width: 240px; min-height: 180px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px;"
+ content = f"""
+ 👤
+
+
Sarah Johnson
+
Real Estate Agent
+
+ 245 properties sold • ⭐ 4.9
+ Contact
+ """
+ elif card_id == "virtual_tour":
+ base_style = "width: 100%; max-width: 240px; height: 140px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: linear-gradient(135deg, {primary}, {secondary}); padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: white;"
+ content = f"""
+ 🔄
+ 360° Virtual Tour
+ Living Room
+ View Tour
+ """
+ elif card_id == "mortgage_calc":
+ base_style = "width: 100%; max-width: 280px; min-height: 160px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Mortgage Calculator
+
+
+ Loan Amount
+ $340,000
+
+
+ Interest Rate
+ 6.5%
+
+
+ Term
+ 30 years
+
+
+
+
Monthly Payment
+
$2,148
+
+ """
+ elif card_id == "property_compare":
+ base_style = "width: 100%; max-width: 320px; min-height: 180px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Property Comparison
+
+
+
Property A
+
$425,000
+
2 beds • 2 baths
+
1,200 sqft
+
+
+
Property B
+
$399,000
+
2 beds • 1 bath
+
1,100 sqft
+
+
+ """
+ elif card_id == "favorite_property":
+ base_style = "width: 100%; max-width: 280px; height: 100px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 12px; display: flex; gap: 12px;"
+ content = f"""
+ 🏠
+
+
$425,000
+
123 Main St, NY
+
2 beds • 2 baths
+
+ ❤️
+ """
+ elif card_id == "open_house":
+ base_style = "width: 100%; max-width: 260px; height: 100px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 14px;"
+ content = f"""
+
+
+
Open House
+
Saturday, Dec 21
+
10:00 AM - 2:00 PM
+
+
🏠
+
+ 📍 123 Oak Street, Brooklyn
+ """
+ elif card_id == "playlist_card":
+ base_style = "width: 100%; max-width: 200px; min-height: 240px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white;"
+ content = f"""
+ 🎵
+
+
Chill Vibes
+
Created by Spotify • 50 songs
+
▶️ Play
+
+ """
+ elif card_id == "song_item":
+ base_style = "width: 100%; max-width: 300px; height: 72px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 12px; display: flex; align-items: center; gap: 12px;"
+ content = f"""
+ 🎵
+
+
Blinding Lights
+
The Weeknd
+
+ 3:20
+ ⋮
+ """
+ elif card_id == "album_cover":
+ base_style = "width: 100%; max-width: 200px; height: 240px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 12px; display: flex; flex-direction: column; gap: 10px;"
+ content = f"""
+ 💿
+
+
After Hours
+
The Weeknd • 2020
+
+ """
+ elif card_id == "artist_profile":
+ base_style = "width: 100%; max-width: 240px; min-height: 200px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px;"
+ content = f"""
+ 🎤
+
+
The Weeknd
+
85M monthly listeners
+
+ Follow
+ """
+ elif card_id == "podcast_episode":
+ base_style = "width: 100%; max-width: 300px; height: 100px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 12px; display: flex; gap: 12px;"
+ content = f"""
+ 🎙️
+
+
Episode 42: Future of AI
+
Dec 15, 2024 • 45 min
+
▶️ Play
+
+ """
+ elif card_id == "radio_station":
+ base_style = "width: 100%; max-width: 200px; height: 140px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;"
+ content = f"""
+ 📻
+
+
Pop Hits Radio
+
Now: Blinding Lights
+
+ Tune In
+ """
+ elif card_id == "equalizer_preset":
+ base_style = "width: 100%; max-width: 240px; height: 140px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Bass Boost
+
+ Apply
+ """
+ elif card_id == "achievement_badge":
+ base_style = "width: 100%; max-width: 160px; height: 180px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;"
+ content = f"""
+ 🏆
+
+
First Victory
+
100 points
+
+ Unlocked: Dec 15, 2024
+ """
+ elif card_id == "leaderboard_entry":
+ base_style = "width: 100%; max-width: 300px; height: 72px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 12px; display: flex; align-items: center; gap: 12px;"
+ content = f"""
+ 1
+ 👤
+
+
ProGamer123
+
Level 45
+
+ 12,458
+ ↗ +2
+ """
+ elif card_id == "character_card":
+ base_style = "width: 100%; max-width: 200px; min-height: 280px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white;"
+ content = f"""
+ ⚔️
+
+
Warrior
+
Level 24 • Epic
+
+
⚡ Attack: 85
+
🛡️ Defense: 72
+
❤️ Health: 450
+
+
+ """
+ elif card_id == "game_item":
+ base_style = "width: 100%; max-width: 140px; height: 160px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px;"
+ content = f"""
+ ⚔️
+
+
Legendary Sword
+
LEGENDARY
+
+ Quantity: 1
+ """
+ elif card_id == "quest_card":
+ base_style = "width: 100%; max-width: 280px; min-height: 120px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 14px;"
+ content = f"""
+
+
+
Defeat the Dragon
+
Slay the ancient dragon in the Dark Cave
+
+
🐉
+
+
+
+ Progress
+ 3/5 defeated
+
+
+
+ Reward: 500 Gold, Epic Armor
+ """
+ elif card_id == "player_stats":
+ base_style = "width: 100%; max-width: 260px; min-height: 160px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Player Stats
+
+
+
+ """
+ elif card_id == "task_item":
+ base_style = "width: 100%; max-width: 280px; height: 60px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 12px; display: flex; align-items: center; gap: 12px;"
+ content = f"""
+
+
+
Finish project proposal
+
Due: Tomorrow • High priority
+
+ """
+ elif card_id == "note_card":
+ base_style = "width: 100%; max-width: 220px; min-height: 140px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: #FFF9C4; padding: 14px;"
+ content = f"""
+ Meeting Notes
+ Discussed Q4 strategy and team goals. Follow up with marketing...
+
+ Dec 15, 2024
+ """
+ elif card_id == "reminder_alert":
+ base_style = "width: 100%; max-width: 280px; height: 80px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 14px; display: flex; align-items: center; gap: 12px;"
+ content = f"""
+ 🔔
+
+
Team Meeting
+
in 15 minutes
+
+
+ Snooze
+ OK
+
+ """
+ elif card_id == "timer_widget":
+ base_style = "width: 100%; max-width: 180px; height: 180px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;"
+ content = f"""
+
+
+ ▶️
+ ⟳
+
+ """
+ elif card_id == "calendar_event":
+ base_style = "width: 100%; max-width: 280px; height: 90px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 14px; border-left: 4px solid {primary};"
+ content = f"""
+
+
+
Product Launch Meeting
+
⏱️ 2:00 PM - 3:30 PM
+
+
+ 📍 Conference Room A • 👥 8 attendees
+ """
+ elif card_id == "project_card":
+ base_style = "width: 100%; max-width: 280px; min-height: 140px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Website Redesign
+
+
+ Deadline: Dec 31, 2024
+ """
+ elif card_id == "kpi_card":
+ base_style = "width: 100%; max-width: 200px; height: 120px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px; display: flex; flex-direction: column; justify-content: space-between;"
+ content = f"""
+ Revenue
+ $124K
+
+ """
+ elif card_id == "pie_chart":
+ base_style = "width: 100%; max-width: 240px; height: 200px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Sales by Category
+
+
+ """
+ elif card_id == "line_graph":
+ base_style = "width: 100%; max-width: 300px; height: 160px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Monthly Revenue
+
+
+ Jan
+ Feb
+ Mar
+ Apr
+ May
+ Jun
+
+ """
+ elif card_id == "bar_chart":
+ base_style = "width: 100%; max-width: 260px; height: 160px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Weekly Activity
+
+ """
+ elif card_id == "metric_alert":
+ base_style = "width: 100%; max-width: 280px; height: 100px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: #FFF3CD; border: 1px solid #FFE69C; padding: 14px; display: flex; align-items: center; gap: 12px;"
+ content = f"""
+ ⚠️
+
+
High CPU Usage
+
Server load at 92% - exceeds threshold
+
+ View
+ """
+ elif card_id == "summary_widget":
+ base_style = "width: 100%; max-width: 300px; min-height: 140px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Summary • Last 7 days
+
+ """
+ elif card_id == "activity_feed":
+ base_style = "width: 100%; max-width: 300px; height: 72px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 12px; display: flex; align-items: center; gap: 12px;"
+ content = f"""
+ ✓
+
+
John Doe completed task "Design Review"
+
2 hours ago
+
+ """
+ elif card_id == "heatmap_widget":
+ base_style = "width: 100%; max-width: 300px; height: 140px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: white; padding: 16px;"
+ content = f"""
+ Activity Heatmap
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Less activity ← → More activity
+ """
+
else:
content = "Card Preview
"
@@ -2607,9 +4039,9 @@ def generate_card_gallery(theme_json: str = ""):
html_parts = []
html_parts.append("""
-
🎴 Card Catalog (30 Card Types)
+
🎴 Card Catalog (130+ Card Types)
- 30 tipologie di cards diverse - product, profile, social, content, stats, messaging, special - renderizzate con i tuoi colori
+ 130+ tipologie di cards - e-commerce, social, finance, health, education, travel, food, real estate, music, gaming, productivity, dashboard - tutte renderizzate con i tuoi colori
""")
@@ -3173,10 +4605,10 @@ Snapchat - bright colors, fun filters, youthful design""",
# Card Gallery Section
gr.Markdown("---")
- with gr.Accordion("🎴 Card Catalog (30 Card Types)", open=False):
+ with gr.Accordion("🎴 Card Catalog (130+ Card Types)", open=False):
gr.Markdown("""
- Tutte le 30 tipologie di cards renderizzate in HTML/CSS.
- Product, Profile, Social, Content, Stats, Messaging, Special - tutte con i tuoi colori del tema.
+ Tutte le 130+ tipologie di cards renderizzate in HTML/CSS.
+ E-commerce, Social, Finance, Health, Education, Travel, Food, Real Estate, Music, Gaming, Productivity, Dashboard - tutte con i tuoi colori del tema.
""")
# Refresh button to update with new theme