feat: Add core e-learning pages for authentication, course discovery, learning, and user dashboard.

This commit is contained in:
supalerk-ar66 2026-01-30 14:42:08 +07:00
parent c4f68eb927
commit 9629f79c52
5 changed files with 13 additions and 65 deletions

View file

@ -32,7 +32,7 @@ const showAllCategories = ref(false);
const { t } = useI18n();
const { fetchCategories } = useCategory();
const { fetchCourses, fetchCourseById, enrollCourse } = useCourse();
const { currentUser } = useAuth();
// const { currentUser } = useAuth() // Unused
// 2. Computed Properties
const sortOption = ref(computed(() => t('discovery.sortRecent')));
@ -321,7 +321,7 @@ onMounted(() => {
<div class="bg-white rounded-3xl p-6 shadow-lg border border-slate-100 sticky top-24">
<q-btn
@click="handleEnroll(selectedCourse.id)"
unetab
unelevated
rounded
class="w-full py-3 text-lg font-bold bg-gradient-to-r from-blue-600 to-indigo-600 text-white shadow-lg"