feat: Initialize core frontend application structure, including layouts, authentication pages, and common UI components.

This commit is contained in:
supalerk-ar66 2026-01-26 09:27:31 +07:00
parent ae84e7e879
commit 69eb60f901
16 changed files with 1178 additions and 1396 deletions

View file

@ -2,22 +2,50 @@
/**
* @file default.vue
* @description Layout หลกสำหรบหนาเวบของผใช (Authenticated Users)
* ประกอบดวย Header (Navbar) และ Mobile Navigation
* Uses Quasar QLayout for responsive structure.
*/
const leftDrawerOpen = ref(false)
const toggleLeftDrawer = () => {
leftDrawerOpen.value = !leftDrawerOpen.value
}
</script>
<template>
<!-- App Shell: คอนเทนเนอรหลกของแอปพลเคช -->
<div class="app-shell min-h-screen transition-colors duration-200">
<!-- Header: แถบเมนานบน -->
<AppHeader />
<q-layout view="hHh lpr lFf" class="bg-slate-50 font-inter">
<!-- Header -->
<q-header bordered class="bg-white text-slate-800">
<AppHeader @toggle-sidebar="toggleLeftDrawer" />
</q-header>
<!-- Main Content Area: วนแสดงเนอหาหล -->
<main class="app-main">
<slot />
</main>
<!-- Sidebar (Drawer) -->
<q-drawer
v-model="leftDrawerOpen"
bordered
class="bg-white"
:width="260"
>
<AppSidebar />
</q-drawer>
<!-- Mobile Bottom Navigation: แถบเมนานลาง (แสดงเฉพาะมอถ) -->
<MobileNav />
</div>
<!-- Main Content -->
<q-page-container>
<q-page class="relative">
<slot />
</q-page>
</q-page-container>
<!-- Mobile Bottom Nav -->
<q-footer v-if="$q.screen.lt.md" bordered class="bg-white text-primary">
<MobileNav />
</q-footer>
</q-layout>
</template>
<style>
/* Ensure fonts are applied */
.font-inter {
font-family: 'Inter', sans-serif;
}
</style>