Initial speaking practice site
This commit is contained in:
commit
bcebeaef82
38 files changed
+10698
No files matched your search
+92
@@ -0,0 +1,92 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Speaking Lab</title>
|
||||
<link rel="stylesheet" href="./styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="topbar">
|
||||
<div class="brand">
|
||||
<h1>Speaking Lab</h1>
|
||||
</div>
|
||||
|
||||
<div class="top-actions">
|
||||
<form id="loginForm" class="login-form">
|
||||
<input id="emailInput" type="email" placeholder="邮箱" autocomplete="email" required>
|
||||
<input id="passwordInput" type="password" placeholder="密码" autocomplete="current-password" required>
|
||||
<button id="loginBtn" type="submit">登录 / 注册</button>
|
||||
</form>
|
||||
<div id="userMenu" class="user-menu" hidden>
|
||||
<span id="userLabel"></span>
|
||||
<button id="logoutBtn" type="button">退出</button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="study-shell">
|
||||
<section class="left-stage">
|
||||
<section class="video-panel">
|
||||
<div class="video-frame">
|
||||
<video id="video" controls preload="metadata" crossorigin="anonymous"></video>
|
||||
<div id="emptyVideo" class="empty-video">
|
||||
<strong>选择或上传一个视频</strong>
|
||||
<span>支持本地 MP4/WebM 和 HLS 地址</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tool-row">
|
||||
<button id="previousBtn" type="button" title="上一句">上一句</button>
|
||||
<button id="replayBtn" type="button" title="重播">重播</button>
|
||||
<button id="nextBtn" type="button" title="下一句">下一句</button>
|
||||
<button id="recordBtn" type="button" title="录音">录音</button>
|
||||
<button id="stopRecordBtn" type="button" disabled title="停止">停止</button>
|
||||
<button id="playRecordingBtn" type="button" disabled title="回放我的录音">回放</button>
|
||||
<label class="toggle">
|
||||
<input id="loopToggle" type="checkbox">
|
||||
<span>循环</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="subtitle-card">
|
||||
<p id="primarySubtitle"></p>
|
||||
<p id="secondarySubtitle"></p>
|
||||
</div>
|
||||
|
||||
<div class="lesson-meta">
|
||||
<div>
|
||||
<h2 id="videoTitle">还没有选择视频</h2>
|
||||
<p id="subtitleMeta">请选择视频。</p>
|
||||
</div>
|
||||
<div class="video-actions">
|
||||
<button id="continueBtn" type="button" hidden>继续学习</button>
|
||||
<button id="favoriteBtn" type="button">收藏</button>
|
||||
<button id="watchLaterBtn" type="button">稍后再看</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="recording-line">
|
||||
<span id="recordingStatus">麦克风只在当前浏览器会话中使用。</span>
|
||||
<audio id="recordingAudio" controls hidden></audio>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<aside class="transcript-panel">
|
||||
<div class="transcript-toolbar">
|
||||
<div class="tabs">
|
||||
<button class="tab active" type="button" data-mode="bilingual">双语</button>
|
||||
<button class="tab" type="button" data-mode="english">英文</button>
|
||||
<button class="tab" type="button" data-mode="chinese">中文</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="transcriptList" class="transcript-list">
|
||||
<div class="empty-state">上传字幕后,每一句都会变成可点击的片段。</div>
|
||||
</div>
|
||||
</aside>
|
||||
</main>
|
||||
|
||||
<script src="./app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user