feat: add mastery feature to recitation wheel

This commit is contained in:
赵杰 Jie Zhao (雄狮汽车科技)
2025-11-02 23:46:11 +08:00
parent eddbe71849
commit cad03268f3
14 changed files with 439 additions and 617 deletions

View File

@@ -70,7 +70,7 @@
font-size: 0.9em;
}
/* 转盘样式 */
/* ת<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ */
.wheel-container {
position: relative;
width: 400px;
@@ -147,7 +147,75 @@
justify-content: center;
}
/* 排序结果列表 */
/* 掌握按钮样式 */
.mastery-buttons {
display: flex;
gap: 15px;
justify-content: center;
margin-top: 20px;
flex-wrap: wrap;
}
.btn-mastered {
padding: 12px 30px;
font-size: 1em;
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
color: white;
border: none;
border-radius: 25px;
cursor: pointer;
transition: all 0.3s;
font-weight: bold;
box-shadow: 0 4px 15px rgba(67, 233, 123, 0.3);
}
.btn-mastered:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(67, 233, 123, 0.4);
}
.btn-mastered:active {
transform: translateY(0);
}
.btn-forgot {
padding: 12px 30px;
font-size: 1em;
background: linear-gradient(135deg, #f5576c 0%, #fa709a 100%);
color: white;
border: none;
border-radius: 25px;
cursor: pointer;
transition: all 0.3s;
font-weight: bold;
box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}
.btn-forgot:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}
.btn-forgot:active {
transform: translateY(0);
}
/* 掌握情况信息 */
.mastery-info {
text-align: center;
margin-top: 15px;
padding: 10px;
color: #666;
font-size: 0.95em;
}
.mastery-info #remainingNum {
color: #667eea;
font-weight: bold;
font-size: 1.2em;
}
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD> */
.sorted-list {
background: white;
border-radius: 10px;
@@ -189,9 +257,30 @@
.sorted-item-text {
flex: 1;
color: #333;
position: relative;
}
/* 导出按钮样式 */
/* 已掌握的项目样式 */
.sorted-item-mastered {
background: #d4edda;
border-left-color: #28a745;
opacity: 0.7;
}
.sorted-item-mastered .sorted-item-text {
color: #155724;
text-decoration: line-through;
}
.mastered-icon {
display: inline-block;
margin-left: 10px;
color: #28a745;
font-weight: bold;
font-size: 1.1em;
}
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ť<EFBFBD><C5A5>ʽ */
.export-buttons {
display: flex;
gap: 10px;
@@ -219,7 +308,7 @@
transform: translateY(0);
}
/* 响应式设计 */
/* <EFBFBD><EFBFBD>Ӧʽ<EFBFBD><EFBFBD><EFBFBD> */
@media (max-width: 768px) {
.wheel-container {
width: 300px;