-
-
- EXPLORE COURSES
-
-
+
-
- คอร์สเรียนทั้งหมด
+
+ คอร์สเรียนออนไลน์ทั้งหมด
@@ -97,12 +164,12 @@ const filteredCourses = computed(() => {
-
+
-
+
รายการคอร์สเรียน
@@ -126,6 +193,49 @@ const filteredCourses = computed(() => {
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
CTA SECTION
Call to action to register
========================================== -->
-
+
diff --git a/Frontend-Learner/pages/browse/recommended.vue b/Frontend-Learner/pages/browse/recommended.vue
new file mode 100644
index 00000000..fc8b9bbb
--- /dev/null
+++ b/Frontend-Learner/pages/browse/recommended.vue
@@ -0,0 +1,349 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ คอร์สเรียนออนไลน์แนะนำ
+
+
+
+ คัดสรรคอร์สเรียนที่ดีที่สุดเพื่อคุณโดยเฉพาะ ยกระดับทักษะของคุณด้วยเนื้อหาคุณภาพสูงที่เราแนะนำ
+
+
+
+
+
+
+
+
+
+
+
+
+
+ คอร์สที่คุณห้ามพลาด
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
💎
+
ไม่พบคอร์สแนะนำในขณะนี้
+
+ ลองเลือกหมวดหมู่อื่น หรือกลับมาดูใหม่ภายหลัง
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ปลดล็อกศักยภาพของคุณวันนี้
+
+
+ เริ่มเรียนรู้กับคอร์สที่เราแนะนำ และเติบโตไปพร้อมกับผู้เรียนนับหมื่นคน
+
+
+
+ สมัครสมาชิกฟรี
+
+
+
+
+
+
+
diff --git a/Frontend-Learner/pages/index.vue b/Frontend-Learner/pages/index.vue
index ba526a4a..3c6e5c37 100644
--- a/Frontend-Learner/pages/index.vue
+++ b/Frontend-Learner/pages/index.vue
@@ -6,369 +6,461 @@
*/
definePageMeta({
layout: 'landing',
- middleware: 'auth' // ใช้ auth middleware เพื่อเช็ค: ถ้า Login แล้วให้ดีดไป Dashboard
+ middleware: 'auth'
})
useHead({
title: 'E-Learning System - ระบบการเรียนการสอนออนไลน์'
})
+
+const { fetchCategories } = useCategory()
+const { fetchCourses, getLocalizedText } = useCourse()
+
+const categories = ref([])
+const topCourses = ref([])
+const selectedCategory = ref('all')
+const isLoading = ref(false)
+const currentSlide = ref(0)
+const courseChunks = computed(() => {
+ const chunkSize = 4
+ const chunks = []
+ if (!topCourses.value) return []
+ for (let i = 0; i < topCourses.value.length; i += chunkSize) {
+ chunks.push(topCourses.value.slice(i, i + chunkSize))
+ }
+ return chunks
+})
+
+const loadData = async () => {
+ isLoading.value = true
+ try {
+ const [catRes, courseRes] = await Promise.all([
+ fetchCategories(),
+ fetchCourses({ limit: 8, forceRefresh: true })
+ ])
+
+ if (catRes.success) categories.value = catRes.data || []
+ if (courseRes.success) topCourses.value = courseRes.data || []
+ } catch (err) {
+ console.error('Failed to load landing page data:', err)
+ } finally {
+ isLoading.value = false
+ }
+}
+
+const goBrowse = (slug: string) => {
+ navigateTo({ path: '/browse', query: { category: slug } })
+}
+
+watch(selectedCategory, async (newVal) => {
+ isLoading.value = true
+ try {
+ const params: any = { limit: 8 }
+ if (newVal !== 'all') {
+ const category = categories.value.find(c => c.slug === newVal)
+ if (category) {
+ params.category_id = category.id
+ }
+ }
+ const res = await fetchCourses(params)
+ if (res.success) {
+ topCourses.value = res.data || []
+ currentSlide.value = 0 // Reset carousel on filter change
+ }
+ } catch (err) {
+ console.error('Error filtering courses:', err)
+ } finally {
+ isLoading.value = false
+ }
+})
+
+onMounted(() => {
+ loadData()
+})
-
-
-
+
+
+
+
+
+
+
+
+
+
+ E-Learning Platform
+
+
+ คอร์สเรียนออนไลน์
เพิ่มทักษะยุคดิจิทัล
+
+
+ แหล่งรวมคอร์สออนไลน์คุณภาพสูงที่จะช่วยอัปสกิลให้คุณทำงานเก่งขึ้น พัฒนาทักษะที่ตลาดต้องการ พร้อมให้คุณก้าวไปข้างหน้าได้อย่างมั่นใจ!
+
-
-
-
-
-
-
-
-
-
-
-
- เริ่มต้นเส้นทางความสำเร็จใหม่ที่นี่
-
-
-
-
- ยกระดับทักษะ
- แห่งอนาคต ไปพร้อมกับเรา
-
-
- แหล่งรวมความรู้ออนไลน์ที่เข้าถึงง่ายที่สุด พัฒนาโดยผู้เชี่ยวชาญ
- เพื่อช่วยให้คุณก้าวสู่เป้าหมายที่ตั้งไว้ได้อย่างมั่นใจ
-
-
-
-
- สมัครเรียนฟรีวันนี้
-
-
-
- เปิดดูคอร์สทั้งหมด
-
+
+
+
+
+
+

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ เพราะ “ก้าวแรก” ของการพัฒนาตัวเอง ท้าทายเสมอ
+
+
+ เราจึงตั้งใจออกแบบบทเรียนให้ ‘เข้าใจง่าย’ และ ‘นำไปใช้ได้จริง’ เพื่อให้ทุกก้าวของคุณ มั่นคงและไปถึงเป้าหมายได้สำเร็จ
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ คอร์สออนไลน์
+ ที่ออกแบบมาสำหรับคุณ
+
+
+ เรียนรู้ทักษะใหม่จากผู้เชี่ยวชาญตัวจริง พร้อมเนื้อหาที่เข้มข้นและใช้งานได้จริง
+
+
+
+
+
+
+
+
+
+
+
+
Access Status
+
เข้าถึงได้ตลอดชีพ
+
+
+
+
-
-
-
Why Choose Us
-
ออกแบบมาเพื่อความสำเร็จของคุณ
-
- เราไม่ใช่แค่แพลตฟอร์มการเรียนรู้ แต่เราคือคู่หูที่จะช่วยพาคุณไปสู่จุดหมายที่ต้องการ
-
+
+
+
+
+
+ ก้าวข้ามทุกขีดจำกัด
+ ด้วยการเรียนรู้ที่ “อิสระ”
+
+
+ เราคัดสรรและคราฟต์ทุกคอร์สเรียนเพื่อให้มั่นใจว่าคุณจะได้รับประสบการณ์การเรียนรู้ที่ดีที่สุด ไม่ว่าจะอยู่ที่ไหนหรือเวลาใดก็ตาม
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
คอร์สออนไลน์
+
เริ่มต้นเรียนรู้ทักษะใหม่ด้วยคอร์สคุณภาพจากผู้เชี่ยวชาญ
+
+
+ คอร์สออนไลน์ทั้งหมด
+
-
-
-
-
-
สื่อการเรียนระดับสูง
-
วิดีโอคุณภาพคมชัด พร้อมเอกสารประกอบการเรียนที่คัดสรรมาอย่างดีเพื่อความเข้าใจง่าย
-
-
-
-
-
-
วัดผลแบบอัจฉริยะ
-
ระบบ Quizz ออนไลน์ที่ช่วยประเมินความเข้าใจได้ทันที พร้อมวิเคราะห์จุดที่ควรปรับปรุง
-
+
+
+
+
+
-
-
-
-
ระบบติดตามผล
-
ดูความก้าวหน้าของตัวเองได้ทุกที่ทุกเวลา ผ่าน Dashboard ที่สรุปภาพรวมไว้อย่างลงตัว
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Frontend-Learner/public/img/elearning.png b/Frontend-Learner/public/img/elearning.png
new file mode 100644
index 00000000..522a8447
Binary files /dev/null and b/Frontend-Learner/public/img/elearning.png differ
diff --git a/Frontend-Learner/คู่มืออธิบาย/Error.md b/Frontend-Learner/คู่มืออธิบาย/Error.md
new file mode 100644
index 00000000..e69de29b