Files
voicepaste/web/index.html
imbytecat 2c322f5ab1 style: 重新设计前端 UI 主题与视觉效果
- 色彩系统从冷黑灰调整为带靛蓝底色的暖深色主题
- 强调色从 #3b82f6 蓝色替换为 #6366f1 Indigo
- 麦克风按钮增大至 96px,添加渐变背景与录音波纹环动画
- 状态指示器改为 pill 胶囊形,连接态带发光效果
- 预览区录音时显示 indigo 边框光晕与顶部渐变
- Toast 添加毛玻璃背景与弹出位移动画
- 历史卡片添加 slide-up 滑入动效支持
- 新增 theme-color meta 匹配深色主题
2026-03-02 05:23:39 +08:00

59 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="theme-color" content="#08080d">
<title>VoicePaste</title>
</head>
<body>
<div id="app">
<header>
<h1>VoicePaste</h1>
<div id="status" class="status disconnected">
<span class="dot"></span>
<span id="status-text">连接中…</span>
</div>
</header>
<section id="preview-section">
<div id="preview" class="preview-box">
<p id="preview-text" class="placeholder">按住说话…</p>
</div>
</section>
<section id="mic-section">
<div class="mic-wrapper">
<button id="mic-btn" type="button" disabled>
<svg viewBox="0 0 24 24" width="48" height="48" fill="currentColor" aria-label="麦克风" role="img">
<title>麦克风</title>
<path d="M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z"/>
<path d="M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z"/>
</svg>
</button>
<div class="mic-rings" aria-hidden="true">
<span class="ring"></span>
<span class="ring"></span>
<span class="ring"></span>
</div>
</div>
<p class="mic-hint">按住说话</p>
</section>
<section id="history-section">
<div class="history-header">
<h2>历史记录</h2>
<button id="clear-history" type="button" class="text-btn">清空</button>
</div>
<ul id="history-list"></ul>
<p id="history-empty" class="placeholder">暂无记录</p>
</section>
</div>
<div id="toast" class="toast"></div>
<script type="module" src="app.ts"></script>
</body>
</html>