убрала сложность упражнений, поправила таймер
This commit is contained in:
parent
8b8f59c55d
commit
066594d84c
@ -76,18 +76,18 @@ const course = {
|
||||
}
|
||||
const currentExercise = course.exercises[currentSlide]
|
||||
|
||||
const getDifficultyColor = (difficulty: string) => {
|
||||
switch (difficulty) {
|
||||
case "Легкий":
|
||||
return "bg-gradient-to-r from-emerald-400 to-green-500"
|
||||
case "Средний":
|
||||
return "bg-gradient-to-r from-amber-400 to-orange-500"
|
||||
case "Сложный":
|
||||
return "bg-gradient-to-r from-red-400 to-pink-500"
|
||||
default:
|
||||
return "bg-gradient-to-r from-gray-400 to-gray-500"
|
||||
}
|
||||
}
|
||||
// const getDifficultyColor = (difficulty: string) => {
|
||||
// switch (difficulty) {
|
||||
// case "Легкий":
|
||||
// return "bg-gradient-to-r from-emerald-400 to-green-500"
|
||||
// case "Средний":
|
||||
// return "bg-gradient-to-r from-amber-400 to-orange-500"
|
||||
// case "Сложный":
|
||||
// return "bg-gradient-to-r from-red-400 to-pink-500"
|
||||
// default:
|
||||
// return "bg-gradient-to-r from-gray-400 to-gray-500"
|
||||
// }
|
||||
// }
|
||||
|
||||
return (
|
||||
|
||||
@ -117,11 +117,11 @@ const course = {
|
||||
|
||||
{/* Difficulty Badge */}
|
||||
<div className="absolute top-4 right-4">
|
||||
<div
|
||||
{/* <div
|
||||
className={`px-4 py-2 rounded-full text-xs font-bold text-white shadow-lg backdrop-blur-sm ${getDifficultyColor(currentExercise.difficulty)}`}
|
||||
>
|
||||
{currentExercise.difficulty}
|
||||
</div>
|
||||
</div> */}
|
||||
</div>
|
||||
|
||||
{/* Navigation arrows */}
|
||||
|
@ -165,7 +165,7 @@ const Exercise: React.FC = () => {
|
||||
</div>
|
||||
|
||||
{/* Fixed Timer at Bottom */}
|
||||
<div className="fixed bottom-32 left-0 right-0 bg-white opacity-95 border-t border-white/20 px-4 sm:px-6 py-4 shadow-2xl z-30">
|
||||
<div className="fixed bottom-36 left-0 right-0 bg-white opacity-95 border-t border-white/20 px-4 sm:px-6 py-4 shadow-2xl z-30">
|
||||
<div className="max-w-md mx-auto">
|
||||
<div className="flex items-center justify-between mb-3">
|
||||
<div className="flex items-center space-x-2">
|
||||
|
Loading…
x
Reference in New Issue
Block a user