feat: Add dashboard page with welcome message, recent course progress, and recommended courses
This commit is contained in:
parent
06ea8c1afa
commit
d6769ca1a9
38 changed files with 3 additions and 4566 deletions
|
|
@ -14,6 +14,8 @@ useHead({
|
|||
title: 'Dashboard - e-Learning'
|
||||
})
|
||||
|
||||
const { currentUser } = useAuth()
|
||||
|
||||
// Mock data: Recent Course Progress
|
||||
const recentCourse = {
|
||||
title: 'เบื้องต้นการออกแบบ UX/UI',
|
||||
|
|
@ -49,7 +51,7 @@ const recommendedCourses = [
|
|||
<div class="welcome-section mb-10 overflow-hidden relative rounded-[2.5rem] p-10 md:p-14 text-white shadow-lg dark:shadow-2xl dark:shadow-blue-900/20 transition-all">
|
||||
<div class="relative z-10 flex flex-col md:flex-row justify-between items-center gap-8">
|
||||
<div>
|
||||
<h1 class="text-4xl md:text-5xl font-black mb-3 slide-up tracking-tight text-white dark:text-white">ยินดีต้อนรับกลับ, สมชาย!</h1>
|
||||
<h1 class="text-4xl md:text-5xl font-black mb-3 slide-up tracking-tight text-white dark:text-white">ยินดีต้อนรับกลับ, {{ currentUser?.firstName }}!</h1>
|
||||
<p class="text-lg slide-up font-medium text-blue-100" style="animation-delay: 0.1s;">วันนี้เป็นวันที่ดีสำหรับการเรียนรู้สิ่งใหม่ๆ มาเก็บความรู้เพิ่มกันเถอะ</p>
|
||||
</div>
|
||||
<div class="stats-mini flex gap-6 slide-up" style="animation-delay: 0.2s;"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue