feat: Initialize e-learning frontend with course browsing, landing, and authentication pages, along with core layouts and composables.

This commit is contained in:
supalerk-ar66 2026-02-04 16:57:25 +07:00
parent a0b93978a7
commit a201c4285b
8 changed files with 129 additions and 198 deletions

View file

@ -1,6 +1,26 @@
<script setup lang="ts">
const $q = useQuasar()
// Auth Dark Mode
useHead({
htmlAttrs: {
class: 'light',
style: 'background-color: #ffffff'
},
bodyAttrs: {
class: 'light',
style: 'background-color: #ffffff'
}
})
onMounted(() => {
$q.dark.set(false)
})
</script>
<template>
<!-- Auth Shell: Wrapper for authentication pages (Login, Register, etc.) -->
<div class="auth-shell dark">
<div class="auth-shell bg-white w-full min-h-screen">
<slot />
</div>
</template>

View file

@ -1,13 +1,27 @@
<script setup lang="ts">
/**
* @file landing.vue
* @description Layout for the landing page (public facing).
* Uses Quasar QLayout with overlay header.
*/
const $q = useQuasar()
// Landing Page Dark Mode
useHead({
htmlAttrs: {
class: 'light',
style: 'background-color: #ffffff'
},
bodyAttrs: {
class: 'light',
style: 'background-color: #ffffff'
}
})
onMounted(() => {
$q.dark.set(false)
})
</script>
<template>
<q-layout view="lHh LpR lFf" class="bg-slate-50 dark:bg-slate-900 text-slate-900 dark:text-slate-100 font-inter">
<q-layout view="lHh LpR lFf" class="bg-white text-slate-900 font-inter">
<!-- Header (Transparent & Overlay) -->
<q-header class="bg-transparent" style="height: auto;">