File size: 38,457 Bytes
7fa9d90 8e5f1c9 7fa9d90 e665557 7fa9d90 e665557 7fa9d90 8e5f1c9 7fa9d90 902efbe 8e5f1c9 fd65e8f 7fa9d90 fd65e8f 7fa9d90 fd65e8f 7fa9d90 fd65e8f 268ab88 fd65e8f 7fa9d90 30e4fdb 7fa9d90 3d4874c 8e5f1c9 3d4874c 3dd9b6e db23a91 197f1f9 db23a91 3dd9b6e 8e5f1c9 3dd9b6e 3d4874c 7fa9d90 0a7e81a 8e5f1c9 0a7e81a 8e5f1c9 0a7e81a 16c30ea 0a7e81a 16c30ea 1574979 16c30ea 1574979 16c30ea 1574979 16c30ea 1574979 16c30ea 1574979 16c30ea 1574979 16c30ea 1574979 16c30ea 8e5f1c9 16c30ea 1574979 16c30ea 8e5f1c9 16c30ea 8e5f1c9 16c30ea 0fb0a37 16c30ea 1574979 7219c67 e224b41 7219c67 e224b41 7219c67 e224b41 7219c67 8e5f1c9 7219c67 e224b41 7219c67 e224b41 4c8e696 7219c67 268ab88 7219c67 268ab88 7219c67 e224b41 7219c67 e224b41 7219c67 e224b41 e665557 e224b41 c00f68c 745c606 c00f68c 8e5f1c9 7fa9d90 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NCAkit - Neural Content Automation</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/static/css/styles.css">
</head>
<body>
<!-- Login Overlay -->
<div id="loginOverlay" class="login-overlay">
<div class="login-box">
<div class="login-header">
<h1>๐ NCAkit</h1>
<p>Login to continue</p>
</div>
<form id="loginForm">
<div class="login-field">
<label>Username</label>
<input type="text" id="loginUsername" placeholder="Enter username" required>
</div>
<div class="login-field">
<label>Password</label>
<input type="password" id="loginPassword" placeholder="Enter password" required>
</div>
<button type="submit" class="btn btn-primary login-btn">๐ Login</button>
<div id="loginError" class="login-error hidden"></div>
</form>
</div>
</div>
<!-- Main App Container (hidden until login) -->
<div id="mainApp" class="container hidden">
<header>
<h1>๐ค NCAkit</h1>
<p>Neural Content Automation Toolkit</p>
<button id="logoutBtn" class="logout-btn">๐ช Logout</button>
</header>
<!-- Tabs -->
<div class="tabs">
<button class="tab-btn active" data-tab="story">๐ฌ Story Reels</button>
<button class="tab-btn" data-tab="video">๐น Video Creator</button>
<button class="tab-btn" data-tab="fact">๐ง Fact Image</button>
<button class="tab-btn" data-tab="trends">๐ Trends</button>
<button class="tab-btn" data-tab="quiz">๐ฏ Quiz Reel</button>
<button class="tab-btn" data-tab="textstory">๐ฑ Text Story</button>
</div>
<!-- Story Reels Tab -->
<div id="story-tab" class="tab-content active">
<div class="card">
<h2>๐ฌ Create Story Reel</h2>
<p style="color: var(--text-secondary); margin-bottom: 1.5rem;">
AI generates script โ TTS โ Character images โ Final video
</p>
<form id="storyForm">
<div class="form-group">
<label>Voice Script *</label>
<textarea id="storyScript" rows="4"
placeholder="e.g., Have you ever wondered why some people seem to attract success effortlessly? The secret lies in their mindset..."
required></textarea>
</div>
<div class="form-row">
<div class="form-group">
<label>Image Style</label>
<select id="storyStyle">
<option value="semi-realistic">Semi-Realistic</option>
<option value="anime">Anime</option>
<option value="cartoon">Cartoon</option>
<option value="realistic">Realistic</option>
</select>
</div>
<div class="form-group">
<label>Voice</label>
<select id="storyVoice">
<optgroup label="๐บ๐ธ English (US) - Female">
<option value="af_heart">โค๏ธ Heart - Cute emotional (Reels)</option>
<option value="af_bella">Bella - Sweet friendly (TikTok)</option>
<option value="af_nova">Nova - Energetic young (TikTok)</option>
<option value="af_sky">Sky - Light airy (TikTok)</option>
<option value="af_nicole">Nicole - Cheerful bright (TikTok)</option>
<option value="af_jessica">Jessica - Conversational (Shorts)</option>
<option value="af_sarah">Sarah - Professional (YouTube)</option>
<option value="af_alloy">Alloy - Neutral clear (YouTube)</option>
<option value="af_kore">Kore - Serious calm (Documentary)</option>
<option value="af_river">River - Soft peaceful (Podcast)</option>
<option value="af_aoede">Aoede - Soft musical (ASMR)</option>
</optgroup>
<optgroup label="๐บ๐ธ English (US) - Male">
<option value="am_fenrir">๐ฅ Fenrir - Epic powerful (Trailer)</option>
<option value="am_adam">Adam - Neutral narrator (Audiobook)</option>
<option value="am_michael">Michael - Professional (Tutorial)</option>
<option value="am_liam">Liam - Youthful (TikTok)</option>
<option value="am_eric">Eric - Friendly (Vlog)</option>
<option value="am_echo">Echo - Calm deep (Meditation)</option>
<option value="am_onyx">Onyx - Dark intense (Thriller)</option>
<option value="am_puck">Puck - Playful (Gaming)</option>
<option value="am_santa">Santa - Warm old (Kids)</option>
</optgroup>
<optgroup label="๐ฌ๐ง English (UK)">
<option value="bf_emma">Emma (F) - Neutral British</option>
<option value="bf_alice">Alice (F) - Elegant</option>
<option value="bf_lily">Lily (F) - Soft storyteller</option>
<option value="bm_george">George (M) - Classic BBC</option>
<option value="bm_daniel">Daniel (M) - Gentle</option>
<option value="bm_fable">Fable (M) - Deep storyteller</option>
<option value="bm_lewis">Lewis (M) - Calm audiobook</option>
</optgroup>
<optgroup label="๐ฎ๐ณ Indian English">
<option value="if_sara">Sara (F) - Friendly</option>
<option value="im_nicola">Nicola (M) - Calm</option>
</optgroup>
<optgroup label="๐ฏ๐ต Japanese">
<option value="jf_alpha">Alpha (F) - Cute anime</option>
<option value="jf_nezumi">Nezumi (F) - Kid playful</option>
<option value="jf_tebukuro">Tebukuro (F) - Soft calm</option>
<option value="jm_kumo">Kumo (M) - Young narrator</option>
</optgroup>
<optgroup label="๐จ๐ณ Chinese (Mandarin)">
<option value="zf_xiaobei">Xiaobei (F) - Soft warm</option>
<option value="zf_xiaoni">Xiaoni (F) - Cheerful</option>
<option value="zf_xiaoxiao">Xiaoxiao (F) - Calm smooth</option>
<option value="zm_yunjian">Yunjian (M) - Authoritative</option>
<option value="zm_yunxi">Yunxi (M) - Smooth calm</option>
</optgroup>
<optgroup label="๐ญ Special Voices">
<option value="hf_alpha">Alpha (F) - Deep powerful</option>
<option value="hf_beta">Beta (F) - Aggressive strong</option>
<option value="hm_omega">Omega (M) - Super deep</option>
<option value="hm_psi">Psi (M) - Radio baritone</option>
<option value="ef_dora">Dora - Grandmother warm</option>
<option value="em_alex">Alex - Grandfather soft</option>
</optgroup>
</select>
</div>
</div>
<button type="submit" class="btn btn-primary">๐ Generate Story Reel</button>
</form>
<div id="storyStatus" class="status hidden"></div>
</div>
</div>
<!-- Video Creator Tab -->
<div id="video-tab" class="tab-content">
<div class="card">
<h2>๐น Create Short Video</h2>
<p style="color: var(--text-secondary); margin-bottom: 1.5rem;">
Scene-based video with TTS, captions, and Pexels backgrounds
</p>
<form id="videoForm">
<div class="form-row">
<div class="form-group">
<label>Voice</label>
<select id="videoVoice">
<optgroup label="๐บ๐ธ English (US) - Female">
<option value="af_heart">โค๏ธ Heart - Cute emotional (Reels)</option>
<option value="af_bella">Bella - Sweet friendly (TikTok)</option>
<option value="af_nova">Nova - Energetic young (TikTok)</option>
<option value="af_sky">Sky - Light airy (TikTok)</option>
<option value="af_nicole">Nicole - Cheerful bright (TikTok)</option>
<option value="af_jessica">Jessica - Conversational (Shorts)</option>
<option value="af_sarah">Sarah - Professional (YouTube)</option>
<option value="af_alloy">Alloy - Neutral clear (YouTube)</option>
<option value="af_kore">Kore - Serious calm (Documentary)</option>
</optgroup>
<optgroup label="๐บ๐ธ English (US) - Male">
<option value="am_fenrir">๐ฅ Fenrir - Epic powerful (Trailer)</option>
<option value="am_adam">Adam - Neutral narrator (Audiobook)</option>
<option value="am_michael">Michael - Professional (Tutorial)</option>
<option value="am_liam">Liam - Youthful (TikTok)</option>
<option value="am_eric">Eric - Friendly (Vlog)</option>
<option value="am_echo">Echo - Calm deep (Meditation)</option>
<option value="am_onyx">Onyx - Dark intense (Thriller)</option>
</optgroup>
<optgroup label="๐ฌ๐ง English (UK)">
<option value="bf_emma">Emma (F) - Neutral British</option>
<option value="bf_alice">Alice (F) - Elegant</option>
<option value="bm_george">George (M) - Classic BBC</option>
<option value="bm_daniel">Daniel (M) - Gentle</option>
</optgroup>
<optgroup label="๐ฎ๐ณ Indian English">
<option value="if_sara">Sara (F) - Friendly</option>
<option value="im_nicola">Nicola (M) - Calm</option>
</optgroup>
<optgroup label="๐ฏ๐ต Japanese">
<option value="jf_alpha">Alpha (F) - Cute anime</option>
<option value="jm_kumo">Kumo (M) - Young narrator</option>
</optgroup>
<optgroup label="๐จ๐ณ Chinese (Mandarin)">
<option value="zf_xiaobei">Xiaobei (F) - Soft warm</option>
<option value="zm_yunjian">Yunjian (M) - Authoritative</option>
</optgroup>
<optgroup label="๐ญ Special Voices">
<option value="hf_alpha">Alpha (F) - Deep powerful</option>
<option value="hm_omega">Omega (M) - Super deep</option>
<option value="ef_dora">Dora - Grandmother warm</option>
</optgroup>
</select>
</div>
<div class="form-group">
<label>Music Mood</label>
<select id="videoMusic">
<option value="">Random</option>
<option value="chill">Chill</option>
<option value="happy">Happy</option>
<option value="sad">Sad</option>
</select>
</div>
</div>
<div id="scenesContainer">
<div class="form-group">
<label>Scene 1 - Text</label>
<textarea class="scene-text" rows="2" placeholder="Enter narration..." required></textarea>
</div>
<div class="form-group">
<label>Keywords (comma separated)</label>
<input type="text" class="scene-keywords" placeholder="nature, forest">
</div>
</div>
<button type="button" id="addScene" class="btn btn-secondary" style="margin-bottom: 1rem;">+ Add
Scene</button>
<button type="submit" class="btn btn-primary">๐ฌ Create Video</button>
</form>
<div id="videoStatus" class="status hidden"></div>
</div>
</div>
<!-- Fact Image Tab -->
<div id="fact-tab" class="tab-content">
<div class="card">
<h2>๐ง Fact Image Video</h2>
<p style="color: var(--text-secondary); margin-bottom: 1.5rem;">
Generate a clean image โ Add fact text overlay โ Create short video
</p>
<form id="factForm">
<div class="form-row">
<div class="form-group">
<label>Image Model</label>
<select id="factModel">
<option value="nvidia">NVIDIA (AI Generated)</option>
<option value="cloudflare">Cloudflare (AI Generated)</option>
<option value="pexels">Pexels (Stock Photo)</option>
</select>
</div>
<div class="form-group">
<label>Duration (seconds)</label>
<select id="factDuration">
<option value="4">4 seconds</option>
<option value="5" selected>5 seconds</option>
<option value="6">6 seconds</option>
<option value="7">7 seconds</option>
</select>
</div>
</div>
<div class="form-row">
<div class="form-group">
<label>Heading BG Color</label>
<select id="headingBgColor">
<option value="rgba(0, 0, 0, 0.45)">Black (45%)</option>
<option value="rgba(0, 0, 0, 0.6)">Black (60%)</option>
<option value="rgba(0, 31, 63, 0.75)">Navy Blue</option>
<option value="rgba(48, 25, 52, 0.75)">Deep Purple</option>
</select>
</div>
<div class="form-group">
<label>Corner Radius</label>
<select id="headingBgRadius">
<option value="15">Small (15px)</option>
<option value="28" selected>Medium (28px)</option>
<option value="40">Large (40px)</option>
</select>
</div>
</div>
<div class="form-group">
<label>Image Prompt *</label>
<textarea id="factImagePrompt" rows="2"
placeholder="e.g., calm forest with soft sunlight filtering through trees"
required></textarea>
</div>
<div class="form-group">
<label>Fact Heading (Optional)</label>
<input type="text" id="factHeading" placeholder="e.g., Psychological Hack" maxlength="50">
</div>
<div class="form-group">
<label>Fact Text *</label>
<textarea id="factText" rows="3"
placeholder="e.g., People who daydream more tend to have higher creative intelligence."
required></textarea>
</div>
<button type="submit" class="btn btn-primary">๐ฌ Generate Fact Video</button>
</form>
<div id="factStatus" class="status hidden"></div>
</div>
</div>
</div>
<!-- Trends Tab -->
<div id="trends-tab" class="tab-content">
<div class="card">
<h2>๐ Trends Analysis</h2>
<p style="color: var(--text-secondary); margin-bottom: 1.5rem;">
Analyze Google Trends data for content planning
</p>
<div style="margin-bottom: 2rem;">
<h3 style="margin-bottom: 1rem;">๐ฅ Trending Now</h3>
<form id="trendingForm">
<div class="form-row">
<div class="form-group">
<label>Country</label>
<select id="trendCountry">
<option value="united_states">United States</option>
<option value="bangladesh">Bangladesh</option>
<option value="india">India</option>
<option value="united_kingdom">United Kingdom</option>
</select>
</div>
<div class="form-group">
<label>Limit</label>
<select id="trendLimit">
<option value="10">10</option>
<option value="20" selected>20</option>
<option value="30">30</option>
</select>
</div>
</div>
<button type="submit" class="btn btn-primary">Get Trending</button>
</form>
<div id="trendingResults" style="margin-top: 1rem;"></div>
</div>
<hr style="border-color: var(--border); margin: 2rem 0;">
<div>
<h3 style="margin-bottom: 1rem;">๐ Keyword Research</h3>
<form id="keywordForm">
<div class="form-group">
<label>Keyword *</label>
<input type="text" id="researchKeyword" placeholder="e.g., AI, Python, Gaming" required>
</div>
<div class="form-row">
<div class="form-group">
<label>Region</label>
<select id="researchRegion">
<option value="">Worldwide</option>
<option value="US">United States</option>
<option value="BD">Bangladesh</option>
<option value="IN">India</option>
</select>
</div>
<div class="form-group">
<label>Timeframe</label>
<select id="researchTimeframe">
<option value="now_1d">Last 24 hours</option>
<option value="now_7d">Last 7 days</option>
<option value="today_12m" selected>Last 12 months</option>
</select>
</div>
</div>
<div class="form-row">
<div class="form-group">
<label>Category</label>
<select id="researchCategory">
<option value="all">All Categories</option>
<option value="computers_electronics">Computers & Electronics</option>
<option value="games">Games</option>
<option value="arts_entertainment">Arts & Entertainment</option>
</select>
</div>
<div class="form-group">
<label>Search Type</label>
<select id="researchType">
<option value="web">Web Search</option>
<option value="youtube">YouTube Search</option>
<option value="news">News Search</option>
</select>
</div>
</div>
<button type="submit" class="btn btn-primary">Analyze Keyword</button>
</form>
<div id="keywordResults" style="margin-top: 1rem;"></div>
</div>
</div>
</div>
<!-- Quiz Reel Tab -->
<div id="quiz-tab" class="tab-content">
<div class="card">
<h2>๐ฏ Quiz Reel Generator</h2>
<p style="color: var(--text-secondary); margin-bottom: 1.5rem;">
Create quiz videos with TTS, thinking time, and animated answer reveals
</p>
<form id="quizForm">
<div id="quizContainer">
<div class="quiz-item"
style="background: var(--bg-secondary); padding: 1.5rem; border-radius: 12px; margin-bottom: 1rem;">
<h4 style="color: var(--accent); margin-bottom: 1rem;">Quiz 1</h4>
<div class="form-group">
<label>Hook (Category)</label>
<input type="text" class="quiz-hook" placeholder="e.g., IQ TEST, MATH QUIZ" value="IQ TEST">
</div>
<div class="form-group">
<label>Question *</label>
<input type="text" class="quiz-question" placeholder="What is the tallest mountain?"
required>
</div>
<div class="form-row">
<div class="form-group">
<label>Option A *</label>
<input type="text" class="quiz-option-a" placeholder="Answer A" required>
</div>
<div class="form-group">
<label>Option B *</label>
<input type="text" class="quiz-option-b" placeholder="Answer B" required>
</div>
<div class="form-group">
<label>Option C *</label>
<input type="text" class="quiz-option-c" placeholder="Answer C" required>
</div>
</div>
<div class="form-row">
<div class="form-group">
<label>Correct Answer *</label>
<select class="quiz-correct" required>
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
</select>
</div>
</div>
<div class="form-group">
<label>Explain (shown after answer)</label>
<input type="text" class="quiz-explain" placeholder="Brief explanation">
</div>
</div>
</div>
<div style="display: flex; gap: 1rem; margin-bottom: 1.5rem;">
<button type="button" id="addQuizBtn" class="btn btn-secondary" style="flex: 1;">โ Add Another
Quiz</button>
<button type="button" id="removeQuizBtn" class="btn btn-secondary"
style="flex: 1; background: #dc2626;">โ Remove Last Quiz</button>
</div>
<div class="form-group" style="margin-bottom: 1.5rem;">
<label>TTS Voice</label>
<select id="quizVoice">
<optgroup label="๐บ๐ธ English (US) - Female">
<option value="af_heart">โค๏ธ Heart - Cute emotional</option>
<option value="af_bella">Bella - Sweet friendly</option>
<option value="af_nova">Nova - Energetic young</option>
<option value="af_sarah">Sarah - Professional</option>
</optgroup>
<optgroup label="๐บ๐ธ English (US) - Male">
<option value="am_fenrir">๐ฅ Fenrir - Epic powerful</option>
<option value="am_adam">Adam - Neutral narrator</option>
<option value="am_michael">Michael - Professional</option>
<option value="am_liam">Liam - Youthful</option>
</optgroup>
<optgroup label="๐ฌ๐ง English (UK)">
<option value="bf_emma">Emma (F) - Neutral British</option>
<option value="bm_george">George (M) - Classic BBC</option>
</optgroup>
<optgroup label="๐ฎ๐ณ Indian English">
<option value="if_sara">Sara (F) - Friendly</option>
<option value="im_nicola">Nicola (M) - Calm</option>
</optgroup>
<optgroup label="๐ฏ๐ต Japanese">
<option value="jf_alpha">Alpha (F) - Cute anime</option>
<option value="jm_kumo">Kumo (M) - Young narrator</option>
</optgroup>
</select>
</div>
<button type="submit" class="btn btn-primary" style="width: 100%;">๐ฏ Generate Quiz Video</button>
</form>
<div id="quizStatus" class="status hidden"></div>
</div>
</div>
<!-- Text Story Tab -->
<div id="textstory-tab" class="tab-content">
<div class="card">
<h2>๐ฑ Fake Text Story Generator</h2>
<p style="color: var(--text-secondary); margin-bottom: 1.5rem;">
Create viral iMessage-style fake conversation videos with AI voice
</p>
<div class="form-group" style="margin-bottom: 1.5rem;">
<label>Mode</label>
<div style="display: flex; gap: 1rem;">
<label style="display: flex; align-items: center; gap: 0.5rem; cursor: pointer;">
<input type="radio" name="tsMode" value="manual" checked onchange="toggleTsMode()">
โ๏ธ Manual
</label>
<label style="display: flex; align-items: center; gap: 0.5rem; cursor: pointer;">
<input type="radio" name="tsMode" value="ai" onchange="toggleTsMode()">
๐ค AI Generate
</label>
</div>
</div>
<form id="textStoryForm">
<div id="tsAiSection" style="display: none;">
<div class="form-group"
style="background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(168,85,247,0.1)); padding: 1.5rem; border-radius: 12px; margin-bottom: 1rem;">
<label>๐ค AI Prompt - Describe the conversation</label>
<textarea id="tsAiPrompt" rows="3"
placeholder="e.g., A breakup conversation where the ex wants to get back together but gets rejected."></textarea>
</div>
<div class="form-row">
<div class="form-group">
<label>Number of Messages</label>
<select id="tsAiMsgCount">
<option value="5">5 messages</option>
<option value="7" selected>7 messages</option>
<option value="10">10 messages</option>
<option value="15">15 messages</option>
</select>
</div>
<div class="form-group">
<label>Conversation Tone</label>
<select id="tsAiTone">
<option value="emotional">Emotional / Dramatic</option>
<option value="funny">Funny / Comedy</option>
<option value="shocking">Shocking / Twist</option>
<option value="romantic">Romantic</option>
</select>
</div>
</div>
</div>
<div class="form-row">
<div class="form-group">
<label>Person A Name (You - Right/Blue)</label>
<input type="text" id="tsPersonA" value="You" placeholder="Your name">
</div>
<div class="form-group">
<label>Person B Name (Other - Left/Gray)</label>
<input type="text" id="tsPersonB" value="My Ex" placeholder="Other person name">
</div>
</div>
<div class="form-group">
<label>Person B Avatar (1 letter or emoji)</label>
<input type="text" id="tsAvatar" maxlength="2" placeholder="M" style="width: 80px;">
</div>
<div id="tsManualSection">
<div id="tsMessagesContainer">
<div class="ts-message-item"
style="background: var(--bg-secondary); padding: 1rem; border-radius: 8px; margin-bottom: 0.5rem;">
<div class="form-row" style="align-items: flex-end;">
<div class="form-group" style="flex: 0 0 100px;">
<label>Sender</label>
<select class="ts-sender">
<option value="B">B (Other)</option>
<option value="A">A (You)</option>
</select>
</div>
<div class="form-group" style="flex: 1;">
<label>Message</label>
<input type="text" class="ts-text" placeholder="Type message...">
</div>
<button type="button" class="btn btn-secondary ts-remove"
style="height: 42px;">โ</button>
</div>
</div>
</div>
<button type="button" id="tsAddMessage" class="btn btn-secondary"
style="width: 100%; margin-bottom: 1rem;">
โ Add Message
</button>
</div>
<div class="form-group">
<label>Ending Text (Optional)</label>
<input type="text" id="tsEnding" placeholder="e.g., To be continued...">
</div>
<div class="form-row">
<div class="form-group">
<label>Voice A (You)</label>
<select id="tsVoiceA">
<optgroup label="๐บ๐ธ Female (US)">
<option value="af_heart">โค๏ธ Heart - Cute emotional</option>
<option value="af_bella">Bella - Sweet friendly</option>
<option value="af_nova">Nova - Energetic young</option>
<option value="af_jessica">Jessica - Conversational</option>
<option value="af_sarah">Sarah - Professional</option>
</optgroup>
<optgroup label="๐บ๐ธ Male (US)">
<option value="am_fenrir">๐ฅ Fenrir - Epic powerful</option>
<option value="am_adam">Adam - Neutral narrator</option>
<option value="am_michael">Michael - Professional</option>
<option value="am_liam">Liam - Youthful</option>
</optgroup>
<optgroup label="๐ฌ๐ง British">
<option value="bf_emma">Emma (F) - Neutral</option>
<option value="bm_george">George (M) - Classic</option>
</optgroup>
</select>
</div>
<div class="form-group">
<label>Voice B (Other)</label>
<select id="tsVoiceB">
<optgroup label="๐บ๐ธ Male (US)">
<option value="am_fenrir">๐ฅ Fenrir - Epic powerful</option>
<option value="am_adam">Adam - Neutral narrator</option>
<option value="am_michael">Michael - Professional</option>
<option value="am_liam">Liam - Youthful</option>
<option value="am_echo">Echo - Calm deep</option>
</optgroup>
<optgroup label="๐บ๐ธ Female (US)">
<option value="af_heart">โค๏ธ Heart - Cute emotional</option>
<option value="af_bella">Bella - Sweet friendly</option>
<option value="af_nova">Nova - Energetic young</option>
<option value="af_jessica">Jessica - Conversational</option>
</optgroup>
<optgroup label="๐ฌ๐ง British">
<option value="bm_george">George (M) - Classic</option>
<option value="bf_emma">Emma (F) - Neutral</option>
</optgroup>
</select>
</div>
</div>
<button type="submit" class="btn btn-primary" style="width: 100%;">๐ฑ Generate Text Story Video</button>
</form>
<div id="textStoryStatus" class="status hidden"></div>
</div>
</div>
</div> <!-- End mainApp container -->
<!-- Chat Widget Button -->
<button id="chatBtn"
style="position:fixed; bottom:30px; right:30px; width:60px; height:60px; border-radius:50%; background:linear-gradient(135deg,#6366f1,#a855f7); border:none; font-size:28px; cursor:pointer; box-shadow:0 4px 20px rgba(99,102,241,0.5); z-index:9999;">๐ฌ</button>
<!-- Chat Modal -->
<div id="chatModal" class="chat-modal hidden">
<div class="chat-header">
<span>๐ค Gemini Chat Test</span>
<button id="chatClose">โ</button>
</div>
<div id="chatMessages" class="chat-body"></div>
<form id="chatForm" class="chat-input-area">
<input type="text" id="chatInput" placeholder="Type a message..." autocomplete="off">
<button type="submit">Send</button>
</form>
</div>
<!-- External JavaScript (defer for faster page load) -->
<script src="/static/js/main.js" defer></script>
</body>
</html> |