360 lines
11 KiB
HTML
360 lines
11 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-TW">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>詞彙學習 - Drama Ling</title>
|
|
<style>
|
|
/* 重置樣式 */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
background: #F7F9FC;
|
|
color: #2C3E50;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* 容器 */
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 2rem;
|
|
}
|
|
|
|
/* 頁面標題 */
|
|
.page-header {
|
|
text-align: center;
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 2.5rem;
|
|
font-weight: 800;
|
|
color: #2C3E50;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.page-subtitle {
|
|
font-size: 1.25rem;
|
|
color: #64748B;
|
|
}
|
|
|
|
/* 統計卡片 */
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 1.5rem;
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.stat-card {
|
|
background: white;
|
|
border-radius: 1rem;
|
|
padding: 1.5rem;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.stat-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.stat-content {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.stat-icon {
|
|
width: 3rem;
|
|
height: 3rem;
|
|
background: #00E5CC;
|
|
border-radius: 0.75rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.5rem;
|
|
color: white;
|
|
}
|
|
|
|
.stat-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: #2C3E50;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.875rem;
|
|
color: #64748B;
|
|
}
|
|
|
|
/* 練習模式 */
|
|
.practice-section {
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
color: #2C3E50;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.practice-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.practice-card {
|
|
background: white;
|
|
border-radius: 1rem;
|
|
padding: 2rem;
|
|
text-align: center;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
border: 2px solid transparent;
|
|
}
|
|
|
|
.practice-card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
|
|
border-color: #00E5CC;
|
|
}
|
|
|
|
.practice-icon {
|
|
width: 4rem;
|
|
height: 4rem;
|
|
background: linear-gradient(135deg, #00E5CC, #6366F1);
|
|
border-radius: 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 1rem;
|
|
font-size: 2rem;
|
|
color: white;
|
|
}
|
|
|
|
.practice-card h3 {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: #2C3E50;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.practice-description {
|
|
font-size: 0.875rem;
|
|
color: #64748B;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.practice-meta {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.chip {
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 9999px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.chip-primary {
|
|
background: #00E5CC;
|
|
color: white;
|
|
}
|
|
|
|
.chip-outline {
|
|
border: 1px solid #E2E8F0;
|
|
color: #64748B;
|
|
}
|
|
|
|
/* 開始按鈕 */
|
|
.start-button {
|
|
background: linear-gradient(135deg, #00E5CC, #6366F1);
|
|
color: white;
|
|
border: none;
|
|
padding: 0.75rem 2rem;
|
|
border-radius: 0.75rem;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.start-button:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 10px 25px -3px rgba(0, 229, 204, 0.5);
|
|
}
|
|
|
|
/* 響應式設計 */
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.stats-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 1rem;
|
|
}
|
|
|
|
.practice-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* 動畫 */
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.fade-in-up {
|
|
animation: fadeInUp 0.6s ease-out;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<!-- 頁面標題 -->
|
|
<div class="page-header fade-in-up">
|
|
<h1 class="page-title">詞彙學習中心</h1>
|
|
<p class="page-subtitle">透過多種練習模式提升你的詞彙量</p>
|
|
</div>
|
|
|
|
<!-- 學習統計 -->
|
|
<div class="stats-grid">
|
|
<div class="stat-card fade-in-up" style="animation-delay: 0.1s;">
|
|
<div class="stat-content">
|
|
<div class="stat-icon">📚</div>
|
|
<div class="stat-info">
|
|
<div class="stat-value">1,247</div>
|
|
<div class="stat-label">總詞彙數</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="stat-card fade-in-up" style="animation-delay: 0.2s;">
|
|
<div class="stat-content">
|
|
<div class="stat-icon">✅</div>
|
|
<div class="stat-info">
|
|
<div class="stat-value">856</div>
|
|
<div class="stat-label">已掌握</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="stat-card fade-in-up" style="animation-delay: 0.3s;">
|
|
<div class="stat-content">
|
|
<div class="stat-icon">⏰</div>
|
|
<div class="stat-info">
|
|
<div class="stat-value">23</div>
|
|
<div class="stat-label">待複習</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="stat-card fade-in-up" style="animation-delay: 0.4s;">
|
|
<div class="stat-content">
|
|
<div class="stat-icon">🎯</div>
|
|
<div class="stat-info">
|
|
<div class="stat-value">368</div>
|
|
<div class="stat-label">學習中</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 練習模式 -->
|
|
<div class="practice-section">
|
|
<h2 class="section-title fade-in-up">快速開始</h2>
|
|
|
|
<div class="practice-grid">
|
|
<div class="practice-card fade-in-up" style="animation-delay: 0.1s;" onclick="startPractice('choice')">
|
|
<div class="practice-icon">🧠</div>
|
|
<h3>選擇題練習</h3>
|
|
<p class="practice-description">測試詞彙定義理解</p>
|
|
<div class="practice-meta">
|
|
<span class="chip chip-primary">10題</span>
|
|
<span class="chip chip-outline">基礎-中級</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="practice-card fade-in-up" style="animation-delay: 0.2s;" onclick="startPractice('translation')">
|
|
<div class="practice-icon">🌐</div>
|
|
<h3>翻譯練習</h3>
|
|
<p class="practice-description">英中翻譯能力測試</p>
|
|
<div class="practice-meta">
|
|
<span class="chip chip-primary">10題</span>
|
|
<span class="chip chip-outline">中級-高級</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="practice-card fade-in-up" style="animation-delay: 0.3s;" onclick="startPractice('synonym')">
|
|
<div class="practice-icon">🔄</div>
|
|
<h3>同義詞練習</h3>
|
|
<p class="practice-description">詞彙關聯性訓練</p>
|
|
<div class="practice-meta">
|
|
<span class="chip chip-primary">10題</span>
|
|
<span class="chip chip-outline">高級</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="text-align: center;">
|
|
<button class="start-button fade-in-up" style="animation-delay: 0.4s;" onclick="customPractice()">
|
|
自定義練習設定
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
// 練習功能
|
|
function startPractice(type) {
|
|
alert(`開始${type}練習!`);
|
|
// 這裡可以跳轉到實際的練習頁面
|
|
}
|
|
|
|
function customPractice() {
|
|
alert('打開自定義練習設定!');
|
|
}
|
|
|
|
// 頁面載入動畫
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
const elements = document.querySelectorAll('.fade-in-up');
|
|
elements.forEach((el, index) => {
|
|
el.style.opacity = '0';
|
|
setTimeout(() => {
|
|
el.style.opacity = '1';
|
|
}, index * 100);
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |