ปรับ css และดีไซน์หน้า กรอกข้อมูลสมัครสอบ
This commit is contained in:
parent
dcad2fcb07
commit
c299af578f
14 changed files with 1261 additions and 1378 deletions
|
|
@ -64,214 +64,33 @@ const doLogout = () => {
|
|||
<!-- แบบเก่า design แรก -->
|
||||
<!-- <q-layout view="lHh Lpr lff"> -->
|
||||
<!-- ปรับให้กับหน้า รายละเอียดรายการสอบทั้งหมด -->
|
||||
<q-layout view="lHh LpR lff">
|
||||
<q-layout view="lHh LpR lff" class="bgColor text-dark">
|
||||
<!-- header -->
|
||||
<q-header flat class="bg-grey-2 text-dark" height-hint="7">
|
||||
<q-toolbar style="padding: 0 2%">
|
||||
<!-- <q-btn
|
||||
size="13px"
|
||||
class="bg-grey-3"
|
||||
flat
|
||||
dense
|
||||
round
|
||||
@click="toggleBtnLeft"
|
||||
aria-label="Menu"
|
||||
>
|
||||
<q-icon
|
||||
:name="miniState == false ? 'mdi-backburger' : 'mdi-menu-open'"
|
||||
size="20px"
|
||||
color="grey-7"
|
||||
/>
|
||||
</q-btn> -->
|
||||
|
||||
<q-space />
|
||||
|
||||
<!-- Search -->
|
||||
<!-- <q-input dense rounded standout v-model="text" placeholder="ค้นหา">
|
||||
<template v-slot:prepend>
|
||||
<q-icon name="mdi-magnify" size="20px" color="grey-7" />
|
||||
</template>
|
||||
</q-input> -->
|
||||
<!-- <q-btn class="bg-grey-3" flat dense round>
|
||||
<q-icon name="mdi-magnify" size="20px" color="grey-7" />
|
||||
</q-btn> -->
|
||||
|
||||
<!-- Notification -->
|
||||
<!-- <q-btn
|
||||
round
|
||||
dense
|
||||
flat
|
||||
size="13px"
|
||||
class="q-mx-md bg-grey-3"
|
||||
:color="notiList.length === 0 ? 'grey-6' : 'grey-8'"
|
||||
:disable="notiList.length === 0"
|
||||
>
|
||||
<q-icon name="mdi-bell" size="18px" color="grey-7" />
|
||||
<q-badge
|
||||
rounded
|
||||
v-show="notiList.length > 0"
|
||||
color="negative"
|
||||
text-color="white"
|
||||
floating
|
||||
>{{ notiList.length }}</q-badge
|
||||
>
|
||||
<q-menu v-model="notiTrigger" max-width="480px" :offset="[0, 10]">
|
||||
<div class="q-px-md q-py-sm row col-12 items-center">
|
||||
<div class="text-subtitle1 text-weight-medium">การแจ้งเตือน</div>
|
||||
</div>
|
||||
|
||||
<q-list style="min-width: 300px" v-for="n in notiList" :key="n.id">
|
||||
<q-item v-ripple class="mytry" dense>
|
||||
<q-item-section avatar top style="min-width: 40px">
|
||||
<q-avatar color="primary" size="22px" text-color="white">
|
||||
<span class="text-weight-medium text-uppercase">{{ n.sender }}</span>
|
||||
</q-avatar>
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
<q-item-label caption class="text-black">{{ n.body }}</q-item-label>
|
||||
<q-item-label caption class="row items-center text-grey-7">{{
|
||||
n.timereceive
|
||||
}}</q-item-label>
|
||||
</q-item-section>
|
||||
<q-btn size="sm" unelevated dense icon="mdi-close" class="mybtn q-mx-xs"></q-btn>
|
||||
</q-item>
|
||||
<q-separator color="grey-2" />
|
||||
</q-list>
|
||||
</q-menu>
|
||||
</q-btn>
|
||||
<div class="row items-center no-wrap">
|
||||
<q-btn-dropdown size="md" dropdown-color="grey" flat>
|
||||
<template v-slot:label>
|
||||
<q-item v-close-popup class="q-pa-none">
|
||||
<q-item-section avatar>
|
||||
<q-avatar color="grey-3">
|
||||
<q-icon name="mdi-account" size="22px" color="grey-7" />
|
||||
</q-avatar>
|
||||
</q-item-section>
|
||||
<q-item-section class="text-left">
|
||||
<q-item-label class="text-caption text-weight-medium">{{
|
||||
fullname
|
||||
}}</q-item-label>
|
||||
<q-item-label caption>เจ้าหน้าที่ ก.ก.</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</template>
|
||||
<div
|
||||
class="row justify-center"
|
||||
style="border-top: solid 3px #1bb19b !important; width: 273.797px"
|
||||
>
|
||||
<div class="column items-center col-12 q-py-md" color="grey-3">
|
||||
<q-avatar size="72px" color="grey-4">
|
||||
<q-icon name="mdi-account" color="grey-7" />
|
||||
</q-avatar>
|
||||
<div class="text-subtitle2 q-mt-md q-mb-xs text-center">
|
||||
{{ fullname }}
|
||||
</div>
|
||||
<q-btn
|
||||
color="primary"
|
||||
label="ออกจากระบบ"
|
||||
push
|
||||
size="sm"
|
||||
v-close-popup
|
||||
@click="doLogout"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="column col-12">
|
||||
<q-separator />
|
||||
<div class="column q-pb-md justify-center">
|
||||
<div class="text-overline text-grey q-px-md q-pt-sm">เลือกโหมด</div>
|
||||
<q-list dense v-for="op in options" :key="op.label">
|
||||
<q-item clickable>
|
||||
<q-item-section avatar>
|
||||
<q-avatar
|
||||
:color="op.color"
|
||||
text-color="white"
|
||||
:icon="op.icon"
|
||||
size="20px"
|
||||
font-size="12px"
|
||||
/>
|
||||
</q-item-section>
|
||||
<q-item-section class="q-py-sm">{{ op.label }}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</q-btn-dropdown>
|
||||
</div> -->
|
||||
</q-toolbar>
|
||||
</q-header>
|
||||
<q-header flat class="bg-white text-white row justify-center header" height-hint="7">
|
||||
<q-toolbar style="padding:0% 2%" class="col-xs-12 col-sm-11 col-md-11 col-lg-10">
|
||||
<q-toolbar-title shrink class="row items-center no-wrap">
|
||||
<q-btn flat class="bg-white" dense round>
|
||||
<q-avatar size="35px">
|
||||
<img src="../assets/logo.png" />
|
||||
</q-avatar>
|
||||
</q-btn>
|
||||
<div class="row q-ml-md text-dark" v-if="$q.screen.gt.xs">
|
||||
<div class="col-12 textline1">
|
||||
ระบบทรัพยากรบุคคล
|
||||
</div>
|
||||
<div class="text-caption textline2">
|
||||
กรุงเทพมหานคร
|
||||
</div>
|
||||
</div>
|
||||
</q-toolbar-title>
|
||||
<q-space/>
|
||||
<q-btn v-if="$q.screen.gt.xs" class="bg-amber-1 text-amber-9" icon="mdi-logout-variant" size="12px" label="ออกจากระบบ" flat v-close-popup @click="doLogout" />
|
||||
<q-btn v-else class="bg-amber-1 text-amber-9" icon="mdi-logout-variant" flat v-close-popup @click="doLogout" />
|
||||
</q-toolbar>
|
||||
</q-header>
|
||||
<!-- end header -->
|
||||
|
||||
<!-- drawer -->
|
||||
<!-- <q-drawer
|
||||
side="left"
|
||||
bordered
|
||||
class="text-white"
|
||||
style="background: #273238"
|
||||
v-model="drawerL"
|
||||
show-if-above
|
||||
:width="260"
|
||||
:breakpoint="1023"
|
||||
:mini="miniState"
|
||||
>
|
||||
<q-scroll-area class="fit">
|
||||
<q-toolbar class="q-py-md" v-if="miniState !== true">
|
||||
<q-toolbar-title v-if="$q.screen.gt.xs" shrink class="row items-center no-wrap">
|
||||
<q-img
|
||||
src="@/assets/logo.png"
|
||||
spinner-color="white"
|
||||
style="height: 40px; max-width: 40px"
|
||||
/>
|
||||
<div class="row q-ml-md">
|
||||
<div
|
||||
style="color: #ffffff; letter-spacing: 1px"
|
||||
class="text-body2 text-weight-bolder"
|
||||
>
|
||||
ระบบ<span class="text-primary">ทรัพยากรบุคคล</span>
|
||||
</div>
|
||||
<div class="text-caption text-white"> กรุงเทพมหานคร</div>
|
||||
</div>
|
||||
</q-toolbar-title>
|
||||
</q-toolbar>
|
||||
<q-toolbar class="q-py-md" v-else>
|
||||
<q-img
|
||||
src="@/assets/logo.png"
|
||||
spinner-color="white"
|
||||
style="height: 32px; max-width: 32px"
|
||||
/>
|
||||
</q-toolbar>
|
||||
<q-separator inset color="grey-9" />
|
||||
<q-list padding>
|
||||
<div v-for="(menuItem, index) in menuList" :key="index">
|
||||
<q-item
|
||||
class="text-weight-medium menu"
|
||||
active-class="text-primary active-item text-weight-bold menuActive"
|
||||
:to="{ name: `${menuItem.path}` }"
|
||||
:active="activeMenu(menuItem.path)"
|
||||
clickable
|
||||
v-ripple
|
||||
dense
|
||||
exact
|
||||
>
|
||||
<q-item-section avatar>
|
||||
<q-avatar size="md" font-size="20px">
|
||||
<q-icon :name="menuItem.key === active ? menuItem.activeIcon : menuItem.icon" />
|
||||
</q-avatar>
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section>
|
||||
<q-item-label>{{ menuItem.label }}</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
</div>
|
||||
</q-list>
|
||||
</q-scroll-area>
|
||||
</q-drawer> -->
|
||||
|
||||
<q-page-container class="bg-grey-2">
|
||||
<q-page style="padding: 0 2%">
|
||||
<q-page-container class="row justify-center">
|
||||
<q-page style="padding:1.5% 2%" class="col-xs-12 col-sm-11 col-md-11 col-lg-10">
|
||||
<router-view :key="$route.fullPath" />
|
||||
</q-page>
|
||||
</q-page-container>
|
||||
|
|
@ -279,35 +98,13 @@ const doLogout = () => {
|
|||
</template>
|
||||
|
||||
<style>
|
||||
.menu {
|
||||
padding-bottom: 5px;
|
||||
padding-top: 5px;
|
||||
border-radius: 0 100px 100px 0;
|
||||
margin-right: 4%;
|
||||
.bgColor {
|
||||
/* background-image: url("../assets/bg.png");
|
||||
background-size: cover;
|
||||
background-size: 100%; */
|
||||
background: #F6F9FA;
|
||||
}
|
||||
|
||||
.menuActive {
|
||||
background: #212a2f;
|
||||
border-radius: 0 100px 100px 0;
|
||||
margin-right: 4%;
|
||||
}
|
||||
.menuSub .q-item {
|
||||
border-radius: 0 100px 100px 0;
|
||||
margin-right: 4%;
|
||||
}
|
||||
|
||||
/* .menuSubAct {
|
||||
background: #1e2529d9;
|
||||
} */
|
||||
|
||||
.menuSubHover {
|
||||
padding-left: 30%;
|
||||
border-radius: 20px;
|
||||
}
|
||||
.q-expansion-item__content {
|
||||
background: #212a2f;
|
||||
padding: 5px 0px;
|
||||
}
|
||||
.tabNative {
|
||||
color: grey;
|
||||
padding-left: 8%;
|
||||
|
|
@ -321,12 +118,15 @@ const doLogout = () => {
|
|||
}
|
||||
|
||||
.q-card {
|
||||
box-shadow: 3px 3px 20px -10px rgba(151, 150, 150, 0.261) !important;
|
||||
box-shadow: 3px 3px 20px -10px rgba(151, 150, 150, 0.261) ;
|
||||
}
|
||||
.q-card--bordered {
|
||||
border: 1px solid #ededed;
|
||||
border: 1px solid #92b4c847;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
.q-stepper{
|
||||
box-shadow: 3px 3px 20px -10px rgba(151, 150, 150, 0.261) ;
|
||||
}
|
||||
.q-menu {
|
||||
box-shadow: 3px 3px 10px 1px rgba(95, 95, 95, 0.15) !important;
|
||||
}
|
||||
|
|
@ -340,10 +140,9 @@ const doLogout = () => {
|
|||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.q-field--outlined .q-field__control:before {
|
||||
.q-field--outlined .q-field__control:before,.q-field .q-field__control:before{
|
||||
border-color: #c8d3db;
|
||||
}
|
||||
|
||||
.q-field--outlined .q-icon {
|
||||
color: #7474747f;
|
||||
}
|
||||
|
|
@ -367,4 +166,19 @@ const doLogout = () => {
|
|||
::-webkit-scrollbar-thumb:hover {
|
||||
background-color: #a8bbbf;
|
||||
}
|
||||
|
||||
.header{
|
||||
border-bottom: 1px solid #92b4c847;
|
||||
height: 50px;
|
||||
}
|
||||
.textline1{
|
||||
font-size: 0.90rem;
|
||||
line-height:1.2rem !important;
|
||||
font-weight: 500;
|
||||
}
|
||||
.textline2{
|
||||
line-height:1rem !important;
|
||||
font-weight: 400;
|
||||
color: #96a9ad;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue