stories / index.html
digr's picture
Add 2 files
ffdd0b7 verified
Raw History Blame Contribute Delete
62.5 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>AI Story Spark - Magical AI Comics for Kids!</title> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Baloo+2:wght@700&family=Poppins:wght@400;600&display=swap" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <script src="https://cdn.tailwindcss.com"></script> <style> :root { --primary-blue: #3498db; --secondary-yellow: #f1c40f; --accent-green: #2ecc71; --accent-orange: #e67e22; --text-dark: #333; --text-light: #fff; --bg-light: #f9f9f9; --border-color: #eee; --font-headline: 'Baloo 2', cursive; --font-body: 'Poppins', sans-serif; --shadow-sm: 0 1px 3px rgba(0,0,0,0.12); --shadow-md: 0 4px 6px rgba(0,0,0,0.1); --shadow-lg: 0 10px 15px rgba(0,0,0,0.1); --shadow-xl: 0 20px 25px rgba(0,0,0,0.1); } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: var(--font-body); color: var(--text-dark); line-height: 1.6; background-color: var(--bg-light); scroll-behavior: smooth; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* Animation Classes */ @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } } .float-animation { animation: float 3s ease-in-out infinite; } .pulse-animation { animation: pulse 2s ease-in-out infinite; } .fade-in { animation: fadeIn 0.8s ease-in forwards; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Header Styles */ .main-header { background: var(--text-light); padding: 15px 0; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; transition: all 0.3s ease; } .main-header.scrolled { padding: 10px 0; box-shadow: var(--shadow-md); } .logo { font-family: var(--font-headline); font-size: 1.8rem; color: var(--primary-blue); text-decoration: none; display: flex; align-items: center; gap: 8px; } .logo span { color: var(--accent-orange); } .logo-icon { font-size: 1.5rem; color: var(--secondary-yellow); } /* Button Styles */ .cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background-color: var(--secondary-yellow); color: var(--text-dark); padding: 12px 30px; font-size: 1.1rem; font-weight: 600; border: none; border-radius: 30px; text-decoration: none; cursor: pointer; transition: all 0.3s ease; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; } .cta-button:hover { background-color: #eab500; transform: translateY(-2px); box-shadow: var(--shadow-md); } .cta-button:active { transform: translateY(0); } .cta-button::after { content: ''; position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; background: rgba(255, 255, 255, 0.5); opacity: 0; border-radius: 100%; transform: scale(1, 1) translate(-50%, -50%); transform-origin: 50% 50%; } .cta-button:focus:not(:active)::after { animation: ripple 1s ease-out; } @keyframes ripple { 0% { transform: scale(0, 0); opacity: 0.5; } 100% { transform: scale(20, 20); opacity: 0; } } /* Hero Section */ .hero { background: linear-gradient(135deg, var(--primary-blue), var(--accent-green)); color: var(--text-light); padding: 100px 0 80px; text-align: center; position: relative; overflow: hidden; } .hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); opacity: 0.2; z-index: 1; } .hero .container { position: relative; z-index: 2; } .hero h1 { font-family: var(--font-headline); font-size: clamp(2.5rem, 6vw, 3.8rem); margin-bottom: 15px; line-height: 1.2; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); } .hero p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px; } .hero-visual { margin-top: 40px; max-width: 90%; margin-left: auto; margin-right: auto; position: relative; } .hero-visual img { max-width: 100%; height: auto; max-height: 350px; border-radius: 10px; box-shadow: var(--shadow-xl); background-color: #fff; padding: 10px; position: relative; z-index: 2; } .hero-visual::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80%; height: 20px; background: rgba(0,0,0,0.1); filter: blur(10px); z-index: 1; } /* Problem Section */ .problem-need { padding: 80px 0; text-align: center; background-color: #f5f9ff; } .problem-need h2 { font-family: var(--font-headline); font-size: 2rem; margin-bottom: 15px; color: var(--primary-blue); } .problem-need p { max-width: 650px; margin: 0 auto; font-size: 1.05rem; color: #555; } /* Solution Section */ .solution-intro { background-color: var(--text-light); padding: 80px 0; text-align: center; } .solution-intro h2 { font-family: var(--font-headline); font-size: 2.2rem; margin-bottom: 20px; color: var(--accent-green); } .solution-intro p { max-width: 700px; margin: 0 auto 30px; font-size: 1.1rem; } .benefits-list { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 30px; } .benefits-list li { background-color: var(--bg-light); padding: 15px 20px; border-radius: 8px; font-weight: 600; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 10px; transition: all 0.3s ease; } .benefits-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); } .benefits-list li span.emoji { font-size: 1.5rem; } /* Product Showcase */ .product-showcase { padding: 80px 0; background-color: #eef8ff; } .product-showcase h2 { text-align: center; font-family: var(--font-headline); font-size: 2.5rem; margin-bottom: 40px; color: var(--primary-blue); } .comics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; } .comic-card { background-color: var(--text-light); border-radius: 10px; box-shadow: var(--shadow-md); overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s ease; position: relative; } .comic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); } .comic-card img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid var(--border-color); background-color: var(--border-color); } .comic-card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; } .comic-card h3 { font-family: var(--font-body); font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; } .comic-card p { font-size: 0.95rem; color: #555; margin-bottom: 15px; flex-grow: 1; } .comic-style { display: inline-block; background-color: var(--primary-blue); color: var(--text-light); font-size: 0.8rem; padding: 3px 8px; border-radius: 5px; margin-bottom: 15px; align-self: flex-start; } .comic-style.manga { background-color: #e74c3c; } .comic-style.render3d { background-color: #9b59b6; } .comic-style.medieval { background-color: #d35400;} .comic-style.fantasy { background-color: #8e44ad;} .comic-style.scifi { background-color: #2980b9;} .comic-card .cta-button { margin-top: auto; padding: 10px 20px; font-size: 1rem; align-self: center; width: 80%; text-align: center; } .show-all-container { text-align: center; margin-top: 40px; } .show-all-container .cta-button { background-color: var(--primary-blue); color: var(--text-light); } .show-all-container .cta-button:hover { background-color: #2980b9; } /* How It's Made Section */ .how-its-made { background-color: var(--text-light); padding: 80px 0; text-align: center; } .how-its-made h2 { font-family: var(--font-headline); font-size: 2rem; margin-bottom: 15px; color: var(--accent-orange); } .how-its-made p { max-width: 650px; margin: 0 auto; color: #555; } /* Process Steps */ .process-steps { display: flex; justify-content: center; gap: 20px; margin-top: 40px; flex-wrap: wrap; } .process-step { background: white; border-radius: 10px; padding: 20px; width: 180px; box-shadow: var(--shadow-sm); transition: all 0.3s ease; position: relative; } .process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); } .process-step-icon { font-size: 2rem; color: var(--primary-blue); margin-bottom: 10px; } .process-step h3 { font-size: 1.1rem; margin-bottom: 8px; } .process-step p { font-size: 0.85rem; color: #666; } /* Final CTA Section */ .final-cta { background: linear-gradient(135deg, var(--secondary-yellow), var(--accent-orange)); color: var(--text-dark); padding: 100px 0; text-align: center; } .final-cta h2 { font-family: var(--font-headline); font-size: 2.5rem; margin-bottom: 20px; } .pricing-options { display: flex; justify-content: center; gap: 30px; margin-top: 30px; flex-wrap: wrap; } .price-option { background-color: rgba(255, 255, 255, 0.9); padding: 30px; border-radius: 10px; min-width: 280px; box-shadow: var(--shadow-lg); transition: all 0.3s ease; position: relative; overflow: hidden; } .price-option:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); } .price-option.popular::before { content: 'Most Popular'; position: absolute; top: 15px; right: -30px; background-color: var(--accent-green); color: white; padding: 5px 30px; transform: rotate(45deg); font-size: 0.8rem; font-weight: bold; } .price-option h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--primary-blue); } .price-option .price { font-size: 2rem; font-weight: 700; color: var(--accent-green); margin-bottom: 15px; } .price-option ul { list-style: none; margin-bottom: 20px; text-align: left; } .price-option ul li { margin-bottom: 8px; position: relative; padding-left: 25px; } .price-option ul li::before { content: '✓'; color: var(--accent-green); margin-right: 8px; position: absolute; left: 0; font-weight: bold; } .final-cta .cta-button { background-color: var(--primary-blue); color: var(--text-light); } .final-cta .cta-button:hover { background-color: #2980b9; } /* Footer */ .main-footer { background-color: var(--text-dark); color: var(--text-light); text-align: center; padding: 40px 0; margin-top: 0; } .main-footer a { color: var(--primary-blue); text-decoration: none; margin: 0 10px; transition: all 0.3s ease; } .main-footer a:hover { text-decoration: underline; color: var(--secondary-yellow); } .social-links { display: flex; justify-content: center; gap: 20px; margin: 20px 0; } .social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background-color: rgba(255,255,255,0.1); color: white; transition: all 0.3s ease; } .social-links a:hover { background-color: var(--primary-blue); transform: translateY(-3px); } /* Products Page Specific Styles */ #products-page-content { display: none; padding: 40px 0; background-color: #f5f9ff; min-height: 100vh; } #products-page-content.visible { display: block; } .products-page-header { text-align: center; margin-bottom: 40px; } .products-page-header h1 { font-family: var(--font-headline); font-size: 2.8rem; color: var(--primary-blue); margin-bottom: 10px; } .back-to-home-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 20px; color: var(--primary-blue); text-decoration: none; font-weight: 600; padding: 8px 15px; border: 1px solid var(--primary-blue); border-radius: 20px; transition: all 0.3s ease; } .back-to-home-link:hover { background-color: var(--primary-blue); color: var(--text-light); } /* Search and Filter */ .search-filter-container { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; } .search-box { padding: 10px 15px; border: 1px solid #ddd; border-radius: 30px; min-width: 250px; font-family: var(--font-body); box-shadow: var(--shadow-sm); transition: all 0.3s ease; } .search-box:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2); } .style-filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; } .style-filter button { padding: 8px 15px; border: 1px solid #ddd; background: white; border-radius: 20px; cursor: pointer; transition: all 0.3s ease; font-size: 0.9rem; } .style-filter button:hover, .style-filter button.active { background-color: var(--primary-blue); color: white; border-color: var(--primary-blue); } /* Responsive */ @media (max-width: 768px) { .hero { padding: 80px 0 60px; } .hero h1 { font-size: 2.5rem; } .hero p { font-size: 1rem; } .comics-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;} .pricing-options { flex-direction: column; align-items: center;} .price-option { width: 80%; max-width: 300px; } .benefits-list { flex-direction: column; align-items: center; } .process-steps { flex-direction: column; align-items: center; } .process-step { width: 100%; max-width: 250px; margin-bottom: 15px; } } @media (max-width: 480px) { .hero { padding: 70px 0 50px; } .logo { font-size: 1.5rem; } .hero h1 { font-size: 2rem; } .problem-need h2, .solution-intro h2, .how-its-made h2 { font-size: 1.8rem;} .product-showcase h2, .final-cta h2 { font-size: 2rem; } .comic-card h3 { font-size: 1.1rem; } .products-page-header h1 { font-size: 2.2rem; } .price-option { width: 90%; } } /* Loading Animation */ .loading-spinner { display: inline-block; width: 40px; height: 40px; border: 4px solid rgba(52, 152, 219, 0.2); border-radius: 50%; border-top-color: var(--primary-blue); animation: spin 1s ease-in-out infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Modal Styles */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease; } .modal-overlay.active { opacity: 1; visibility: visible; } .modal-content { background-color: white; border-radius: 10px; width: 90%; max-width: 500px; padding: 30px; position: relative; transform: translateY(20px); transition: all 0.3s ease; box-shadow: var(--shadow-xl); } .modal-overlay.active .modal-content { transform: translateY(0); } .close-modal { position: absolute; top: 15px; right: 15px; font-size: 1.5rem; cursor: pointer; color: #999; transition: all 0.3s ease; } .close-modal:hover { color: var(--primary-blue); } /* Toast Notification */ .toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background-color: var(--accent-green); color: white; padding: 15px 25px; border-radius: 5px; box-shadow: var(--shadow-md); z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease; } .toast.show { opacity: 1; visibility: visible; bottom: 30px; } </style> </head> <body> <!-- ===== Landing Page Content (Initially Visible) ===== --> <div id="landing-page-content"> <header class="main-header"> <div class="container"> <a href="#" class="logo"> <i class="fas fa-sparkles logo-icon"></i> AI Story <span>Spark</span> </a> </div> </header> <section class="hero"> <div class="container"> <h1>Spark Your Child's Imagination with Magical AI Comic Stories!</h1> <p>Discover beautifully illustrated, fun-filled stories created with AI magic. New tales added regularly! Instant download for endless reading fun.</p> <a href="#comics" class="cta-button pulse-animation"> <i class="fas fa-book-open"></i> Explore Our Story Collection! </a> <div class="hero-visual"> <img src="https://via.placeholder.com/600x350/3498db/FFFFFF?text=AI+Comic+Preview" alt="Montage of AI generated comic book covers" class="float-animation"> </div> </div> </section> <section class="problem-need"> <div class="container"> <h2>Looking for Fresh Bedtime Stories?</h2> <p>Finding new, engaging stories that kids truly love can be a challenge. Keep their imagination soaring and make reading exciting again with our constantly growing library of unique digital comics, generated by AI!</p> </div> </section> <section class="solution-intro"> <div class="container"> <h2>Welcome to AI Story Spark: Where Technology Creates Wonder!</h2> <p>We use the latest AI technology (like ChatGPT for ideas and specialized tools like AI Comic Factory) to craft unique children's stories filled with adventure, friendship, humor, and valuable lessons. Each comic features eye-catching, AI-generated illustrations in a variety of captivating styles.</p> <ul class="benefits-list"> <li><span class="emoji">✨</span> Unique Stories, Fresh Ideas</li> <li><span class="emoji">🎨</span> Stunning AI-Generated Art</li> <li><span class="emoji">📚</span> Fun Themes Kids Love</li> <li><span class="emoji">📱</span> Instant Digital Download</li> <li><span class="emoji">💰</span> Affordable Entertainment</li> </ul> </div> </section> <section class="product-showcase" id="comics"> <div class="container"> <h2>Dive Into Our Comic Universe!</h2> <div class="comics-grid" id="initial-comics-grid"> <!-- First 6 Visible Comics --> <div class="comic-card fade-in" style="animation-delay: 0.1s;"> <img src="https://via.placeholder.com/300x200/A5D6A7/333?text=Detective+Dog" alt="Detective Dog & Brave Cat Comic Preview"> <div class="comic-card-content"> <h3>Detective Dog & the Brave Cat</h3> <p>A classic tale of bravery! Can the clever cat save the worried pup from a tricky situation? Find out!</p> <span class="comic-style">Classic Comic Style</span> <button class="cta-button download-button" data-comic-id="dogcat01"> <i class="fas fa-shopping-cart"></i> Buy Now / Download </button> </div> </div> <div class="comic-card fade-in" style="animation-delay: 0.2s;"> <img src="https://via.placeholder.com/300x200/FFCC80/333?text=Flying+Penguin" alt="Pip the Penguin Flies Comic Preview"> <div class="comic-card-content"> <h3>Pip the Penguin Flies?</h3> <p>Pip believes penguins can soar! Follow his hilarious attempts in this heartwarming adventure about dreams.</p> <span class="comic-style render3d">3D Render Look</span> <button class="cta-button download-button" data-comic-id="penguin01"> <i class="fas fa-shopping-cart"></i> Buy Now / Download </button> </div> </div> <div class="comic-card fade-in" style="animation-delay: 0.3s;"> <img src="https://via.placeholder.com/300x200/BCAAA4/333?text=Listening+Fox" alt="Luna the Fox Learns to Listen Comic Preview"> <div class="comic-card-content"> <h3>Luna the Fox Learns to Listen</h3> <p>Luna loves to talk, but sometimes listening is more important! A charming story about friendship.</p> <span class="comic-style manga">Japanese Manga Style</span> <button class="cta-button download-button" data-comic-id="fox01"> <i class="fas fa-shopping-cart"></i> Buy Now / Download </button> </div> </div> <div class="comic-card fade-in" style="animation-delay: 0.4s;"> <img src="https://via.placeholder.com/300x200/80DEEA/333?text=Knight+Rabbit" alt="Medieval Quest Comic Preview"> <div class="comic-card-content"> <h3>The Knight's Missing Shield</h3> <p>Join Sir Reginald Rabbit on a quirky quest through a medieval land to find his lost shield before the joust!</p> <span class="comic-style medieval">Medieval Style</span> <button class="cta-button download-button" data-comic-id="knight01"> <i class="fas fa-shopping-cart"></i> Buy Now / Download </button> </div> </div> <div class="comic-card fade-in" style="animation-delay: 0.5s;"> <img src="https://via.placeholder.com/300x200/E1BEE7/333?text=Shy+Dragon" alt="Fantasy Dragon Comic Preview"> <div class="comic-card-content"> <h3>The Dragon Who Couldn't Roar</h3> <p>A little dragon feels different because he can't roar! Learn about accepting yourself in this fantasy tale.</p> <span class="comic-style fantasy">Fantasy Art</span> <button class="cta-button download-button" data-comic-id="dragon01"> <i class="fas fa-shopping-cart"></i> Buy Now / Download </button> </div> </div> <div class="comic-card fade-in" style="animation-delay: 0.6s;"> <img src="https://via.placeholder.com/300x200/C5CAE9/333?text=Helpful+Robot" alt="Sci-Fi Robot Comic Preview"> <div class="comic-card-content"> <h3>Bolt the Robot's Big Problem</h3> <p>Bolt the friendly robot needs help fixing his spaceship! A fun sci-fi adventure about teamwork.</p> <span class="comic-style scifi">Sci-Fi Style</span> <button class="cta-button download-button" data-comic-id="robot01"> <i class="fas fa-shopping-cart"></i> Buy Now / Download </button> </div> </div> </div> <div class="show-all-container" id="show-all-container"> <button class="cta-button" id="view-all-products-btn"> <i class="fas fa-book"></i> View All Stories </button> </div> <p style="text-align: center; margin-top: 30px; font-style: italic;" id="more-stories-note">More stories and styles added all the time!</p> </div> </section> <section class="how-its-made"> <div class="container"> <h2>Crafted with Care (and a Little AI Magic!)</h2> <p>Our unique stories begin with creative ideas, often sparked by AI like ChatGPT. Then, powerful AI tools help generate engaging narratives and unique illustrations in diverse styles. We review every story to ensure it's fun, positive, and perfect for young readers!</p> <div class="process-steps"> <div class="process-step"> <div class="process-step-icon"> <i class="fas fa-lightbulb"></i> </div> <h3>Idea Generation</h3> <p>AI helps brainstorm fun story concepts</p> </div> <div class="process-step"> <div class="process-step-icon"> <i class="fas fa-book"></i> </div> <h3>Story Writing</h3> <p>We craft engaging narratives</p> </div> <div class="process-step"> <div class="process-step-icon"> <i class="fas fa-paint-brush"></i> </div> <h3>AI Illustration</h3> <p>AI generates beautiful artwork</p> </div> <div class="process-step"> <div class="process-step-icon"> <i class="fas fa-check-circle"></i> </div> <h3>Quality Review</h3> <p>Every story is checked by humans</p> </div> </div> </div> </section> <section class="final-cta" id="pricing"> <div class="container"> <h2>Ready for Story Time Fun?</h2> <p style="margin-bottom: 30px;">Choose the best way to spark your child's imagination!</p> <div class="pricing-options"> <div class="price-option"> <h3>Single Story</h3> <div class="price">$1.99</div> <ul> <li>Instant Download</li> <li>Choose Any Comic</li> <li>Perfect for Trying</li> </ul> <button class="cta-button download-button" data-comic-id="single_any"> <i class="fas fa-shopping-cart"></i> Get a Single Story </button> </div> <div class="price-option popular"> <h3>Adventure Bundle</h3> <div class="price">$4.99</div> <ul> <li>Includes 3 Comics</li> <li>Great Value!</li> <li>Action & Exploration</li> <li>Bonus Activity Pages</li> </ul> <button class="cta-button download-button" data-comic-id="bundle_adventure"> <i class="fas fa-gift"></i> Get the Bundle </button> </div> <div class="price-option"> <h3>Monthly Club</h3> <div class="price">$9.99/mo</div> <ul> <li>8 New Comics Monthly</li> <li>Exclusive Content</li> <li>Member Discounts</li> <li>Cancel Anytime</li> </ul> <button class="cta-button download-button" data-comic-id="monthly_club"> <i class="fas fa-star"></i> Join the Club </button> </div> </div> </div> </section> <footer class="main-footer"> <div class="container"> <div class="social-links"> <a href="#"><i class="fab fa-facebook-f"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> <a href="#"><i class="fab fa-instagram"></i></a> <a href="#"><i class="fab fa-pinterest"></i></a> </div> <p>© 2024 AI Story Spark. All Rights Reserved.</p> <p> <a href="#">Privacy Policy</a> | <a href="#">Terms of Use</a> | <a href="#">Contact Us</a> </p> </div> </footer> </div> <!-- End #landing-page-content --> <!-- ===== Products Page Content (Initially Hidden) ===== --> <div id="products-page-content"> <header class="main-header"> <div class="container"> <a href="#" class="logo" id="logo-products-page"> <i class="fas fa-sparkles logo-icon"></i> AI Story <span>Spark</span> </a> <a href="#" class="back-to-home-link" id="back-to-home-btn"> <i class="fas fa-arrow-left"></i> Back to Home </a> </div> </header> <div class="container"> <div class="products-page-header"> <h1>Our Full Collection</h1> <p>Explore all 102 magical AI-generated stories!</p> <div class="search-filter-container"> <input type="text" class="search-box" id="comic-search" placeholder="Search comics..."> <div class="style-filter"> <button class="active" data-filter="all">All Styles</button> <button data-filter="classic">Classic</button> <button data-filter="manga">Manga</button> <button data-filter="render3d">3D</button> <button data-filter="medieval">Medieval</button> <button data-filter="fantasy">Fantasy</button> <button data-filter="scifi">Sci-Fi</button> </div> </div> </div> <div class="comics-grid" id="full-comics-grid"> <!-- Comic cards will be dynamically inserted here --> </div> <div id="loading-spinner" style="text-align: center; padding: 30px; display: none;"> <div class="loading-spinner"></div> <p>Loading more stories...</p> </div> </div> <footer class="main-footer"> <div class="container"> <p>© 2024 AI Story Spark. All Rights Reserved.</p> <p> <a href="#">Privacy Policy</a> | <a href="#">Terms of Use</a> </p> </div> </footer> </div> <!-- End #products-page-content --> <!-- Modal for Comic Details --> <div class="modal-overlay" id="comic-modal"> <div class="modal-content"> <span class="close-modal" id="close-modal">&times;</span> <div id="modal-content-inner"> <!-- Content will be inserted here --> </div> </div> </div> <!-- Toast Notification --> <div class="toast" id="toast-notification"> <span id="toast-message">Item added to cart!</span> </div> <script> document.addEventListener('DOMContentLoaded', () => { // Elements const landingPageContent = document.getElementById('landing-page-content'); const productsPageContent = document.getElementById('products-page-content'); const viewAllProductsBtn = document.getElementById('view-all-products-btn'); const backToHomeBtn = document.getElementById('back-to-home-btn'); const fullComicsGrid = document.getElementById('full-comics-grid'); const initialComicsGrid = document.getElementById('initial-comics-grid'); const comicSearch = document.getElementById('comic-search'); const styleFilterButtons = document.querySelectorAll('.style-filter button'); const loadingSpinner = document.getElementById('loading-spinner'); const comicModal = document.getElementById('comic-modal'); const closeModal = document.getElementById('close-modal'); const modalContentInner = document.getElementById('modal-content-inner'); const toastNotification = document.getElementById('toast-notification'); // Header scroll effect const header = document.querySelector('.main-header'); window.addEventListener('scroll', () => { if (window.scrollY > 50) { header.classList.add('scrolled'); } else { header.classList.remove('scrolled'); } }); // --- Data for the first 6 comics (already in HTML) --- const initialComicsData = [ { id: 'dogcat01', title: 'Detective Dog & the Brave Cat', description: "A classic tale of bravery! Can the clever cat save the worried pup from a tricky situation? Find out!", style: 'Classic Comic Style', styleClass: 'classic', imgText: 'Detective Dog', longDescription: "Detective Dog is in trouble when he gets stuck in a deep hole while investigating a mysterious case. His friend, Brave Cat, must overcome her fear of heights to rescue him. This heartwarming story teaches children about courage, friendship, and helping others in need." }, { id: 'penguin01', title: 'Pip the Penguin Flies?', description: "Pip believes penguins can soar! Follow his hilarious attempts in this heartwarming adventure about dreams.", style: '3D Render Look', styleClass: 'render3d', imgText: 'Flying Penguin', longDescription: "Pip is different from other penguins - he's convinced that penguins can fly! Despite everyone telling him it's impossible, Pip tries all sorts of creative ways to take to the skies. This charming story encourages children to pursue their dreams while also learning to accept their unique qualities." }, { id: 'fox01', title: 'Luna the Fox Learns to Listen', description: "Luna loves to talk, but sometimes listening is more important! A charming story about friendship.", style: 'Japanese Manga Style', styleClass: 'manga', imgText: 'Listening Fox', longDescription: "Luna the Fox is always the one telling stories and jokes, but she rarely stops to listen to others. When her friends start avoiding her because they feel unheard, Luna must learn the valuable lesson that friendship is a two-way street. This manga-style comic teaches children about the importance of listening and empathy." }, { id: 'knight01', title: "The Knight's Missing Shield", description: "Join Sir Reginald Rabbit on a quirky quest through a medieval land to find his lost shield before the joust!", style: 'Medieval Style', styleClass: 'medieval', imgText: 'Knight Rabbit', longDescription: "Sir Reginald Rabbit, the bravest knight in the kingdom, has lost his lucky shield just before the big tournament! Follow his hilarious adventure through castles, forests, and villages as he searches for his missing shield with the help of unlikely friends. This medieval tale is full of humor and teaches about teamwork." }, { id: 'dragon01', title: "The Dragon Who Couldn't Roar", description: "A little dragon feels different because he can't roar! Learn about accepting yourself in this fantasy tale.", style: 'Fantasy Art', styleClass: 'fantasy', imgText: 'Shy Dragon', longDescription: "Spark is a young dragon who can't roar like the others. He feels left out and different until he discovers his unique ability to create beautiful colored smoke patterns. When danger threatens his village, Spark's special talent saves the day! This fantasy story celebrates individuality and self-acceptance." }, { id: 'robot01', title: "Bolt the Robot's Big Problem", description: "Bolt the friendly robot needs help fixing his spaceship! A fun sci-fi adventure about teamwork.", style: 'Sci-Fi Style', styleClass: 'scifi', imgText: 'Helpful Robot', longDescription: "Bolt's spaceship has crashed on a strange planet, and he needs parts to fix it. With the help of the planet's quirky inhabitants, Bolt learns that teamwork and creative problem-solving can overcome any obstacle. This sci-fi adventure introduces basic engineering concepts while teaching about cooperation and perseverance." } ]; // --- Generator Data for remaining comics --- const adjectives = ["Brave", "Curious", "Little", "Sparkly", "Lost", "Friendly", "Sleepy", "Clever", "Magical", "Grumpy", "Fast", "Giant", "Tiny", "Rainbow"]; const nouns = ["Kitten", "Puppy", "Robot", "Star", "Dragon", "Fox", "Bear", "Spaceship", "Castle", "Penguin", "Monkey", "Owl", "Dinosaur", "Unicorn", "Pirate"]; const concepts = ["Adventure", "Secret", "Quest", "Friendship", "Surprise", "Dream", "Discovery", "Race", "Party", "Treasure", "Mystery", "Journey"]; const settings = ["in the Jungle", "Under the Sea", "in Space", "at the Magical Fair", "on a Pirate Ship", "in the Snowy Mountains", "in a Busy City"]; const actions = ["learns to share", "finds a hidden map", "makes a new friend", "solves a puzzle", "builds a fort", "wins the race", "helps someone lost"]; // Function to generate more diverse placeholder data function generatePlaceholderData(index) { const adj = adjectives[index % adjectives.length]; const noun = nouns[index % nouns.length]; const concept = concepts[index % concepts.length]; const setting = settings[index % settings.length]; const action = actions[index % actions.length]; const styles = [ {name: 'Classic Comic Style', class: 'classic'}, {name: 'Japanese Manga Style', class: 'manga'}, {name: '3D Render Look', class: 'render3d'}, {name: 'Medieval Style', class: 'medieval'}, {name: 'Fantasy Art', class: 'fantasy'}, {name: 'Sci-Fi Style', class: 'scifi'} ]; const style = styles[index % styles.length]; // Generate Title (Remove Numbering) let title = ""; switch (index % 4) { case 0: title = `The ${adj} ${noun}`; break; case 1: title = `${noun}'s Big ${concept}`; break; case 2: title = `A ${concept} ${setting}`; break; default: title = `${adj} ${noun}'s ${action}`; break; } // Generate Description let description = ""; switch (index % 3) { case 0: description = `Join ${noun} as they embark on ${adj.toLowerCase()} ${concept.toLowerCase()} ${setting}!`; break; case 1: description = `What happens when ${noun} tries to ${action}? A fun AI-generated story about ${concept.toLowerCase()}.`; break; default: description = `Discover the ${adj.toLowerCase()} ${noun}'s secret ${setting}. A tale of ${concept.toLowerCase()}.`; break; } // Generate long description const longDescription = `This is the extended story description for ${title}. In this ${style.name.toLowerCase()} comic, ${noun} ${action} while ${setting}. The story teaches valuable lessons about ${concept.toLowerCase()} through ${adj.toLowerCase()} adventures that children will love. Perfect for bedtime reading or classroom story time!`; // Generate Image Text (more specific) const imgText = `${adj} ${noun}`; return { id: `comic${String(index + 1).padStart(3, '0')}`, title: title, description: description, style: style.name, styleClass: style.class, imgText: imgText, longDescription: longDescription }; } // Function to create a single comic card HTML using data object function createComicCardHTML(comicData) { // Generate Placeholder Image URL with more context const bgColors = ['E0E0E0', 'C5CAE9', 'FFF9C4', 'F8BBD0', 'DCEDC8', 'BBDEFB']; const bgColor = bgColors[parseInt(comicData.id.slice(-1)) % bgColors.length]; const placeholderImageUrl = `https://via.placeholder.com/300x200/${bgColor}/555?text=${encodeURIComponent(comicData.imgText)}`; return ` <div class="comic-card" data-id="${comicData.id}" data-style="${comicData.styleClass}" data-title="${comicData.title.toLowerCase()}"> <img src="${placeholderImageUrl}" alt="${comicData.title} Preview"> <div class="comic-card-content"> <h3>${comicData.title}</h3> <p>${comicData.description}</p> <span class="comic-style ${comicData.styleClass}">${comicData.style}</span> <button class="cta-button download-button" data-comic-id="${comicData.id}"> <i class="fas fa-shopping-cart"></i> Buy Now / Download </button> </div> </div> `; } // Function to create modal content function createModalContent(comicData) { const bgColors = ['E0E0E0', 'C5CAE9', 'FFF9C4', 'F8BBD0', 'DCEDC8', 'BBDEFB']; const bgColor = bgColors[parseInt(comicData.id.slice(-1)) % bgColors.length]; const placeholderImageUrl = `https://via.placeholder.com/500x350/${bgColor}/555?text=${encodeURIComponent(comicData.imgText)}`; return ` <div class="modal-comic-details"> <img src="${placeholderImageUrl}" alt="${comicData.title}" style="width: 100%; border-radius: 8px; margin-bottom: 20px;"> <h2 style="font-family: var(--font-headline); color: var(--primary-blue); margin-bottom: 10px;">${comicData.title}</h2> <span class="comic-style ${comicData.styleClass}" style="margin-bottom: 15px;">${comicData.style}</span> <p style="margin-bottom: 20px; font-size: 1.1rem;">${comicData.longDescription}</p> <div style="display: flex; gap: 15px; justify-content: center;"> <button class="cta-button download-button" data-comic-id="${comicData.id}" style="padding: 12px 25px;"> <i class="fas fa-shopping-cart"></i> Buy Now ($1.99) </button> <button class="cta-button" style="background-color: var(--accent-green); padding: 12px 25px;"> <i class="fas fa-heart"></i> Add to Wishlist </button> </div> </div> `; } // Function to populate the full comics grid function populateFullComicsGrid() { if (!fullComicsGrid) return; loadingSpinner.style.display = 'block'; fullComicsGrid.innerHTML = ''; // Simulate loading delay setTimeout(() => { let gridHTML = ''; // 1. Add the initial 6 comics first (using their specific data) initialComicsData.forEach(comicData => { gridHTML += createComicCardHTML(comicData); }); // 2. Generate and add the remaining comics (up to 102 total) const remainingCount = 102 - initialComicsData.length; for (let i = 0; i < remainingCount; i++) { const comicData = generatePlaceholderData(initialComicsData.length + i); gridHTML += createComicCardHTML(comicData); } fullComicsGrid.innerHTML = gridHTML; loadingSpinner.style.display = 'none'; // Attach event listeners to all comic cards document.querySelectorAll('.comic-card').forEach(card => { card.addEventListener('click', (e) => { // Don't open modal if clicking on a button inside the card if (e.target.closest('.download-button')) return; const comicId = card.dataset.id; const comicData = [...initialComicsData, ...Array(remainingCount).fill().map((_, i) => generatePlaceholderData(initialComicsData.length + i) )].find(comic => comic.id === comicId); if (comicData) { modalContentInner.innerHTML = createModalContent(comicData); comicModal.classList.add('active'); document.body.style.overflow = 'hidden'; } }); }); // Re-attach download button listeners attachDownloadButtonListeners('#products-page-content .download-button'); }, 800); // Simulate loading delay } // Function to filter comics function filterComics() { const searchTerm = comicSearch.value.toLowerCase(); const activeFilter = document.querySelector('.style-filter button.active').dataset.filter; document.querySelectorAll('.comic-card').forEach(card => { const title = card.dataset.title; const style = card.dataset.style; const matchesSearch = title.includes(searchTerm); const matchesFilter = activeFilter === 'all' || style === activeFilter; if (matchesSearch && matchesFilter) { card.style.display = 'flex'; } else { card.style.display = 'none'; } }); } // Function to attach download simulation listeners function attachDownloadButtonListeners(selector) { document.querySelectorAll(selector).forEach(button => { button.addEventListener('click', (event) => { event.stopPropagation(); const comicId = event.target.closest('button').dataset.comicId; // Show toast notification toastNotification.querySelector('#toast-message').textContent = `"${event.target.closest('.comic-card')?.querySelector('h3')?.textContent || 'Item'}" added to cart!`; toastNotification.classList.add('show'); setTimeout(() => { toastNotification.classList.remove('show'); }, 3000); }); }); } // --- Event Listeners --- if (viewAllProductsBtn && landingPageContent && productsPageContent) { viewAllProductsBtn.addEventListener('click', () => { landingPageContent.style.display = 'none'; productsPageContent.style.display = 'block'; populateFullComicsGrid(); window.scrollTo(0, 0); }); } if (backToHomeBtn && landingPageContent && productsPageContent) { backToHomeBtn.addEventListener('click', (e) => { e.preventDefault(); productsPageContent.style.display = 'none'; landingPageContent.style.display = 'block'; window.scrollTo(0, 0); }); } // Search and filter event listeners comicSearch.addEventListener('input', filterComics); styleFilterButtons.forEach(button => { button.addEventListener('click', () => { styleFilterButtons.forEach(btn => btn.classList.remove('active')); button.classList.add('active'); filterComics(); }); }); // Modal close button closeModal.addEventListener('click', () => { comicModal.classList.remove('active'); document.body.style.overflow = 'auto'; }); // Close modal when clicking outside comicModal.addEventListener('click', (e) => { if (e.target === comicModal) { comicModal.classList.remove('active'); document.body.style.overflow = 'auto'; } }); // Initial setup attachDownloadButtonListeners('#landing-page-content .download-button'); // --- Smooth Scroll --- document.querySelectorAll('#landing-page-content a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', function (e) { e.preventDefault(); const targetId = this.getAttribute('href'); const targetElement = document.querySelector(targetId); if (targetElement) { targetElement.scrollIntoView({ behavior: 'smooth' }); } }); }); // Add fade-in animations to elements as they come into view const fadeElements = document.querySelectorAll('.fade-in'); const fadeObserver = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.isIntersecting) { entry.target.style.opacity = 1; entry.target.style.transform = 'translateY(0)'; fadeObserver.unobserve(entry.target); } }); }, { threshold: 0.1 }); fadeElements.forEach(element => { element.style.opacity = 0; element.style.transform = 'translateY(20px)'; element.style.transition = 'opacity 0.6s ease, transform 0.6s ease'; fadeObserver.observe(element); }); }); </script> <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=digr/stories" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> </html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Story Spark - Magical AI Comics for Kids!</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Baloo+2:wght@700&family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script src="https://cdn.tailwindcss.com"></script>
<style>
:root {
--primary-blue: #3498db;
--secondary-yellow: #f1c40f;
--accent-green: #2ecc71;
--accent-orange: #e67e22;
--text-dark: #333;
--text-light: #fff;
--bg-light: #f9f9f9;
--border-color: #eee;
--font-headline: 'Baloo 2', cursive;
--font-body: 'Poppins', sans-serif;
--shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
--shadow-md: 0 4px 6px rgba(0,0,0,0.1);
--shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
--shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: var(--font-body);
color: var(--text-dark);
line-height: 1.6;
background-color: var(--bg-light);
scroll-behavior: smooth;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Animation Classes */
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}
.float-animation {
animation: float 3s ease-in-out infinite;
}
.pulse-animation {
animation: pulse 2s ease-in-out infinite;
}
.fade-in {
animation: fadeIn 0.8s ease-in forwards;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
/* Header Styles */
.main-header {
background: var(--text-light);
padding: 15px 0;
box-shadow: var(--shadow-sm);
position: sticky;
top: 0;
z-index: 100;
transition: all 0.3s ease;
}
.main-header.scrolled {
padding: 10px 0;
box-shadow: var(--shadow-md);
}
.logo {
font-family: var(--font-headline);
font-size: 1.8rem;
color: var(--primary-blue);
text-decoration: none;
display: flex;
align-items: center;
gap: 8px;
}
.logo span {
color: var(--accent-orange);