Merge branch 'main' of github.com-work:Frappet/BMA-EHR-RECRUIT-QUALIFYING-EXAM

This commit is contained in:
schooltechx 2023-04-05 18:18:07 +07:00
commit 18382d7429
6 changed files with 80 additions and 23 deletions

View file

@ -7,16 +7,16 @@
font-family: 'Noto Sans Thai', sans-serif; font-family: 'Noto Sans Thai', sans-serif;
} }
h1 { h1 {
@apply text-4xl;
}
h2 {
@apply text-2xl; @apply text-2xl;
} }
h2 {
@apply text-xl;
}
ul{ ul{
@apply list-disc @apply list-disc;
} }
ol{ ol{
@apply list-decimal @apply list-decimal;
} }
.cardxl{ .cardxl{
padding-right: 2rem; padding-right: 2rem;
@ -41,14 +41,15 @@
.parallax-inner > h2{ .parallax-inner > h2{
color: #fff; color: #fff;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 5px; letter-spacing: 2px;
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 0; left: 0;
margin-top: -20.5px; margin-top: -20.5px;
width: 100%; width: 100%;
text-align: center; text-align: center;
font-weight: 500; font-weight: 600;
font-size: 1.5rem !important;
} }
.breadTaxt{ .breadTaxt{
font-weight: 300; font-weight: 300;

View file

@ -5,14 +5,39 @@
export let data: PageData; export let data: PageData;
</script> </script>
<section class="items-start h-screen flex max-h-860-px pt-10 bg-blueGray-100"> <section>
<div class="container mx-auto items-start flex flex-wrap px-4"> <div class="p-one parallax-inner">
<div > <h2>เกี่ยวกับเรา</h2>
{@html data.content}
</div> </div>
<div>{ver.version}</div> </section>
<section class="pb-40 relative bg-blueGray-100">
<div class="container mx-auto justify-center flex flex-wrap">
<div class=" bg-blueGray-100 -mt-6 px-5 top-0 bottom-auto absolute z-40 rounded-md" >
<div class="text-sm breadcrumbs">
<ul>
<li class="text-pink-500 hover:text-pink-700 ">
<a href="/" >
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" /></svg>
</a>
</li>
<li>
<span class="breadTaxt">เกี่ยวกับเรา</span>
</li>
</ul>
</div>
</div>
</div>
<div class="container mx-auto items-start flex flex-wrap px-4 pt-11">
<div class="card bg-white shadow-xl w-full p-8">
<div>
{@html data.detail}
</div>
<div class="mt-4">{data.contact.description}</div>
<div class="pt-12">{ver.version}</div>
<div>{ver.builddate}</div> <div>{ver.builddate}</div>
</div> </div>
</div>
</section> </section>

View file

@ -33,7 +33,7 @@
<div class="flex flex-wrap items-center"> <div class="flex flex-wrap items-center">
<div class="relative w-full px-4 max-w-full flex-grow flex-1"> <div class="relative w-full px-4 max-w-full flex-grow flex-1">
<h3 <h3
class="font-semibold text-lg text-blueGray-700'" class="text-lg text-blueGray-700'"
> >
รายการสอบ รายการสอบ
</h3> </h3>

View file

@ -6,13 +6,16 @@ export const load: PageServerLoad = async () => {
const exams = await getQualifyExams() const exams = await getQualifyExams()
const events:CalendarEvent[]=[] const events:CalendarEvent[]=[]
exams.forEach(({id,title,start,institute_id})=>{ exams.forEach(({id,title,start,institute_id})=>{
let backgroundColor ="#1111EE" let backgroundColor =""
switch (institute_id) { switch (institute_id) {
case 1: case 1:
backgroundColor="#EE1111" backgroundColor="rgba(251,64,75,.2)"
break; break;
case 2: case 2:
backgroundColor="#11EE11" backgroundColor="#23ccef"
break;
case 3:
backgroundColor="rgba(68,125,247,.2)"
break; break;
default: default:
break; break;

View file

@ -29,20 +29,20 @@
</div> </div>
</div> </div>
<div class="container mx-auto items-start flex flex-wrap px-4 pt-11"> <div class="container mx-auto items-start flex flex-wrap px-4 pt-11">
<div class="w-full lg:w-6/12 cardxl"> <div class="w-full lg:w-7/12 cardxl">
<div class="card bg-white shadow-xl w-full"> <div class="card bg-white shadow-xl w-full">
<ActivityCalendar {events} /> <ActivityCalendar {events} />
</div> </div>
</div> </div>
<div class="w-full lg:w-6/12"> <div class="w-full lg:w-5/12">
<div <div
class=" card bg-white shadow-xl flex flex-col min-w-0 break-words w-full" class=" card bg-white shadow-xl flex flex-col min-w-0 break-words w-full auto-rows-max"
> >
<div class="rounded-t mb-0 px-4 py-3 border-0"> <div class="rounded-t mb-0 px-4 py-3 border-0">
<div class="flex flex-wrap items-center"> <div class="flex flex-wrap items-center">
<div class="relative w-full px-4 max-w-full flex-grow flex-1"> <div class="relative w-full px-4 max-w-full flex-grow flex-1">
<h3 <h3
class="font-semibold text-lg text-blueGray-700'" class="text-lg text-blueGray-700'"
> >
รายการสอบ รายการสอบ
</h3> </h3>

View file

@ -42,11 +42,19 @@ button:active {outline:none;}
background: #e3e3e3 ; background: #e3e3e3 ;
color : #66615b; color : #66615b;
} }
/* ----------- table ----------- */
.fc .fc-toolbar-title{ .fc .fc-toolbar-title{
font-size: 1.4rem; font-size: 1.4rem;
} }
@media only screen and (max-width: 1024px) {
.fc .fc-toolbar-title{
font-size: 1.2rem;
}
}
/* ----------- table ----------- */
thead tr.fc-first{ thead tr.fc-first{
border-color: #cdcdcd; border-color: #cdcdcd;
@ -85,3 +93,23 @@ table.fc-border-separate{
.fc .fc-daygrid-day.fc-day-today{ .fc .fc-daygrid-day.fc-day-today{
background-color: rgba(100, 116, 139, 0.06); background-color: rgba(100, 116, 139, 0.06);
} }
/* ----------- table event ----------- */
.fc-h-event{
width: auto;
border: none;
}
.fc-h-event .fc-event-title{
padding-left: 0.5em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color:#334155;
font-weight:400 !important;
}
.fc-daygrid-event .fc-event-title{
white-space: wrap;
overflow: hidden;
text-overflow: ellipsis;
font-weight: 400;
}