updated avatars and voice mode
All checks were successful
Deploy FluentGerman.ai / deploy (push) Successful in 51s

This commit is contained in:
2026-02-16 20:59:39 +01:00
parent 3890f0479f
commit bce4124974
5 changed files with 227 additions and 137 deletions

View File

@@ -24,12 +24,12 @@
<!-- Chat -->
<div class="chat-container">
<div class="chat-messages" id="chat-messages">
<!-- Welcome section injected by JS -->
<!-- Welcome section -->
<div class="welcome-section" id="welcome-section">
<div class="welcome-row">
<div class="avatar-container" id="avatar-container">
<div class="avatar-ring"></div>
<div class="avatar-placeholder">🎓</div>
<img class="avatar-img" id="avatar-img" src="" alt="Tutor avatar">
<div class="avatar-pulse"></div>
</div>
<div class="welcome-text">
@@ -42,10 +42,31 @@
</div>
<div class="chat-input-bar">
<button class="voice-btn" id="voice-btn" title="Voice input">🎤</button>
<input type="text" id="chat-input" placeholder="Type your message or click 🎤 to speak..."
autocomplete="off">
<!-- Voice toggle -->
<label class="voice-toggle" title="Toggle voice mode">
<input type="checkbox" id="voice-toggle-input">
<span class="voice-toggle-slider"></span>
<svg class="voice-toggle-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z" />
<path d="M19 10v2a7 7 0 0 1-14 0v-2" />
<line x1="12" y1="19" x2="12" y2="23" />
<line x1="8" y1="23" x2="16" y2="23" />
</svg>
</label>
<input type="text" id="chat-input" placeholder="Type your message..." autocomplete="off">
<button class="btn btn-primary" id="send-btn">Send</button>
<!-- Mic button (visible only when voice mode ON) -->
<button class="mic-btn hidden" id="mic-btn" title="Hold to speak">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z" />
<path d="M19 10v2a7 7 0 0 1-14 0v-2" />
<line x1="12" y1="19" x2="12" y2="23" />
<line x1="8" y1="23" x2="16" y2="23" />
</svg>
</button>
</div>
</div>