Nanny7 commited on
Commit
162eedf
·
1 Parent(s): d677201

feat(ui): premium bilingual landing page and animated character

Browse files
Files changed (2) hide show
  1. static/icons/Echo.png +3 -0
  2. templates/landing.html +410 -150
static/icons/Echo.png ADDED

Git LFS Details

  • SHA256: c5aff1a6230144405d6d25bbdfc054921fab29429c9c1d06aa1ae96206e2a081
  • Pointer size: 131 Bytes
  • Size of remote file: 409 kB
templates/landing.html CHANGED
@@ -1,9 +1,9 @@
1
- <!doctype html>
2
  <html lang="en" dir="ltr" data-theme="dark">
3
  <head>
4
  <meta charset="UTF-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Echo Tutor — Premium AI Language Coach</title>
7
  <meta
8
  name="description"
9
  content="Echo Tutor is a premium AI language coach with real-time conversation, corrections, voice support, and guided practice."
@@ -13,10 +13,43 @@
13
  href="{{ url_for('static', filename='css/style.css') }}"
14
  />
15
  <style>
 
 
 
 
 
 
 
 
 
 
16
  body.landing-body {
17
  overflow-y: auto;
18
  justify-content: flex-start;
19
  align-items: stretch;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  }
21
 
22
  .landing-root {
@@ -53,12 +86,23 @@
53
  letter-spacing: 1px;
54
  }
55
 
56
- .brand-dot {
57
- width: 12px;
58
- height: 12px;
59
- border-radius: 50%;
60
- background: linear-gradient(135deg, var(--accent), var(--accent-2));
61
- box-shadow: 0 0 14px var(--accent-glow);
 
 
 
 
 
 
 
 
 
 
 
62
  }
63
 
64
  .nav-actions {
@@ -154,6 +198,62 @@
154
  overflow: hidden;
155
  }
156
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
  .preview-glow {
158
  position: absolute;
159
  width: 320px;
@@ -272,6 +372,12 @@
272
  color: var(--text-muted);
273
  }
274
 
 
 
 
 
 
 
275
  .reveal {
276
  opacity: 0;
277
  transform: translateY(16px);
@@ -283,184 +389,338 @@
283
  transform: translateY(0);
284
  }
285
 
286
- @media (max-width: 980px) {
287
- .hero {
288
- grid-template-columns: 1fr;
 
289
  }
290
-
291
- .feature-grid,
292
- .steps {
293
- grid-template-columns: 1fr 1fr;
294
  }
295
  }
296
 
297
- @media (max-width: 680px) {
298
- .landing-root {
299
- width: min(96vw, 96vw);
300
- padding-top: 14px;
301
  }
302
-
303
- .hero-panel,
304
- .hero-preview,
305
- .section-card,
306
- .final-cta {
307
- padding: 16px;
308
  }
 
309
 
310
- .feature-grid,
311
- .steps,
312
- .stats-row {
313
- grid-template-columns: 1fr;
 
314
  }
315
-
316
- .nav-actions {
317
- gap: 6px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
318
  }
319
  }
320
  </style>
321
  </head>
322
  <body class="landing-body">
 
323
  <canvas id="particles-canvas"></canvas>
324
 
325
  <div class="landing-root">
326
- <header class="landing-nav reveal">
327
- <div class="brand-mark"><span class="brand-dot"></span> ECHO <span class="accent">TUTOR</span></div>
 
 
 
 
328
  <div class="nav-actions">
329
- <a href="/login" class="btn-secondary" style="text-decoration: none">Login</a>
330
- <a href="/signup" class="btn-primary" style="text-decoration: none">Create Account</a>
 
 
 
 
 
 
 
 
 
 
 
331
  </div>
332
- </header>
333
-
334
- <section class="hero">
335
- <div class="hero-panel reveal">
336
- <span class="hero-kicker">Premium AI Fluency Platform</span>
337
- <h1 class="hero-title">Speak Like a Native<br />With a <span class="accent">Luxury AI Coach</span></h1>
338
- <p class="hero-copy">
339
- Echo Tutor combines real-time conversation, smart correction, and voice coaching in one premium learning
340
- experience. Start as guest for a short preview, then unlock full access with your verified account.
 
 
 
 
 
 
341
  </p>
342
 
343
  <div class="cta-row">
344
- <a href="/app?guest=1" class="btn-secondary" style="text-decoration: none">Try as Guest</a>
345
- <a href="/signup" class="btn-primary" style="text-decoration: none">Start Premium Journey</a>
 
 
 
346
  </div>
347
-
348
  <div class="stats-row">
349
- <div class="stat-chip"><div class="stat-value">4 Languages</div><div class="stat-label">Guided practice tracks</div></div>
350
- <div class="stat-chip"><div class="stat-value">Live Feedback</div><div class="stat-label">Instant correction engine</div></div>
351
- <div class="stat-chip"><div class="stat-value">Voice + Text</div><div class="stat-label">Natural learning sessions</div></div>
 
 
 
 
 
 
 
 
 
352
  </div>
353
  </div>
354
 
355
- <aside class="hero-preview reveal">
356
  <div class="preview-glow"></div>
357
- <div class="preview-card">
358
- <div class="preview-role">AI Coach</div>
359
- <div class="preview-text">“Great sentence. A more natural version is: <strong>I’ve been learning English for two years.</strong> Want to try a business scenario?”</div>
360
- </div>
361
- <div class="preview-card">
362
- <div class="preview-role">You</div>
363
- <div class="preview-text">“Yes, let’s do an interview simulation. I want to improve confidence and clarity.”</div>
364
  </div>
 
365
  <div class="preview-card">
366
- <div class="preview-role">System</div>
367
- <div class="preview-text">Adaptive level, pronunciation-aware speaking mode, and progress tracking unlocked after signup.</div>
368
- </div>
369
- </aside>
370
- </section>
371
-
372
- <section class="section reveal">
373
- <div class="section-card">
374
- <h2 class="section-title">Why Echo Feels Premium</h2>
375
- <div class="feature-grid">
376
- <article class="feature-item">
377
- <h4>Conversation Intelligence</h4>
378
- <p>Context-aware replies that stay coherent over full sessions, not single prompts.</p>
379
- </article>
380
- <article class="feature-item">
381
- <h4>Elegant Corrections</h4>
382
- <p>Grammar and phrasing guidance blended naturally into conversation flow.</p>
383
- </article>
384
- <article class="feature-item">
385
- <h4>Voice-First Practice</h4>
386
- <p>Train fluency and rhythm with microphone and transcription-aware interaction.</p>
387
- </article>
388
- <article class="feature-item">
389
- <h4>Scenario Training</h4>
390
- <p>Interview, travel, business, and daily-life role plays with dynamic prompts.</p>
391
- </article>
392
- <article class="feature-item">
393
- <h4>Guided Difficulty</h4>
394
- <p>Beginner, intermediate, and advanced pathways that adapt to your usage.</p>
395
- </article>
396
- <article class="feature-item">
397
- <h4>Secure Access</h4>
398
- <p>Account verification flow with bot-based activation before full feature access.</p>
399
- </article>
400
- </div>
401
- </div>
402
- </section>
403
-
404
- <section class="section reveal">
405
- <div class="section-card">
406
- <h2 class="section-title">How It Works</h2>
407
- <div class="steps">
408
- <div class="step-item">
409
- <span class="step-num">01</span>
410
- <h4>Preview Instantly</h4>
411
- <p class="muted">Use Guest mode for a short premium preview with limited duration.</p>
412
- </div>
413
- <div class="step-item">
414
- <span class="step-num">02</span>
415
- <h4>Create Your Account</h4>
416
- <p class="muted">Sign up in seconds and activate via Telegram bot verification.</p>
417
  </div>
418
- <div class="step-item">
419
- <span class="step-num">03</span>
420
- <h4>Train Daily</h4>
421
- <p class="muted">Build fluency with personalized sessions, correction, and role-play loops.</p>
422
  </div>
 
 
 
 
 
 
423
  </div>
424
- </div>
425
- </section>
426
-
427
- <section class="section reveal">
428
- <div class="section-card final-cta">
429
- <h2 class="section-title">Ready to Upgrade Your Fluency?</h2>
430
- <p class="muted" style="max-width: 700px; margin: 0 auto 16px">
431
- Start with guest preview, then unlock full coaching, account tracking, and advanced scenarios.
432
- </p>
433
- <div class="cta-row" style="justify-content: center">
434
- <a href="/app?guest=1" class="btn-secondary" style="text-decoration: none">Try as Guest</a>
435
- <a href="/login" class="btn-secondary" style="text-decoration: none">Login</a>
436
- <a href="/signup" class="btn-primary" style="text-decoration: none">Create Account</a>
437
  </div>
438
  </div>
439
- </section>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
440
  </div>
441
-
442
- <script src="{{ url_for('static', filename='js/features.js') }}"></script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
443
  <script>
444
- const observer = new IntersectionObserver(
445
- (entries) => {
446
- entries.forEach((entry) => {
447
- if (entry.isIntersecting) entry.target.classList.add('visible');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
448
  });
449
- },
450
- { threshold: 0.16 },
451
- );
452
-
453
- document.querySelectorAll('.reveal').forEach((el) => observer.observe(el));
454
-
455
- const cards = document.querySelectorAll('.preview-card');
456
- let t = 0;
457
- setInterval(() => {
458
- t += 0.08;
459
- cards.forEach((card, idx) => {
460
- const y = Math.sin(t + idx * 0.9) * 2.2;
461
- card.style.transform = `translateY(${y}px)`;
462
- });
463
- }, 50);
464
  </script>
465
  </body>
466
- </html>
 
1
+ <!doctype html>
2
  <html lang="en" dir="ltr" data-theme="dark">
3
  <head>
4
  <meta charset="UTF-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Echo Tutor Premium AI Language Coach</title>
7
  <meta
8
  name="description"
9
  content="Echo Tutor is a premium AI language coach with real-time conversation, corrections, voice support, and guided practice."
 
13
  href="{{ url_for('static', filename='css/style.css') }}"
14
  />
15
  <style>
16
+ :root {
17
+ --direction: ltr;
18
+ --font-family: 'Inter', -apple-system, sans-serif;
19
+ }
20
+
21
+ [data-lang="ar"] {
22
+ --direction: rtl;
23
+ --font-family: 'Cairo', 'Tajawal', sans-serif;
24
+ }
25
+
26
  body.landing-body {
27
  overflow-y: auto;
28
  justify-content: flex-start;
29
  align-items: stretch;
30
+ direction: var(--direction);
31
+ font-family: var(--font-family);
32
+ }
33
+
34
+ /* Language Toggle */
35
+ .lang-switch {
36
+ cursor: pointer;
37
+ padding: 6px 10px;
38
+ border-radius: 999px;
39
+ background: rgba(255, 255, 255, 0.05);
40
+ border: 1px solid var(--border-glass);
41
+ display: flex;
42
+ align-items: center;
43
+ gap: 6px;
44
+ transition: 0.3s;
45
+ color: var(--text-primary);
46
+ font-family: inherit;
47
+ }
48
+ .lang-switch:hover {
49
+ background: rgba(255, 255, 255, 0.1);
50
+ }
51
+ .lang-icon {
52
+ font-size: 1.2rem;
53
  }
54
 
55
  .landing-root {
 
86
  letter-spacing: 1px;
87
  }
88
 
89
+ .echo-logo-inline {
90
+ width: 26px;
91
+ height: 26px;
92
+ object-fit: contain;
93
+ border-radius: 8px;
94
+ filter: drop-shadow(0 0 12px var(--accent-glow));
95
+ }
96
+
97
+ .echo-logo-inline.sm {
98
+ width: 18px;
99
+ height: 18px;
100
+ }
101
+
102
+ .echo-logo-inline.lg {
103
+ width: 38px;
104
+ height: 38px;
105
+ border-radius: 10px;
106
  }
107
 
108
  .nav-actions {
 
198
  overflow: hidden;
199
  }
200
 
201
+ .echo-character-wrap {
202
+ position: relative;
203
+ width: 170px;
204
+ height: 170px;
205
+ margin: 0 auto 14px;
206
+ display: flex;
207
+ align-items: center;
208
+ justify-content: center;
209
+ animation: echoFloat 3.6s ease-in-out infinite;
210
+ }
211
+
212
+ .echo-character {
213
+ width: 104px;
214
+ height: 104px;
215
+ object-fit: contain;
216
+ border-radius: 22px;
217
+ border: 1px solid rgba(255, 255, 255, 0.12);
218
+ box-shadow:
219
+ 0 0 24px var(--accent-glow),
220
+ 0 0 60px rgba(99, 179, 237, 0.18);
221
+ background: rgba(10, 14, 26, 0.6);
222
+ position: relative;
223
+ z-index: 3;
224
+ }
225
+
226
+ .echo-ring {
227
+ position: absolute;
228
+ border-radius: 50%;
229
+ border: 1px solid;
230
+ pointer-events: none;
231
+ }
232
+
233
+ .echo-ring-1 {
234
+ width: 132px;
235
+ height: 132px;
236
+ border-color: rgba(99, 179, 237, 0.36);
237
+ animation: ringSpin 8.5s linear infinite;
238
+ }
239
+
240
+ .echo-ring-2 {
241
+ width: 162px;
242
+ height: 162px;
243
+ border-color: rgba(159, 122, 234, 0.3);
244
+ animation: ringSpin 11s linear infinite reverse;
245
+ }
246
+
247
+ .echo-pulse {
248
+ position: absolute;
249
+ width: 180px;
250
+ height: 180px;
251
+ border-radius: 50%;
252
+ background: radial-gradient(circle, rgba(99, 179, 237, 0.22) 0%, transparent 72%);
253
+ animation: pulseGlow 2.6s ease-in-out infinite;
254
+ pointer-events: none;
255
+ }
256
+
257
  .preview-glow {
258
  position: absolute;
259
  width: 320px;
 
372
  color: var(--text-muted);
373
  }
374
 
375
+ .logo-text-group {
376
+ display: inline-flex;
377
+ align-items: center;
378
+ gap: 8px;
379
+ }
380
+
381
  .reveal {
382
  opacity: 0;
383
  transform: translateY(16px);
 
389
  transform: translateY(0);
390
  }
391
 
392
+ @keyframes echoFloat {
393
+ 0%,
394
+ 100% {
395
+ transform: translateY(0px);
396
  }
397
+ 50% {
398
+ transform: translateY(-8px);
 
 
399
  }
400
  }
401
 
402
+ @keyframes ringSpin {
403
+ from {
404
+ transform: rotate(0deg);
 
405
  }
406
+ to {
407
+ transform: rotate(360deg);
 
 
 
 
408
  }
409
+ }
410
 
411
+ @keyframes pulseGlow {
412
+ 0%,
413
+ 100% {
414
+ opacity: 0.45;
415
+ transform: scale(0.94);
416
  }
417
+ 50% {
418
+ opacity: 0.85;
419
+ transform: scale(1.02);
420
+ }
421
+ }
422
+
423
+ /* Mobile Responsiveness */
424
+ @media (max-width: 900px) {
425
+ .hero {
426
+ grid-template-columns: 1fr;
427
+ gap: 40px;
428
+ }
429
+ .hero-title {
430
+ font-size: 2.5rem;
431
+ }
432
+ .echo-character-wrap {
433
+ width: 140px;
434
+ height: 140px;
435
+ }
436
+ .echo-character {
437
+ width: 90px;
438
+ height: 90px;
439
+ }
440
+ .echo-ring-1 { width: 110px; height: 110px; }
441
+ .echo-ring-2 { width: 140px; height: 140px; }
442
+
443
+ .landing-grid, .feature-grid {
444
+ grid-template-columns: 1fr;
445
  }
446
  }
447
  </style>
448
  </head>
449
  <body class="landing-body">
450
+ <!-- Particles Background -->
451
  <canvas id="particles-canvas"></canvas>
452
 
453
  <div class="landing-root">
454
+
455
+ <div class="landing-nav">
456
+ <div class="brand-mark">
457
+ <img src="{{ url_for('static', filename='icons/Echo.png') }}" alt="Echo Logo" class="echo-logo-inline">
458
+ <span>Echo Tutor</span>
459
+ </div>
460
  <div class="nav-actions">
461
+ <!-- Language Switcher -->
462
+ <button class="lang-switch" onclick="toggleLanguage()" title="Switch Language">
463
+ <span class="lang-icon" id="lang-flag"></span>
464
+ <span id="lang-text">EN</span>
465
+ </button>
466
+
467
+ {% if user %}
468
+ <a href="{{ url_for('index') }}" class="btn btn-sm btn-ghost" data-i18n="dashboard">Dashboard</a>
469
+ <a href="{{ url_for('auth.logout') }}" class="btn btn-sm btn-glass" data-i18n="logout">Log Out</a>
470
+ {% else %}
471
+ <a href="{{ url_for('auth.login') }}" class="btn btn-sm btn-ghost" data-i18n="login">Log In</a>
472
+ <a href="{{ url_for('auth.register') }}" class="btn btn-sm btn-primary" data-i18n="get_started">Get Started</a>
473
+ {% endif %}
474
  </div>
475
+ </div>
476
+
477
+ <div class="hero">
478
+ <div class="hero-panel">
479
+ <div class="hero-kicker">
480
+ <span class="status-dot"></span>
481
+ <span data-i18n="new_ai_model">New Gemini 2.0 Flash Model</span>
482
+ </div>
483
+ <h1 class="hero-title">
484
+ <span class="text-gradient" data-i18n="hero_title_1">Master English</span><br />
485
+ <span data-i18n="hero_title_2">with Echo Tutor</span>
486
+ </h1>
487
+ <p class="hero-copy" data-i18n="hero_desc">
488
+ Experience the future of language learning. Real-time conversation,
489
+ instant correction, and personalized feedback powered by advanced AI.
490
  </p>
491
 
492
  <div class="cta-row">
493
+ <a href="{{ url_for('index') }}" class="btn btn-lg btn-primary">
494
+ <img src="{{ url_for('static', filename='icons/Echo.png') }}" class="echo-logo-inline sm" style="margin-right:8px; filter:none;">
495
+ <span data-i18n="try_demo">Try Echo Live</span>
496
+ </a>
497
+ <a href="#features" class="btn btn-lg btn-glass" data-i18n="explore_features">Explore Features</a>
498
  </div>
499
+
500
  <div class="stats-row">
501
+ <div class="stat-chip">
502
+ <div class="stat-value">50+</div>
503
+ <div class="stat-label" data-i18n="scenarios">Scenarios</div>
504
+ </div>
505
+ <div class="stat-chip">
506
+ <div class="stat-value">24/7</div>
507
+ <div class="stat-label" data-i18n="availability">AI Availability</div>
508
+ </div>
509
+ <div class="stat-chip">
510
+ <div class="stat-value">Whisper</div>
511
+ <div class="stat-label" data-i18n="voice_tech">HD Voice Tech</div>
512
+ </div>
513
  </div>
514
  </div>
515
 
516
+ <div class="hero-preview">
517
  <div class="preview-glow"></div>
518
+
519
+ <!-- Animated Echo Character -->
520
+ <div class="echo-character-wrap">
521
+ <div class="echo-pulse"></div>
522
+ <div class="echo-ring echo-ring-1"></div>
523
+ <div class="echo-ring echo-ring-2"></div>
524
+ <img src="{{ url_for('static', filename='icons/Echo.png') }}" alt="Echo AI Character" class="echo-character">
525
  </div>
526
+
527
  <div class="preview-card">
528
+ <div class="preview-role">
529
+ <span style="color:var(--accent);"></span> <span data-i18n="echo_role">Echo AI Tutor</span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
530
  </div>
531
+ <div class="preview-text">
532
+ "<span data-i18n="echo_msg">Welcome! I'm Echo, your personal language guide. I can help you practice pronunciation, fix grammar mistakes, and build confidence. Ready to start?</span>"
 
 
533
  </div>
534
+ <div style="margin-top:10px; display:flex; gap:5px;">
535
+ <!-- Flag Icons for decoration -->
536
+ <span style="font-size:1.2rem;"></span>
537
+ <span style="font-size:1.2rem;"></span>
538
+ <span style="font-size:1.2rem;"></span>
539
+ </div>
540
  </div>
541
+
542
+ <div class="preview-card" style="opacity: 0.7; transform: scale(0.98);">
543
+ <div class="preview-role"><span style="color:var(--success);"></span> <span data-i18n="you_role">You</span></div>
544
+ <div class="preview-text" data-i18n="user_msg">I want to improve my business English skills.</div>
 
 
 
 
 
 
 
 
 
545
  </div>
546
  </div>
547
+ </div>
548
+
549
+ <div class="section" id="features">
550
+ <div class="landing-grid">
551
+ <div class="section-card">
552
+ <h3 data-i18n="feat_realtime_title">Real-time Voice</h3>
553
+ <p style="color:var(--text-secondary); font-size:0.9rem;" data-i18n="feat_realtime_desc">Powered by Groq & Whisper for lightning-fast speech recognition.</p>
554
+ </div>
555
+ <div class="section-card">
556
+ <h3 data-i18n="feat_feedback_title">Instant Feedback</h3>
557
+ <p style="color:var(--text-secondary); font-size:0.9rem;" data-i18n="feat_feedback_desc">Get corrections on grammar and pronunciation as you speak.</p>
558
+ </div>
559
+ <div class="section-card">
560
+ <h3 data-i18n="feat_scenarios_title">Roleplay Scenarios</h3>
561
+ <p style="color:var(--text-secondary); font-size:0.9rem;" data-i18n="feat_scenarios_desc">Practice ordering coffee, job interviews, and more.</p>
562
+ </div>
563
+ </div>
564
+ </div>
565
+
566
+ <footer style="margin-top: 60px; text-align: center; color: var(--text-muted); padding-bottom: 20px;">
567
+ <p>&copy; 2026 <span style="color:var(--accent);">robovai.tech</span>. All rights reserved.</p>
568
+ </footer>
569
  </div>
570
+
571
+ <!-- Language Script -->
572
+ <script>
573
+ const translations = {
574
+ en: {
575
+ dashboard: "Dashboard",
576
+ logout: "Log Out",
577
+ login: "Log In",
578
+ get_started: "Get Started",
579
+ new_ai_model: "New Gemini 2.0 Flash Model",
580
+ hero_title_1: "Master English",
581
+ hero_title_2: "with Echo Tutor",
582
+ hero_desc: "Experience the future of language learning. Real-time voice conversations, instant grammar correction, and personalized feedback powered by advanced AI.",
583
+ try_demo: "Try Echo Live",
584
+ explore_features: "Explore Features",
585
+ scenarios: "Scenarios",
586
+ availability: "AI Availability",
587
+ voice_tech: "HD Voice Tech",
588
+ echo_role: "Echo AI Tutor",
589
+ echo_msg: "Welcome! Im Echo, your personal language guide. I can help you practice pronunciation, fix grammar mistakes, and build confidence. Ready to start?",
590
+ you_role: "You",
591
+ user_msg: "I want to improve my business English skills.",
592
+ feat_realtime_title: "Real-time Voice",
593
+ feat_realtime_desc: "Powered by Groq & Whisper for lightning-fast speech recognition.",
594
+ feat_feedback_title: "Instant Feedback",
595
+ feat_feedback_desc: "Get corrections on grammar and pronunciation as you speak.",
596
+ feat_scenarios_title: "Roleplay Scenarios",
597
+ feat_scenarios_desc: "Practice ordering coffee, job interviews, and more."
598
+ },
599
+ ar: {
600
+ dashboard: "لوحة التحكم",
601
+ logout: "تسجيل خروج",
602
+ login: "تسجيل دخول",
603
+ get_started: "ابدأ الآن",
604
+ new_ai_model: "مدعوم بنموذج Gemini 2.0 Flash",
605
+ hero_title_1: "أتقن الإنجليزية",
606
+ hero_title_2: "مع إيكو توتور",
607
+ hero_desc: "جرب مستقبل تعلم اللغات. محادثات صوتية فورية، تصحيح فوري للقواعد، وملاحظات مخصصة مدعومة بأحدث تقنيات الذكاء الاصطناعي.",
608
+ try_demo: "جرب إيكو لايف",
609
+ explore_features: "اكتشف المزايا",
610
+ scenarios: "سيناريو تعليمي",
611
+ availability: "متاح 24/7",
612
+ voice_tech: "تقنية صوت HD",
613
+ echo_role: "المعلم إيكو",
614
+ echo_msg: "أهلاً! أنا إيكو، دليلك الشخصي للغة. أستطيع مساعدتك في تحسين النطق، وتصحيح الأخطاء القواعدية، وبناء ثقتك بنفسك. هل أنت جاهز؟",
615
+ you_role: "أنت",
616
+ user_msg: "أريد تحسين مهاراتي في اللغة الإنجليزية للأعمال.",
617
+ feat_realtime_title: "صوت فوري",
618
+ feat_realtime_desc: "مدعوم بتقنيات Groq و Whisper لتعرف فائق السرعة على الكلام.",
619
+ feat_feedback_title: "تغذية راجعة فورية",
620
+ feat_feedback_desc: "احصل على تصحيحات للقواعد والنطق أثناء تحدثك مباشرة.",
621
+ feat_scenarios_title: "سيناريوهات تفاعلية",
622
+ feat_scenarios_desc: "تدرب على طلب القهوة، مقابلات العمل، والمزيد من المواقف الحياتية."
623
+ }
624
+ };
625
+
626
+ let currentLang = 'en';
627
+
628
+ function toggleLanguage() {
629
+ currentLang = currentLang === 'en' ? 'ar' : 'en';
630
+ updateContent();
631
+ }
632
+
633
+ function updateContent() {
634
+ const elements = document.querySelectorAll('[data-i18n]');
635
+ elements.forEach(el => {
636
+ const key = el.getAttribute('data-i18n');
637
+ if (translations[currentLang][key]) {
638
+ el.innerText = translations[currentLang][key];
639
+ }
640
+ });
641
+
642
+ // Layout changes
643
+ document.body.style.direction = currentLang === 'ar' ? 'rtl' : 'ltr';
644
+ document.documentElement.setAttribute('lang', currentLang);
645
+ document.documentElement.setAttribute('dir', currentLang === 'ar' ? 'rtl' : 'ltr');
646
+
647
+ // Update switch button
648
+ const flag = document.getElementById('lang-flag');
649
+ const txt = document.getElementById('lang-text');
650
+
651
+ if (currentLang === 'ar') {
652
+ flag.innerText = '';
653
+ txt.innerText = 'AR';
654
+ document.body.setAttribute('data-lang', 'ar');
655
+ } else {
656
+ flag.innerText = '';
657
+ txt.innerText = 'EN';
658
+ document.body.removeAttribute('data-lang');
659
+ }
660
+ }
661
+ </script>
662
  <script>
663
+ /* --- Particles Background Logic --- */
664
+ (function() {
665
+ const canvas = document.getElementById('particles-canvas');
666
+ const ctx = canvas.getContext('2d');
667
+
668
+ let width, height;
669
+
670
+ function resize() {
671
+ width = window.innerWidth;
672
+ height = window.innerHeight;
673
+ canvas.width = width;
674
+ canvas.height = height;
675
+ }
676
+ window.addEventListener('resize', resize);
677
+ resize();
678
+
679
+ const particles = [];
680
+ const particleCount = 40;
681
+
682
+ class Particle {
683
+ constructor() {
684
+ this.x = Math.random() * width;
685
+ this.y = Math.random() * height;
686
+ this.vx = (Math.random() - 0.5) * 0.4;
687
+ this.vy = (Math.random() - 0.5) * 0.4;
688
+ this.size = Math.random() * 2 + 1;
689
+ this.alpha = Math.random() * 0.5 + 0.1;
690
+ }
691
+
692
+ update() {
693
+ this.x += this.vx;
694
+ this.y += this.vy;
695
+
696
+ if (this.x < 0) this.x = width;
697
+ if (this.x > width) this.x = 0;
698
+ if (this.y < 0) this.y = height;
699
+ if (this.y > height) this.y = 0;
700
+ }
701
+
702
+ draw() {
703
+ ctx.fillStyle =
704
+ ctx.beginPath();
705
+ ctx.arc(this.x, this.y, this.size, 0, Math.PI * 2);
706
+ ctx.fill();
707
+ }
708
+ }
709
+
710
+ for (let i=0; i < particleCount; i++) {
711
+ particles.push(new Particle());
712
+ }
713
+
714
+ function animate() {
715
+ ctx.clearRect(0, 0, width, height);
716
+ particles.forEach(p => {
717
+ p.update();
718
+ p.draw();
719
  });
720
+ requestAnimationFrame(animate);
721
+ }
722
+ animate();
723
+ })();
 
 
 
 
 
 
 
 
 
 
 
724
  </script>
725
  </body>
726
+ </html>