feat: create CourseCard component for displaying course details, progress, and actions
This commit is contained in:
parent
240cafb571
commit
85d7c5c913
1 changed files with 1 additions and 6 deletions
|
|
@ -83,12 +83,7 @@ const displayDescription = computed(() => getLocalizedText(props.description))
|
||||||
{{ level }}
|
{{ level }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="price"
|
|
||||||
class="absolute top-4 right-4 px-3 py-1 rounded-full text-xs font-black shadow-sm backdrop-blur-md transition-colors"
|
|
||||||
:class="(price === 'Free' || price === 'ฟรี') ? 'bg-emerald-500 text-white shadow-emerald-500/30' : 'glass text-white'"
|
|
||||||
>
|
|
||||||
{{ (price === 'Free' || price === 'ฟรี') ? $t('course.free') : price }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Content -->
|
<!-- Content -->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue