ED:Change color/fix font

This commit is contained in:
supalerk-ar66 2026-01-13 11:46:52 +07:00
parent 959a7e3f85
commit 1e7a183668
9 changed files with 31 additions and 30 deletions

View file

@ -1,4 +1,4 @@
// generated by the @nuxtjs/tailwindcss <https://github.com/nuxt-modules/tailwindcss> module at 13/1/2569 11:18:03
// generated by the @nuxtjs/tailwindcss <https://github.com/nuxt-modules/tailwindcss> module at 13/1/2569 11:39:33
import "@nuxtjs/tailwindcss/config-ctx"
import configMerger from "@nuxtjs/tailwindcss/merger";

View file

@ -24,7 +24,7 @@
--error: #ef4444;
/* Typography */
--font-main: "Inter", "Prompt", "Sarabun", sans-serif;
--font-main: "Prompt", sans-serif;
/* Layout */
--sidebar-width: 260px;

View file

@ -165,7 +165,7 @@ const emit = defineEmits<{
.btn-premium-secondary {
background: transparent;
color: var(--text-main);
color: #1e293b;
padding: 0.875rem;
border-radius: 1rem;
font-weight: 800;
@ -175,7 +175,8 @@ const emit = defineEmits<{
}
.btn-premium-secondary:hover {
background: var(--bg-body);
border-color: #cbd5e1;
border-color: #94a3b8;
color: #0f172a;
}
:global(.dark) .btn-premium-secondary {

View file

@ -27,9 +27,9 @@
}
},
fontFamily: {
sans: ['Inter', 'Prompt', 'Sarabun', 'sans-serif']
sans: ['Prompt', 'sans-serif']
}
}
},
plugins: []
}; /* v9-24ec813999eb8913 */
}; /* v9-ac7f45645412e91a */

View file

@ -101,15 +101,15 @@ const filteredCourses = computed(() => {
<input
v-model="searchQuery"
type="text"
class="input-field text-slate-900 dark:text-white bg-white dark:bg-slate-800"
class="input-field text-slate-900 dark:text-white bg-white dark:bg-slate-800 placeholder:text-slate-500"
placeholder="ค้นหาคอร์ส..."
style="padding-left: 36px; width: 240px;"
>
</div>
<!-- Sorting Select -->
<select class="input-field text-slate-900 dark:text-white bg-white dark:bg-slate-800" style="width: auto;">
<option>เรยงตาม: าส</option>
<option>ยอดนยม</option>
<select class="input-field bg-white dark:bg-slate-800" style="width: auto; color: #0f172a;">
<option style="color: #0f172a;">เรยงตาม: าส</option>
<option style="color: #0f172a;">ยอดนยม</option>
</select>
</div>
</div>

View file

@ -163,7 +163,7 @@ const seek = (e: MouseEvent) => {
<div class="mt-8 border-t border-white/5 pt-2">
<div class="chapter-header px-4 py-2 uppercase tracking-widest text-[10px]">03. แบบทดสอบทายบท</div>
<NuxtLink to="/classroom/quiz" class="lesson-item px-4 no-underline cursor-pointer">
<span class="text-[12px] font-medium text-slate-400 group-hover:text-white transition-colors">อสอบปลายภาค</span>
<span class="text-[12px] font-medium text-slate-900 dark:text-slate-200 group-hover:text-black dark:group-hover:text-white transition-colors">อสอบปลายภาค</span>
<span class="text-xs opacity-50">📄</span>
</NuxtLink>
</div>

View file

@ -70,12 +70,12 @@ onUnmounted(() => {
<!-- Header: Precise matching of the image -->
<header class="h-14 bg-white dark:bg-[#161b22] fixed top-0 inset-x-0 z-[100] flex items-center px-6 border-b border-slate-300 dark:border-white/5 transition-colors">
<div class="flex items-center">
<button class="flex items-center gap-2 text-[11px] font-bold text-slate-700 dark:text-slate-400 hover:text-slate-900 dark:hover:text-white transition-colors" @click="confirmExit">
<button class="flex items-center gap-2 text-sm font-bold text-slate-700 dark:text-slate-400 hover:text-slate-900 dark:hover:text-white transition-colors" @click="confirmExit">
<span></span>
<span>ออกจากแบบทดสอบ</span>
</button>
<div class="w-[1px] h-4 bg-slate-300 dark:bg-white/10 mx-4"/>
<h1 class="text-[12px] font-black text-slate-900 dark:text-white uppercase tracking-tight">แบบทดสอบทายบท: นฐาน UX</h1>
<h1 class="text-base font-black text-slate-900 dark:text-white uppercase tracking-tight">แบบทดสอบทายบท: นฐาน UX</h1>
</div>
</header>

View file

@ -65,7 +65,7 @@ const saveProfile = () => {
<div class="profile-page max-w-4xl mx-auto px-4 py-8">
<!-- Header: Title and Edit action -->
<div class="flex items-center justify-between mb-10">
<h1 class="text-3xl font-black text-main">โปรไฟลของฉ</h1>
<h1 class="text-3xl font-black text-slate-900 dark:text-white">โปรไฟลของฉ</h1>
<div class="flex items-center gap-6">
<button v-if="!isEditing" class="btn-premium-edit" @click="toggleEdit(true)">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
@ -94,8 +94,8 @@ const saveProfile = () => {
<div class="absolute bottom-2 right-2 bg-emerald-500 w-5 h-5 rounded-full border-4 border-[#1e293b]"/>
</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-700 dark:text-slate-400 font-bold uppercase tracking-widest text-[10px]">Student ID: STU-88293</p>
<h2 class="text-3xl font-black text-white mb-1">{{ userData.firstName }} {{ userData.lastName }}</h2>
<p class="text-slate-400 font-bold uppercase tracking-widest text-[10px]">Student ID: STU-88293</p>
</div>
</div>
@ -126,7 +126,7 @@ const saveProfile = () => {
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18" />
</svg>
</button>
<h2 class="text-2xl font-black text-slate-900 dark:text-white">แกไขขอมลสวนต</h2>
<h2 class="text-2xl font-black text-white">แกไขขอมลสวนต</h2>
</div>
<!-- Avatar Upload Section -->
@ -148,7 +148,7 @@ const saveProfile = () => {
<input ref="fileInput" type="file" class="hidden" accept="image/*" @change="handleFileUpload" >
</div>
<div class="text-center md:text-left">
<h3 class="font-black text-slate-900 dark:text-white mb-2">ปโปรไฟลของค</h3>
<h3 class="font-black text-white mb-2">ปโปรไฟลของค</h3>
<p class="text-xs text-slate-500 mb-4 uppercase tracking-widest font-bold">Recommended: Square image, max 2MB</p>
<button class="btn-upload" @click="triggerUpload">อัปโหลดรูปใหม่</button>
</div>
@ -157,7 +157,7 @@ const saveProfile = () => {
<!-- Form Inputs -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-10">
<div class="space-y-2">
<label class="text-xs font-black uppercase tracking-widest text-slate-500">คำนำหน</label>
<label class="text-xs font-black uppercase tracking-widest text-slate-400">คำนำหน</label>
<select v-model="userData.prefix" class="premium-input w-full">
<option>นาย</option>
<option>นาง</option>
@ -166,38 +166,38 @@ const saveProfile = () => {
</div>
<div class="grid grid-cols-2 gap-4">
<div class="space-y-2">
<label class="text-xs font-black uppercase tracking-widest text-slate-500"></label>
<label class="text-xs font-black uppercase tracking-widest text-slate-400"></label>
<input v-model="userData.firstName" type="text" class="premium-input w-full">
</div>
<div class="space-y-2">
<label class="text-xs font-black uppercase tracking-widest text-slate-500">นามสก</label>
<label class="text-xs font-black uppercase tracking-widest text-slate-400">นามสก</label>
<input v-model="userData.lastName" type="text" class="premium-input w-full">
</div>
</div>
<div class="space-y-2">
<label class="text-xs font-black uppercase tracking-widest text-slate-500">เมล</label>
<label class="text-xs font-black uppercase tracking-widest text-slate-400">เมล</label>
<input v-model="userData.email" type="email" class="premium-input w-full">
</div>
<div class="space-y-2">
<label class="text-xs font-black uppercase tracking-widest text-slate-500">เบอรโทรศพท</label>
<label class="text-xs font-black uppercase tracking-widest text-slate-400">เบอรโทรศพท</label>
<input v-model="userData.phone" type="text" class="premium-input w-full">
</div>
</div>
<!-- Security Section -->
<div class="border-t border-white/5 pt-10 mb-10">
<h3 class="text-lg font-black text-slate-900 dark:text-white mb-6">ความปลอดภ</h3>
<h3 class="text-lg font-black text-white mb-6">ความปลอดภ</h3>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="space-y-2">
<label class="text-xs font-black uppercase tracking-widest text-slate-500">รหสผานปจจ</label>
<label class="text-xs font-black uppercase tracking-widest text-slate-400">รหสผานปจจ</label>
<input type="password" class="premium-input w-full" placeholder="••••••••">
</div>
<div class="space-y-2">
<label class="text-xs font-black uppercase tracking-widest text-slate-500">รหสผานใหม</label>
<label class="text-xs font-black uppercase tracking-widest text-slate-400">รหสผานใหม</label>
<input type="password" class="premium-input w-full">
</div>
<div class="space-y-2">
<label class="text-xs font-black uppercase tracking-widest text-slate-500">นยนรหสผานใหม</label>
<label class="text-xs font-black uppercase tracking-widest text-slate-400">นยนรหสผานใหม</label>
<input type="password" class="premium-input w-full">
</div>
</div>
@ -225,10 +225,10 @@ const saveProfile = () => {
}
.info-group .label {
@apply text-xs font-black uppercase tracking-widest text-slate-700 dark:text-slate-500 block mb-2;
@apply text-xs font-black uppercase tracking-widest text-slate-400 block mb-2;
}
.info-group .value {
@apply text-lg font-bold text-slate-900 dark:text-slate-200;
@apply text-lg font-bold text-white;
}
.premium-input {

View file

@ -27,7 +27,7 @@ export default {
}
},
fontFamily: {
sans: ['Inter', 'Prompt', 'Sarabun', 'sans-serif'],
sans: ['Prompt', 'sans-serif'],
}
}
},