2026-01-13 10:46:40 +07:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
definePageMeta({
|
|
|
|
|
layout: 'default',
|
|
|
|
|
middleware: 'auth'
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
useHead({
|
|
|
|
|
title: 'ตั้งค่าบัญชี - e-Learning'
|
|
|
|
|
})
|
|
|
|
|
|
2026-02-03 11:01:33 +07:00
|
|
|
const { currentUser, updateUserProfile, changePassword, uploadAvatar, sendVerifyEmail, fetchUserProfile } = useAuth()
|
2026-02-09 11:40:41 +07:00
|
|
|
const { fetchAllCertificates, getLocalizedText } = useCourse()
|
2026-02-09 16:22:37 +07:00
|
|
|
const { locale, t } = useI18n()
|
2026-02-02 15:34:40 +07:00
|
|
|
|
2026-01-30 14:42:08 +07:00
|
|
|
|
2026-01-26 10:40:50 +07:00
|
|
|
|
2026-01-13 10:46:40 +07:00
|
|
|
const isEditing = ref(false)
|
2026-01-26 10:40:50 +07:00
|
|
|
const isProfileSaving = ref(false)
|
|
|
|
|
const isPasswordSaving = ref(false)
|
2026-02-02 11:11:25 +07:00
|
|
|
const isSendingVerify = ref(false)
|
2026-01-26 10:40:50 +07:00
|
|
|
const isHydrated = ref(false)
|
2026-01-13 10:46:40 +07:00
|
|
|
|
2026-02-09 11:40:41 +07:00
|
|
|
// Certificates State
|
|
|
|
|
const certificates = ref<any[]>([])
|
|
|
|
|
const isLoadingCerts = ref(false)
|
|
|
|
|
|
2026-01-16 10:03:04 +07:00
|
|
|
const formatDate = (dateString?: string) => {
|
|
|
|
|
if (!dateString) return '-'
|
|
|
|
|
try {
|
|
|
|
|
const date = new Date(dateString)
|
2026-02-09 16:22:37 +07:00
|
|
|
return new Intl.DateTimeFormat(locale.value === 'th' ? 'th-TH' : 'en-US', {
|
2026-01-16 10:03:04 +07:00
|
|
|
day: 'numeric',
|
|
|
|
|
month: 'short',
|
|
|
|
|
year: 'numeric'
|
|
|
|
|
}).format(date)
|
|
|
|
|
} catch (e) {
|
|
|
|
|
return dateString
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-13 10:46:40 +07:00
|
|
|
const userData = ref({
|
2026-01-14 15:15:31 +07:00
|
|
|
firstName: currentUser.value?.firstName || '',
|
|
|
|
|
lastName: currentUser.value?.lastName || '',
|
|
|
|
|
email: currentUser.value?.email || '',
|
2026-01-16 10:03:04 +07:00
|
|
|
phone: currentUser.value?.phone || '',
|
2026-02-09 16:22:37 +07:00
|
|
|
createdAt: currentUser.value?.createdAt || '',
|
2026-01-16 10:03:04 +07:00
|
|
|
photoURL: currentUser.value?.photoURL || '',
|
2026-02-03 11:01:33 +07:00
|
|
|
prefix: currentUser.value?.prefix?.th || '',
|
|
|
|
|
emailVerifiedAt: currentUser.value?.emailVerifiedAt
|
2026-01-13 10:46:40 +07:00
|
|
|
})
|
|
|
|
|
|
2026-02-03 11:01:33 +07:00
|
|
|
// ...
|
|
|
|
|
|
|
|
|
|
|
2026-01-14 10:20:06 +07:00
|
|
|
const passwordForm = reactive({
|
|
|
|
|
currentPassword: '',
|
|
|
|
|
newPassword: '',
|
|
|
|
|
confirmPassword: ''
|
|
|
|
|
})
|
|
|
|
|
|
2026-02-02 11:11:25 +07:00
|
|
|
|
2026-02-02 17:13:58 +07:00
|
|
|
// Rules have been moved to components
|
|
|
|
|
|
|
|
|
|
const fileInput = ref<HTMLInputElement | null>(null) // Used in view mode (outside component)
|
2026-01-13 10:46:40 +07:00
|
|
|
|
|
|
|
|
const toggleEdit = (edit: boolean) => {
|
|
|
|
|
isEditing.value = edit
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-02 17:13:58 +07:00
|
|
|
// Updated to accept File object directly (or Event for view mode compatibility if needed)
|
|
|
|
|
const handleFileUpload = async (fileOrEvent: File | Event) => {
|
|
|
|
|
let file: File | null = null
|
2026-01-13 10:46:40 +07:00
|
|
|
|
2026-02-02 17:13:58 +07:00
|
|
|
if (fileOrEvent instanceof File) {
|
|
|
|
|
file = fileOrEvent
|
|
|
|
|
} else {
|
|
|
|
|
// Fallback for native input change event
|
|
|
|
|
const target = (fileOrEvent as Event).target as HTMLInputElement
|
|
|
|
|
if (target.files && target.files[0]) {
|
|
|
|
|
file = target.files[0]
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-01-28 14:44:41 +07:00
|
|
|
|
2026-02-02 17:13:58 +07:00
|
|
|
if (file) {
|
2026-01-28 14:44:41 +07:00
|
|
|
// แสดงรูป Preview ก่อนอัปโหลด
|
2026-01-13 10:46:40 +07:00
|
|
|
const reader = new FileReader()
|
|
|
|
|
reader.onload = (e) => {
|
|
|
|
|
userData.value.photoURL = e.target?.result as string
|
|
|
|
|
}
|
2026-01-28 14:44:41 +07:00
|
|
|
reader.readAsDataURL(file)
|
|
|
|
|
|
|
|
|
|
// เรียกฟังก์ชัน uploadAvatar จาก useAuth
|
|
|
|
|
isProfileSaving.value = true
|
|
|
|
|
const result = await uploadAvatar(file)
|
|
|
|
|
isProfileSaving.value = false
|
|
|
|
|
|
|
|
|
|
if (result.success && result.data?.avatar_url) {
|
|
|
|
|
userData.value.photoURL = result.data.avatar_url
|
|
|
|
|
} else {
|
|
|
|
|
console.error('Upload failed:', result.error)
|
|
|
|
|
alert(result.error || t('profile.updateError'))
|
|
|
|
|
}
|
2026-01-13 10:46:40 +07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-02 17:13:58 +07:00
|
|
|
// Trigger upload for VIEW mode avatar click
|
|
|
|
|
const triggerUpload = () => {
|
|
|
|
|
fileInput.value?.click()
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-30 14:42:08 +07:00
|
|
|
|
2026-01-28 14:44:41 +07:00
|
|
|
|
2026-01-26 10:40:50 +07:00
|
|
|
const handleUpdateProfile = async () => {
|
|
|
|
|
isProfileSaving.value = true
|
|
|
|
|
|
2026-01-16 10:03:04 +07:00
|
|
|
const prefixMap: Record<string, string> = {
|
|
|
|
|
'นาย': 'Mr.',
|
|
|
|
|
'นาง': 'Mrs.',
|
|
|
|
|
'นางสาว': 'Ms.'
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-26 10:40:50 +07:00
|
|
|
const payload = {
|
|
|
|
|
first_name: userData.value.firstName,
|
|
|
|
|
last_name: userData.value.lastName,
|
|
|
|
|
phone: userData.value.phone,
|
|
|
|
|
prefix: {
|
|
|
|
|
th: userData.value.prefix,
|
|
|
|
|
en: prefixMap[userData.value.prefix] || ''
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const result = await updateUserProfile(payload)
|
|
|
|
|
|
|
|
|
|
if (result?.success) {
|
|
|
|
|
// success logic
|
|
|
|
|
} else {
|
2026-01-26 16:29:37 +07:00
|
|
|
alert(result?.error || t('profile.updateError'))
|
2026-01-26 10:40:50 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
isProfileSaving.value = false
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-02 11:11:25 +07:00
|
|
|
const handleSendVerifyEmail = async () => {
|
|
|
|
|
isSendingVerify.value = true
|
|
|
|
|
const result = await sendVerifyEmail()
|
|
|
|
|
isSendingVerify.value = false
|
|
|
|
|
|
|
|
|
|
if (result.success) {
|
|
|
|
|
alert(result.message || t('profile.verifyEmailSuccess') || 'ส่งอีเมลยืนยันสำเร็จ')
|
|
|
|
|
} else {
|
|
|
|
|
if (result.code === 400) {
|
|
|
|
|
alert(t('profile.emailAlreadyVerified') || 'อีเมลของคุณได้รับการยืนยันแล้ว')
|
|
|
|
|
} else {
|
|
|
|
|
alert(result.error || t('profile.verifyEmailError') || 'ส่งอีเมลไม่สำเร็จ')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-26 10:40:50 +07:00
|
|
|
const handleUpdatePassword = async () => {
|
|
|
|
|
if (passwordForm.newPassword !== passwordForm.confirmPassword) {
|
|
|
|
|
alert('รหัสผ่านใหม่ไม่ตรงกัน')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
isPasswordSaving.value = true
|
|
|
|
|
|
|
|
|
|
const result = await changePassword({
|
|
|
|
|
oldPassword: passwordForm.currentPassword,
|
|
|
|
|
newPassword: passwordForm.newPassword
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
if (result.success) {
|
2026-01-26 16:29:37 +07:00
|
|
|
alert(t('profile.passwordSuccess'))
|
2026-01-26 10:40:50 +07:00
|
|
|
passwordForm.currentPassword = ''
|
|
|
|
|
passwordForm.newPassword = ''
|
|
|
|
|
passwordForm.confirmPassword = ''
|
|
|
|
|
} else {
|
2026-01-26 16:29:37 +07:00
|
|
|
alert(result.error || t('profile.passwordError'))
|
2026-01-16 10:03:04 +07:00
|
|
|
}
|
2026-01-26 10:40:50 +07:00
|
|
|
|
|
|
|
|
isPasswordSaving.value = false
|
2026-01-13 10:46:40 +07:00
|
|
|
}
|
2026-01-26 10:40:50 +07:00
|
|
|
|
2026-02-09 11:40:41 +07:00
|
|
|
// Watch for changes in global user state (e.g. after avatar upload or profile update)
|
2026-01-28 14:44:41 +07:00
|
|
|
watch(() => currentUser.value, (newUser) => {
|
|
|
|
|
if (newUser) {
|
|
|
|
|
userData.value.photoURL = newUser.photoURL || ''
|
|
|
|
|
userData.value.firstName = newUser.firstName
|
|
|
|
|
userData.value.lastName = newUser.lastName
|
|
|
|
|
userData.value.prefix = newUser.prefix?.th || ''
|
|
|
|
|
userData.value.email = newUser.email
|
|
|
|
|
userData.value.phone = newUser.phone || ''
|
2026-02-09 16:22:37 +07:00
|
|
|
userData.value.createdAt = newUser.createdAt || ''
|
2026-02-09 11:40:41 +07:00
|
|
|
userData.value.emailVerifiedAt = newUser.emailVerifiedAt
|
2026-01-28 14:44:41 +07:00
|
|
|
}
|
|
|
|
|
}, { deep: true })
|
|
|
|
|
|
2026-02-09 11:40:41 +07:00
|
|
|
const loadCertificates = async () => {
|
|
|
|
|
isLoadingCerts.value = true
|
|
|
|
|
const res = await fetchAllCertificates()
|
|
|
|
|
if (res.success) {
|
|
|
|
|
certificates.value = res.data || []
|
|
|
|
|
}
|
|
|
|
|
isLoadingCerts.value = false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const viewCertificate = (url: string) => {
|
|
|
|
|
if (url) {
|
|
|
|
|
window.open(url, '_blank')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-03 11:01:33 +07:00
|
|
|
onMounted(async () => {
|
|
|
|
|
await fetchUserProfile(true)
|
2026-02-09 11:40:41 +07:00
|
|
|
loadCertificates()
|
2026-01-26 10:40:50 +07:00
|
|
|
isHydrated.value = true
|
|
|
|
|
})
|
2026-01-13 10:46:40 +07:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2026-02-09 10:37:42 +07:00
|
|
|
<div class="page-container">
|
2026-01-26 10:40:50 +07:00
|
|
|
|
|
|
|
|
<div class="flex items-center justify-between mb-8 md:mb-10">
|
|
|
|
|
<div class="flex items-center gap-4">
|
2026-01-26 10:06:22 +07:00
|
|
|
<q-btn
|
2026-01-26 10:40:50 +07:00
|
|
|
v-if="isHydrated && isEditing"
|
|
|
|
|
flat
|
|
|
|
|
round
|
|
|
|
|
icon="arrow_back"
|
|
|
|
|
color="slate-700"
|
|
|
|
|
class="dark:text-white"
|
|
|
|
|
@click="toggleEdit(false)"
|
|
|
|
|
/>
|
|
|
|
|
<h1 class="text-3xl font-black text-slate-900 dark:text-white">
|
|
|
|
|
{{ (isHydrated && isEditing) ? $t('profile.editProfile') : $t('profile.myProfile') }}
|
|
|
|
|
</h1>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="min-h-9 flex items-center">
|
|
|
|
|
<q-btn
|
|
|
|
|
v-if="isHydrated && !isEditing"
|
2026-01-26 10:06:22 +07:00
|
|
|
unelevated
|
|
|
|
|
rounded
|
|
|
|
|
color="primary"
|
|
|
|
|
class="font-bold"
|
|
|
|
|
icon="edit"
|
|
|
|
|
:label="$t('profile.editProfile')"
|
|
|
|
|
@click="toggleEdit(true)"
|
|
|
|
|
/>
|
2026-01-26 10:40:50 +07:00
|
|
|
<div
|
|
|
|
|
v-else-if="!isHydrated"
|
|
|
|
|
class="h-9 w-24 rounded-md bg-slate-200 dark:bg-slate-700 animate-pulse"
|
|
|
|
|
/>
|
2026-01-13 10:46:40 +07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-01-26 10:40:50 +07:00
|
|
|
<div v-if="!isHydrated" class="flex justify-center py-20">
|
|
|
|
|
<q-spinner size="3rem" color="primary" />
|
2026-01-13 10:46:40 +07:00
|
|
|
</div>
|
|
|
|
|
|
2026-01-26 10:40:50 +07:00
|
|
|
<div v-else>
|
|
|
|
|
<div v-if="!isEditing" class="card-premium overflow-hidden fade-in">
|
|
|
|
|
<div class="bg-gradient-to-r from-blue-600 to-indigo-600 h-32 w-full"/>
|
|
|
|
|
<div class="px-8 pb-10 -mt-16">
|
|
|
|
|
<div class="flex flex-col md:flex-row items-end gap-6 mb-10">
|
|
|
|
|
<div class="relative flex-shrink-0">
|
|
|
|
|
<UserAvatar
|
|
|
|
|
:photo-u-r-l="userData.photoURL"
|
|
|
|
|
:first-name="userData.firstName"
|
|
|
|
|
:last-name="userData.lastName"
|
|
|
|
|
size="128"
|
|
|
|
|
class="border-4 border-white dark:border-[#1e293b] shadow-2xl bg-slate-800"
|
|
|
|
|
/>
|
2026-01-29 11:09:29 +07:00
|
|
|
|
2026-01-26 10:40:50 +07:00
|
|
|
</div>
|
|
|
|
|
<div class="pb-2">
|
|
|
|
|
<h2 class="text-3xl font-black text-slate-900 dark:text-white mb-1">{{ userData.firstName }} {{ userData.lastName }}</h2>
|
|
|
|
|
<p class="text-slate-500 dark:text-slate-400 font-medium">{{ userData.email }}</p>
|
|
|
|
|
</div>
|
2026-01-13 10:46:40 +07:00
|
|
|
</div>
|
|
|
|
|
|
2026-01-26 10:40:50 +07:00
|
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
|
|
|
|
<div class="info-group">
|
|
|
|
|
<span class="label">{{ $t('profile.phone') }}</span>
|
|
|
|
|
<p class="value">{{ userData.phone || '-' }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info-group">
|
|
|
|
|
<span class="label">{{ $t('profile.joinedAt') }}</span>
|
2026-02-09 16:22:37 +07:00
|
|
|
<p class="value">{{ formatDate(userData.createdAt) }}</p>
|
2026-01-26 10:40:50 +07:00
|
|
|
</div>
|
2026-01-13 10:46:40 +07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-02-09 11:40:41 +07:00
|
|
|
<!-- Section: My Certificates -->
|
|
|
|
|
<div v-if="!isEditing && certificates.length > 0" class="mt-12 fade-in" style="animation-delay: 0.1s;">
|
|
|
|
|
<h2 class="text-2xl font-black mb-6 text-slate-900 dark:text-white flex items-center gap-3">
|
|
|
|
|
<q-icon name="workspace_premium" color="warning" size="32px" />
|
2026-02-09 16:22:37 +07:00
|
|
|
{{ $t('profile.myCertificates') }}
|
2026-02-09 11:40:41 +07:00
|
|
|
</h2>
|
|
|
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
|
|
|
|
<div v-for="cert in certificates" :key="cert.certificate_id" class="card-premium p-6 hover:border-warning/50 transition-all group">
|
|
|
|
|
<div class="flex items-start justify-between mb-4">
|
|
|
|
|
<div class="p-3 rounded-xl bg-orange-50 dark:bg-orange-900/10 text-orange-600 dark:text-orange-400">
|
|
|
|
|
<q-icon name="card_membership" size="32px" />
|
|
|
|
|
</div>
|
|
|
|
|
<q-btn flat round color="primary" icon="download" @click="viewCertificate(cert.download_url)" class="opacity-0 group-hover:opacity-100 transition-opacity" />
|
|
|
|
|
</div>
|
|
|
|
|
<h3 class="font-bold text-slate-900 dark:text-white mb-1 line-clamp-1">{{ getLocalizedText(cert.course_title) }}</h3>
|
2026-02-09 16:22:37 +07:00
|
|
|
<p class="text-xs text-slate-500 dark:text-slate-400 mb-4 italic">{{ $t('profile.issuedAt') }}: {{ formatDate(cert.issued_at) }}</p>
|
2026-02-09 11:40:41 +07:00
|
|
|
<q-btn
|
|
|
|
|
unelevated
|
|
|
|
|
rounded
|
|
|
|
|
color="warning"
|
|
|
|
|
text-color="dark"
|
|
|
|
|
class="w-full font-bold"
|
2026-02-09 16:22:37 +07:00
|
|
|
:label="$t('profile.viewCertificate')"
|
2026-02-09 11:40:41 +07:00
|
|
|
@click="viewCertificate(cert.download_url)"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-01-26 10:40:50 +07:00
|
|
|
<div v-else class="grid grid-cols-1 lg:grid-cols-2 gap-8 fade-in">
|
|
|
|
|
|
2026-02-02 17:13:58 +07:00
|
|
|
<ProfileEditForm
|
|
|
|
|
v-model="userData"
|
|
|
|
|
:loading="isProfileSaving"
|
2026-02-03 11:01:33 +07:00
|
|
|
:verifying="isSendingVerify"
|
2026-02-02 17:13:58 +07:00
|
|
|
@submit="handleUpdateProfile"
|
|
|
|
|
@upload="handleFileUpload"
|
2026-02-03 11:01:33 +07:00
|
|
|
@verify="handleSendVerifyEmail"
|
2026-02-02 17:13:58 +07:00
|
|
|
/>
|
2026-01-26 10:40:50 +07:00
|
|
|
|
|
|
|
|
|
2026-02-02 17:13:58 +07:00
|
|
|
<PasswordChangeForm
|
|
|
|
|
v-model="passwordForm"
|
|
|
|
|
:loading="isPasswordSaving"
|
|
|
|
|
@submit="handleUpdatePassword"
|
|
|
|
|
/>
|
2026-01-13 10:46:40 +07:00
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-01-26 10:40:50 +07:00
|
|
|
|
2026-01-13 10:46:40 +07:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.text-main {
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.card-premium {
|
2026-02-09 11:40:41 +07:00
|
|
|
background-color: white;
|
|
|
|
|
border-color: #e2e8f0;
|
2026-01-26 10:40:50 +07:00
|
|
|
border-radius: 1.5rem;
|
2026-01-14 11:36:28 +07:00
|
|
|
border-width: 1px;
|
2026-01-26 10:40:50 +07:00
|
|
|
box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
|
|
|
|
|
transition: all 0.3s ease;
|
2026-01-14 11:36:28 +07:00
|
|
|
}
|
2026-02-09 11:40:41 +07:00
|
|
|
|
2026-01-14 11:36:28 +07:00
|
|
|
.dark .card-premium {
|
2026-02-09 11:40:41 +07:00
|
|
|
background-color: #1e293b;
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.05);
|
2026-01-26 10:40:50 +07:00
|
|
|
box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
|
2026-01-13 10:46:40 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.info-group .label {
|
2026-02-09 11:40:41 +07:00
|
|
|
font-size: 0.75rem;
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 0.1em;
|
|
|
|
|
color: #64748b;
|
|
|
|
|
display: block;
|
|
|
|
|
margin-bottom: 0.5rem;
|
2026-01-13 10:46:40 +07:00
|
|
|
}
|
2026-02-09 11:40:41 +07:00
|
|
|
|
|
|
|
|
.dark .info-group .label {
|
|
|
|
|
color: #94a3b8;
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-13 10:46:40 +07:00
|
|
|
.info-group .value {
|
2026-02-09 11:40:41 +07:00
|
|
|
font-size: 1.125rem;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
color: #0f172a;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark .info-group .value {
|
|
|
|
|
color: white;
|
2026-01-13 10:46:40 +07:00
|
|
|
}
|
|
|
|
|
|
2026-01-26 10:06:22 +07:00
|
|
|
.premium-q-input :deep(.q-field__control) {
|
|
|
|
|
border-radius: 12px;
|
2026-01-13 10:46:40 +07:00
|
|
|
}
|
2026-01-26 10:06:22 +07:00
|
|
|
.dark .premium-q-input :deep(.q-field__control) {
|
2026-01-26 10:40:50 +07:00
|
|
|
background: #0f172a;
|
2026-01-13 10:46:40 +07:00
|
|
|
}
|
2026-01-26 10:06:22 +07:00
|
|
|
.dark .premium-q-input :deep(.q-field__native) {
|
|
|
|
|
color: white;
|
2026-01-13 10:46:40 +07:00
|
|
|
}
|
2026-01-26 10:06:22 +07:00
|
|
|
.dark .premium-q-input :deep(.q-field__label) {
|
|
|
|
|
color: #94a3b8;
|
2026-01-13 10:46:40 +07:00
|
|
|
}
|
|
|
|
|
|
2026-01-26 10:40:50 +07:00
|
|
|
.fade-in {
|
|
|
|
|
animation: fadeIn 0.4s ease-out forwards;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes fadeIn {
|
|
|
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
|
|
|
to { opacity: 1; transform: translateY(0); }
|
2026-01-13 10:46:40 +07:00
|
|
|
}
|
|
|
|
|
</style>
|