login with api

This commit is contained in:
Missez 2026-01-14 13:58:25 +07:00
parent d8a9909eb9
commit ff5b189b2f
16 changed files with 1241 additions and 66 deletions

View file

@ -10,42 +10,24 @@
<nav class="px-4">
<NuxtLink
to="/instructor"
class="flex items-center gap-3 px-4 py-3 rounded-lg hover:bg-primary-100 shadow-md transition mb-2"
active-class="bg-primary-500 text-white hover:bg-primary-600 "
class="flex items-center gap-3 px-4 py-3 rounded-lg hover:bg-primary-100 transition mb-2"
active-class="bg-primary-500 text-white hover:bg-primary-600"
>
<span>📊</span>
<q-icon name="dashboard" size="24px" />
<span>Dashboard</span>
</NuxtLink>
<NuxtLink
to="/instructor/courses"
class="flex items-center gap-3 px-4 py-3 rounded-lg hover:bg-primary-200 shadow-md transition mb-2"
class="flex items-center gap-3 px-4 py-3 rounded-lg hover:bg-primary-100 transition mb-2"
active-class="bg-primary-500 text-white hover:bg-primary-600"
>
<span>📚</span>
<q-icon name="school" size="24px" />
<span>หลกสตร</span>
</NuxtLink>
<NuxtLink
to="/instructor/announcements"
class="flex items-center gap-3 px-4 py-3 rounded-lg hover:bg-primary-200 shadow-md transition mb-2"
active-class="bg-primary-500 text-white hover:bg-primary-600"
>
<span>📢</span>
<span>ประกาศ</span>
</NuxtLink>
<NuxtLink
to="/instructor/reports"
class="flex items-center gap-3 px-4 py-3 rounded-lg hover:bg-primary-200 shadow-md transition mb-2"
active-class="bg-primary-500 text-white hover:bg-primary-600"
>
<span>📈</span>
<span>รายงาน</span>
</NuxtLink>
</nav>
<div class="absolute bottom-0 left-0 right-0 p-4 border-t">
<!-- <div class="absolute bottom-0 left-0 right-0 p-4 border-t">
<button
@click="handleLogout"
class="w-full flex items-center gap-3 px-4 py-3 text-red-600 hover:bg-red-50 rounded-lg transition"
@ -53,7 +35,7 @@
<span>🚪</span>
<span>ออกจากระบบ</span>
</button>
</div>
</div> -->
</aside>
<!-- Main Content -->