feat: Implement My Courses page with course cards, filtering, and certificate download functionality.

This commit is contained in:
supalerk-ar66 2026-01-30 14:34:45 +07:00
parent 9ed2347843
commit c4f68eb927
4 changed files with 107 additions and 157 deletions

View file

@ -37,6 +37,8 @@ interface CourseCardProps {
showStudyAgain?: boolean
/** URL for course thumbnail image */
image?: string
/** Loading state for actions */
loading?: boolean
}
const props = defineProps<CourseCardProps>()
@ -156,6 +158,7 @@ const displayDescription = computed(() => getLocalizedText(props.description))
class="w-full font-black shadow-lg shadow-emerald-600/20"
style="background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white;"
:label="$t('course.downloadCertificate')"
:loading="loading"
@click="emit('viewCertificate')"
/>
</div>