feat: Implement initial e-learning platform frontend structure including dashboard, course management, authentication, and common UI components.

This commit is contained in:
supalerk-ar66 2026-02-27 10:05:33 +07:00
parent aceeb80d9a
commit ad11c6b7c5
44 changed files with 720 additions and 578 deletions

View file

@ -1,7 +1,8 @@
<script setup lang="ts">
/**
* @file default.vue
* @description Master layout for the EduLearn platform.
* @description เลยเอาตหล (Master Layout) สำหรบผใชงานทเขาสระบบแล
* ประกอบดวยแถบเมนานบน (Header), แถบเมนานขาง (Sidebar) และพนทเนอหา
*/
useThemeMode()
@ -13,7 +14,7 @@ const toggleLeftDrawer = () => {
}
const route = useRoute()
// Show sidebar for these routes
// path (Sidebar)
const isDashboardRoute = computed(() => {
const routes = ['/dashboard', '/browse', '/classroom', '/course']
return routes.some(r => route.path.startsWith(r))
@ -23,14 +24,14 @@ const isDashboardRoute = computed(() => {
<template>
<q-layout view="lHh Lpr lFf" class="bg-[#F8FAFC] dark:!bg-[#020617] text-slate-900 dark:!text-slate-50">
<!-- Header -->
<!-- วนห (Header) -->
<q-header
class="bg-transparent text-slate-900 dark:!text-white border-none shadow-none"
>
<AppHeader @toggleSidebar="toggleLeftDrawer" />
</q-header>
<!-- Navigation Sidebar -->
<!-- แถบเมนานขาง (Navigation Sidebar) -->
<q-drawer
v-model="leftDrawerOpen"
show-if-above
@ -42,7 +43,7 @@ const isDashboardRoute = computed(() => {
<AppSidebar />
</q-drawer>
<!-- Main Content Area -->
<!-- นทแสดงเนอหาหล (Main Content Area) -->
<q-page-container>
<q-page class="px-3 py-6 md:p-8">
<div class="max-w-[1600px] mx-auto">