diff --git a/lib/folk-chat.ts b/lib/folk-chat.ts index 7aff580..1481624 100644 --- a/lib/folk-chat.ts +++ b/lib/folk-chat.ts @@ -1,5 +1,6 @@ import { FolkShape } from "./folk-shape"; import { css, html } from "./tags"; +import { SpeechDictation } from "./speech-dictation"; const styles = css` :host { @@ -123,6 +124,30 @@ const styles = css` background: #ea580c; } + .mic-btn { + background: transparent; + border: 1px solid #e2e8f0; + border-radius: 6px; + padding: 8px 10px; + cursor: pointer; + font-size: 14px; + transition: all 0.2s; + } + + .mic-btn:hover { + border-color: #f97316; + } + + .mic-btn.recording { + border-color: #ef4444; + animation: micPulse 1.5s infinite; + } + + @keyframes micPulse { + 0%, 100% { transform: scale(1); } + 50% { transform: scale(1.15); } + } + .username-prompt { padding: 12px; text-align: center; @@ -228,6 +253,7 @@ export class FolkChat extends FolkShape {