-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ce4079
commit dc0e280
Showing
19 changed files
with
157 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
...lient/components/CourseItemCard/index.vue → .../client/components/courses/CourseCard.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<script setup lang="ts"> | ||
defineProps<{ | ||
title: string | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<div class="w-[330px] h-[220px] flex flex-col cursor-pointer border border-slate-400 rounded-xl px-6 py-4 hover:shadow-lg hover:shadow-purple-400/50 hover:border-purple-400 transition-all mb-4"> | ||
<p class="text-2xl leading-loose font-bold">{{ title }}</p> | ||
<div class="mb-4"></div> | ||
<div>this is the course's description</div> | ||
</div> | ||
</template> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
defineProps<{ | ||
title: string | ||
}>() | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
<template> | ||
<progress class="progress w-56 m-2" :value="currentSchedule" :max="max"></progress> | ||
<div class="text-center">({{ currentSchedule }} / {{ max }})</div> | ||
<progress class="progress w-56 m-2" :value="currentSchedule" :max="courseStore.totalQuestionsCount"></progress> | ||
<div class="text-center">({{ currentSchedule }} / {{ courseStore.totalQuestionsCount }})</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useCourseStore } from "~/store/course"; | ||
import { useCourseStore } from "~/store/course"; | ||
const courseStore = useCourseStore(); | ||
const currentSchedule = computed(() => { | ||
return courseStore.statementIndex + 1; | ||
}); | ||
const max = computed(() => { | ||
return courseStore.currentCourse?.statements.length || 0; | ||
}); | ||
</script> | ||
|
||
<style scoped></style> | ||
~/store/course~/store/course-new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.