feat: added course card image for demo course

This commit is contained in:
Jannat Patel
2026-03-03 12:46:40 +05:30
parent 93f019a0d0
commit 2a2e937876
5 changed files with 7 additions and 116 deletions
+5
View File
@@ -627,6 +627,7 @@ const resetLessonState = (newChapterNumber, newLessonNumber) => {
chapter: newChapterNumber,
lesson: newLessonNumber,
})
console.log('resetting lesson state')
clearInterval(timerInterval)
timer.value = 0
}
@@ -741,14 +742,18 @@ const updateVideoTime = (video) => {
}
const startTimer = () => {
console.log(lesson.data?.membership)
if (!lesson.data?.membership) return
console.log('past')
timerInterval = setInterval(() => {
console.log(`Timer: ${timer.value} seconds`)
timer.value++
if (timer.value == 30) {
clearInterval(timerInterval)
markProgress()
}
}, 1000)
console.log(timerInterval)
}
onBeforeUnmount(() => {