2023-11-07 11:17:13 +07:00
|
|
|
|
<script setup lang="ts">
|
2023-11-14 17:47:43 +07:00
|
|
|
|
import { ref, onMounted } from 'vue'
|
|
|
|
|
|
import { useRouter } from 'vue-router'
|
|
|
|
|
|
import { useQuasar } from 'quasar'
|
|
|
|
|
|
import moment from 'moment'
|
|
|
|
|
|
import Camera from 'simple-vue-camera'
|
2023-11-07 11:17:13 +07:00
|
|
|
|
|
|
|
|
|
|
// import Type
|
2023-11-14 17:47:43 +07:00
|
|
|
|
import type { FormRef } from '@/interface/response/checkin'
|
2023-11-07 11:17:13 +07:00
|
|
|
|
// import components
|
2023-11-14 17:47:43 +07:00
|
|
|
|
import MapCheck from '@/components/MapCheckin.vue'
|
2023-11-07 11:17:13 +07:00
|
|
|
|
// import Stores
|
2023-11-14 17:47:43 +07:00
|
|
|
|
import { useCounterMixin } from '@/stores/mixin'
|
2023-11-07 11:17:13 +07:00
|
|
|
|
|
2023-11-14 17:47:43 +07:00
|
|
|
|
const mixin = useCounterMixin()
|
|
|
|
|
|
const { date2Thai, dialogConfirm } = mixin
|
|
|
|
|
|
const router = useRouter()
|
|
|
|
|
|
const $q = useQuasar()
|
2023-11-07 11:17:13 +07:00
|
|
|
|
|
2023-11-14 17:47:43 +07:00
|
|
|
|
const stetusCheckin = ref(true)
|
2023-11-07 11:17:13 +07:00
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
2023-11-14 17:47:43 +07:00
|
|
|
|
updateClock()
|
|
|
|
|
|
})
|
2023-11-07 11:17:13 +07:00
|
|
|
|
|
|
|
|
|
|
//time
|
2023-11-14 17:47:43 +07:00
|
|
|
|
const dateNow = ref<Date>(new Date())
|
|
|
|
|
|
const Thai = ref<Date>(dateNow.value)
|
|
|
|
|
|
const formattedS = ref()
|
|
|
|
|
|
const formattedM = ref()
|
|
|
|
|
|
const formattedH = ref()
|
2023-11-07 11:17:13 +07:00
|
|
|
|
|
|
|
|
|
|
function updateClock() {
|
2023-11-14 17:47:43 +07:00
|
|
|
|
const date = Date.now()
|
|
|
|
|
|
const hh = moment(date).format('HH')
|
|
|
|
|
|
const mm = moment(date).format('mm')
|
|
|
|
|
|
const ss = moment(date).format('ss')
|
|
|
|
|
|
formattedS.value = ss
|
|
|
|
|
|
formattedM.value = mm
|
|
|
|
|
|
formattedH.value = hh
|
2023-11-07 11:17:13 +07:00
|
|
|
|
}
|
2023-11-14 17:47:43 +07:00
|
|
|
|
setInterval(updateClock, 1000)
|
2023-11-07 11:17:13 +07:00
|
|
|
|
|
|
|
|
|
|
//location
|
2023-11-14 17:47:43 +07:00
|
|
|
|
const location = ref<string>('')
|
|
|
|
|
|
const coordinates = ref<string>('13° 43’ 45” N 100° 31’ 26” E')
|
|
|
|
|
|
const workplace = ref<string>('in-place')
|
|
|
|
|
|
const useLocation = ref<string | null>('')
|
|
|
|
|
|
const model = ref<string | null>('')
|
2023-11-07 11:17:13 +07:00
|
|
|
|
const options = ref<string[]>([
|
2023-11-14 17:47:43 +07:00
|
|
|
|
'ปฏิบัติงานที่บ้าน',
|
|
|
|
|
|
'ลืมลงเวลาปฏิบัติงาน',
|
|
|
|
|
|
'ไปประชุม/อบรม/สัมมนา/ปฏิบัติงานที่บ้านนอกสถานที่',
|
|
|
|
|
|
'ขออนุญาตออกนอกสถานที่',
|
|
|
|
|
|
'อื่นๆ',
|
|
|
|
|
|
])
|
2023-11-07 11:17:13 +07:00
|
|
|
|
function selectLocation() {
|
2023-11-14 17:47:43 +07:00
|
|
|
|
if (model.value === 'อื่นๆ') {
|
|
|
|
|
|
useLocation.value = ''
|
2023-11-07 11:17:13 +07:00
|
|
|
|
} else {
|
2023-11-14 17:47:43 +07:00
|
|
|
|
useLocation.value = model.value
|
2023-11-07 11:17:13 +07:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
//camera
|
2023-11-14 17:47:43 +07:00
|
|
|
|
const camera = ref<InstanceType<typeof Camera>>()
|
|
|
|
|
|
const cameraIsOn = ref<boolean>(false)
|
|
|
|
|
|
const img = ref<any>(undefined)
|
|
|
|
|
|
const photoWidth = ref<number>(350)
|
|
|
|
|
|
const photoHeight = ref<number>(350)
|
2023-11-07 11:17:13 +07:00
|
|
|
|
|
|
|
|
|
|
const openCamera = () => {
|
2023-11-14 17:47:43 +07:00
|
|
|
|
cameraIsOn.value ? camera.value?.stop() : camera.value?.start()
|
|
|
|
|
|
cameraIsOn.value = !cameraIsOn.value
|
|
|
|
|
|
}
|
2023-11-07 11:17:13 +07:00
|
|
|
|
|
2023-11-14 17:47:43 +07:00
|
|
|
|
async function capturePhoto() {
|
|
|
|
|
|
const imageBlob: any = await camera.value?.snapshot(
|
|
|
|
|
|
{ width: photoWidth.value, height: photoHeight.value },
|
|
|
|
|
|
'image/png',
|
|
|
|
|
|
0.5
|
|
|
|
|
|
)
|
2023-11-07 11:17:13 +07:00
|
|
|
|
|
|
|
|
|
|
//ไฟล์รูป
|
2023-11-14 17:47:43 +07:00
|
|
|
|
camera.value?.stop()
|
|
|
|
|
|
const url = URL.createObjectURL(imageBlob)
|
|
|
|
|
|
img.value = url
|
2023-11-07 11:17:13 +07:00
|
|
|
|
}
|
2023-11-14 17:47:43 +07:00
|
|
|
|
|
2023-11-07 11:17:13 +07:00
|
|
|
|
function refreshPhoto() {
|
2023-11-14 17:47:43 +07:00
|
|
|
|
img.value = undefined
|
|
|
|
|
|
camera.value?.start()
|
2023-11-07 11:17:13 +07:00
|
|
|
|
}
|
2023-11-14 17:47:43 +07:00
|
|
|
|
|
2023-11-07 11:17:13 +07:00
|
|
|
|
// validate
|
2023-11-14 17:47:43 +07:00
|
|
|
|
const useLocationRef = ref<object | null>(null)
|
|
|
|
|
|
const modelRef = ref<object | null>(null)
|
2023-11-07 11:17:13 +07:00
|
|
|
|
const objectRef: FormRef = {
|
|
|
|
|
|
model: modelRef,
|
|
|
|
|
|
useLocation: useLocationRef,
|
2023-11-14 17:47:43 +07:00
|
|
|
|
}
|
2023-11-07 11:17:13 +07:00
|
|
|
|
function validateForm() {
|
2023-11-14 17:47:43 +07:00
|
|
|
|
const hasError = []
|
2023-11-07 11:17:13 +07:00
|
|
|
|
for (const key in objectRef) {
|
|
|
|
|
|
if (Object.prototype.hasOwnProperty.call(objectRef, key)) {
|
2023-11-14 17:47:43 +07:00
|
|
|
|
const property = objectRef[key]
|
|
|
|
|
|
if (property.value && typeof property.value.validate === 'function') {
|
|
|
|
|
|
const isValid = property.value.validate()
|
|
|
|
|
|
hasError.push(isValid)
|
2023-11-07 11:17:13 +07:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
if (hasError.every((result) => result === true)) {
|
2023-11-14 17:47:43 +07:00
|
|
|
|
confirm()
|
2023-11-07 11:17:13 +07:00
|
|
|
|
} else {
|
2023-11-14 17:47:43 +07:00
|
|
|
|
console.log('ไม่ผ่าน ')
|
2023-11-07 11:17:13 +07:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
// ยืนยันการลงเวลา
|
2023-11-14 17:47:43 +07:00
|
|
|
|
const dialogTime = ref<boolean>(false)
|
2023-11-07 11:17:13 +07:00
|
|
|
|
const confirm = () => {
|
2023-11-14 17:47:43 +07:00
|
|
|
|
// ยิงไปที่ api แล้วแสดง popup
|
|
|
|
|
|
dialogTime.value = true
|
|
|
|
|
|
}
|
2023-11-07 11:17:13 +07:00
|
|
|
|
|
|
|
|
|
|
// class
|
|
|
|
|
|
const getClass = (val: boolean) => {
|
|
|
|
|
|
return {
|
2023-11-14 17:47:43 +07:00
|
|
|
|
'bg-primary text-white col-12 row items-center q-px-md q-py-sm': val,
|
|
|
|
|
|
'bg-red-9 text-white col-12 row items-center q-px-md q-py-sm': !val,
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2023-11-07 11:17:13 +07:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
|
<div class="col-12 row justify-center">
|
|
|
|
|
|
<div class="col-xs-12 col-sm-12 col-md-12">
|
|
|
|
|
|
<q-card flat class="row col-12 cardNone">
|
|
|
|
|
|
<div :class="getClass(stetusCheckin)">
|
|
|
|
|
|
<div class="col-2">
|
|
|
|
|
|
<!-- <q-btn
|
|
|
|
|
|
icon="mdi-arrow-left"
|
|
|
|
|
|
unelevated
|
|
|
|
|
|
round
|
|
|
|
|
|
dense
|
|
|
|
|
|
flat
|
|
|
|
|
|
color="white"
|
|
|
|
|
|
@click="router.go(-1)"
|
|
|
|
|
|
/> -->
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<span class="text-body1 text-weight-bold col-8 text-center">
|
|
|
|
|
|
<span v-if="stetusCheckin">ลงเวลาเข้างาน</span>
|
|
|
|
|
|
<span v-else>ลงเวลาออกงาน</span>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
<div class="col-2 text-right">
|
|
|
|
|
|
<q-btn
|
|
|
|
|
|
icon="history"
|
|
|
|
|
|
unelevated
|
|
|
|
|
|
rounded
|
|
|
|
|
|
dense
|
|
|
|
|
|
flat
|
|
|
|
|
|
color="white"
|
|
|
|
|
|
:label="$q.screen.gt.xs ? 'ประวัติการลงเวลา' : ''"
|
|
|
|
|
|
:class="$q.screen.gt.xs ? 'q-px-md' : ''"
|
|
|
|
|
|
@click="router.push('/history')"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-12 q-pa-md text-grey-9">
|
|
|
|
|
|
<div class="col-12 row justify-center">
|
|
|
|
|
|
<div class="col-12 row q-py-sm justify-center">
|
|
|
|
|
|
<div
|
|
|
|
|
|
class="col-xs-12 col-sm-10 text-h6 text-center text-weight-bold"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ date2Thai(Thai) }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row col-12 justify-center q-py-sm">
|
|
|
|
|
|
<div class="colunm">
|
|
|
|
|
|
<div class="text-h3 text-weight-bold">
|
|
|
|
|
|
{{ formattedH }}<span class="q-ma-md">:</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="colunm">
|
|
|
|
|
|
<div class="text-h3 text-weight-bold">
|
|
|
|
|
|
{{ formattedM }}<span class="q-ma-md">:</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="colunm">
|
|
|
|
|
|
<div class="text-h3 text-weight-bold">{{ formattedS }}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-xs-12 col-md-11 row q-col-gutter-md">
|
|
|
|
|
|
<div class="col-12 col-sm-8">
|
|
|
|
|
|
<MapCheck />
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-12 col-sm-4">
|
2023-11-14 17:47:43 +07:00
|
|
|
|
<q-card flat bordered class="card-container">
|
|
|
|
|
|
<div
|
|
|
|
|
|
v-if="!cameraIsOn && img == null"
|
|
|
|
|
|
class="preview-placeholder"
|
|
|
|
|
|
@click="openCamera()"
|
|
|
|
|
|
>
|
2023-11-07 11:17:13 +07:00
|
|
|
|
<div class="text-center">
|
|
|
|
|
|
<q-icon
|
|
|
|
|
|
name="photo_camera"
|
|
|
|
|
|
color="blue-grey-3"
|
|
|
|
|
|
size="100px"
|
|
|
|
|
|
class="center-icon"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2023-11-14 17:47:43 +07:00
|
|
|
|
<div>
|
|
|
|
|
|
<!-- แสดงกล้องตอนกดถ่ายภาพ -->
|
|
|
|
|
|
<Camera
|
|
|
|
|
|
:resolution="{ width: photoWidth, height: photoHeight }"
|
|
|
|
|
|
ref="camera"
|
|
|
|
|
|
:autoplay="false"
|
|
|
|
|
|
:style="!img ? 'display: block' : 'display: none'"
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- แสดงรูปเมื่อกด capture -->
|
|
|
|
|
|
<div v-if="img" class="image-container">
|
2023-11-07 11:17:13 +07:00
|
|
|
|
<q-img :src="img" class="image-element"></q-img>
|
|
|
|
|
|
</div>
|
2023-11-14 17:47:43 +07:00
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
|
v-if="cameraIsOn"
|
|
|
|
|
|
class="absolute-bottom-right q-ma-md"
|
|
|
|
|
|
>
|
2023-11-07 11:17:13 +07:00
|
|
|
|
<q-btn
|
2023-11-14 17:47:43 +07:00
|
|
|
|
v-if="img == null"
|
2023-11-07 11:17:13 +07:00
|
|
|
|
round
|
|
|
|
|
|
push
|
|
|
|
|
|
icon="photo_camera"
|
|
|
|
|
|
size="md"
|
|
|
|
|
|
color="positive"
|
|
|
|
|
|
@click="capturePhoto"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<q-btn
|
|
|
|
|
|
v-else
|
|
|
|
|
|
round
|
|
|
|
|
|
push
|
|
|
|
|
|
icon="refresh"
|
|
|
|
|
|
size="md"
|
|
|
|
|
|
color="negative"
|
|
|
|
|
|
@click="refreshPhoto"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</q-card>
|
|
|
|
|
|
</div>
|
2023-11-14 17:47:43 +07:00
|
|
|
|
|
2023-11-07 11:17:13 +07:00
|
|
|
|
<div class="col-12 q-mb-md">
|
|
|
|
|
|
<q-card
|
|
|
|
|
|
bordered
|
|
|
|
|
|
flat
|
|
|
|
|
|
:class="
|
|
|
|
|
|
$q.screen.gt.xs
|
|
|
|
|
|
? 'q-px-md q-py-sm row items-center shadow-0'
|
|
|
|
|
|
: 'q-pa-md row items-center shadow-0'
|
|
|
|
|
|
"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div class="text-weight-bold">สถานที่ทำงาน</div>
|
|
|
|
|
|
<div
|
|
|
|
|
|
:class="
|
|
|
|
|
|
$q.screen.gt.xs
|
|
|
|
|
|
? 'row q-gutter-md q-pl-md col-sm-6 col-md-3'
|
|
|
|
|
|
: 'column col-12'
|
|
|
|
|
|
"
|
|
|
|
|
|
>
|
|
|
|
|
|
<q-radio
|
|
|
|
|
|
v-model="workplace"
|
|
|
|
|
|
checked-icon="task_alt"
|
|
|
|
|
|
unchecked-icon="panorama_fish_eye"
|
|
|
|
|
|
val="in-place"
|
|
|
|
|
|
label="ในสถานที่"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<q-radio
|
|
|
|
|
|
v-model="workplace"
|
|
|
|
|
|
checked-icon="task_alt"
|
|
|
|
|
|
unchecked-icon="panorama_fish_eye"
|
|
|
|
|
|
val="off-site"
|
|
|
|
|
|
label="นอกสถานที่"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div
|
|
|
|
|
|
class="col-xs-12 col-sm-6 col-md-4"
|
|
|
|
|
|
v-if="workplace == 'off-site'"
|
|
|
|
|
|
>
|
|
|
|
|
|
<q-select
|
|
|
|
|
|
ref="modelRef"
|
|
|
|
|
|
dense
|
|
|
|
|
|
class="q-ml-md"
|
|
|
|
|
|
outlined
|
|
|
|
|
|
v-model="model"
|
|
|
|
|
|
:options="options"
|
|
|
|
|
|
prefix="ระบุสถานที่ :"
|
|
|
|
|
|
:rules="[(val) => !!val || 'กรุณาระบุสถานที่']"
|
|
|
|
|
|
lazy-rules
|
|
|
|
|
|
@update:model-value="selectLocation()"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div
|
|
|
|
|
|
class="col-xs-12 col-sm-6 col-md-4"
|
2023-11-07 16:35:39 +07:00
|
|
|
|
v-if="model == 'อื่นๆ' && workplace === 'off-site'"
|
2023-11-07 11:17:13 +07:00
|
|
|
|
>
|
|
|
|
|
|
<q-input
|
|
|
|
|
|
ref="useLocationRef"
|
|
|
|
|
|
dense
|
|
|
|
|
|
class="q-ml-md"
|
|
|
|
|
|
outlined
|
|
|
|
|
|
v-model="useLocation"
|
|
|
|
|
|
label="ระบุสถานที่"
|
|
|
|
|
|
:rules="[(val) => !!val || 'กรุณาระบุสถานที่']"
|
|
|
|
|
|
lazy-rules
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</q-card>
|
2023-11-14 17:47:43 +07:00
|
|
|
|
|
2023-11-07 16:35:39 +07:00
|
|
|
|
<div class="col-12 text-right">
|
|
|
|
|
|
<q-separator />
|
|
|
|
|
|
<div class="col-12 q-pa-md">
|
|
|
|
|
|
<p
|
|
|
|
|
|
:class="
|
|
|
|
|
|
$q.screen.gt.xs
|
|
|
|
|
|
? 'text-red text-caption '
|
|
|
|
|
|
: 'text-red text-caption text-center'
|
|
|
|
|
|
"
|
|
|
|
|
|
>
|
|
|
|
|
|
*หมายเหตุ คลิกลงเวลาเข้างานแล้วระบบจะลงเวลาทันที
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<q-btn
|
|
|
|
|
|
:label="
|
|
|
|
|
|
stetusCheckin == true ? 'ลงเวลาเข้างาน' : 'ลงเวลาออกงาน'
|
|
|
|
|
|
"
|
|
|
|
|
|
:color="
|
|
|
|
|
|
stetusCheckin == true && img == null
|
|
|
|
|
|
? 'grey-6'
|
|
|
|
|
|
: 'primary'
|
|
|
|
|
|
"
|
|
|
|
|
|
push
|
|
|
|
|
|
size="14px"
|
|
|
|
|
|
:class="$q.screen.gt.xs ? 'q-px-md' : 'full-width'"
|
|
|
|
|
|
:disable="camera && img ? false : true"
|
|
|
|
|
|
@click="validateForm"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2023-11-07 11:17:13 +07:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</q-card>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<q-dialog v-model="dialogTime">
|
|
|
|
|
|
<q-card class="full-width cardNone">
|
|
|
|
|
|
<div :class="getClass(stetusCheckin)">
|
|
|
|
|
|
<div class="text-body1 text-center col-12 text-weight-bold">
|
|
|
|
|
|
<span v-if="stetusCheckin">ลงเวลาเข้างานของคุณ</span>
|
|
|
|
|
|
<span v-else>ลงเวลาออกงานของคุณ</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<q-card-section class="row col-12 justify-center">
|
|
|
|
|
|
<div class="bg-grey-2 rounded-borders q-pa-md col-11">
|
|
|
|
|
|
<div class="col-12 text-subtitle1 text-center text-weight-medium">
|
2023-11-07 16:35:39 +07:00
|
|
|
|
{{ date2Thai(Thai) }}
|
2023-11-07 11:17:13 +07:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="row col-12 justify-center q-pt-sm">
|
|
|
|
|
|
<div class="text-h3 text-weight-bold">
|
|
|
|
|
|
{{ formattedH }}<span class="q-ma-md">:</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="text-h3 text-weight-bold">{{ formattedM }}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-12 text-center row q-pt-md">
|
|
|
|
|
|
<div class="col-12 text-subtitle1 text-weight-medium text-secondary">
|
|
|
|
|
|
{{ location }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-12 text-grey-7">{{ coordinates }}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</q-card-section>
|
|
|
|
|
|
|
|
|
|
|
|
<q-card-actions align="center" class="q-mb-md row">
|
|
|
|
|
|
<q-btn
|
|
|
|
|
|
class="col-xs-11 col-sm-6"
|
|
|
|
|
|
push
|
|
|
|
|
|
label="ตกลง"
|
|
|
|
|
|
color="secondary"
|
|
|
|
|
|
v-close-popup
|
|
|
|
|
|
/>
|
|
|
|
|
|
</q-card-actions>
|
|
|
|
|
|
</q-card>
|
|
|
|
|
|
</q-dialog>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.q-card.cardImg:hover {
|
|
|
|
|
|
border: 1px solid #02a998 !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.center-icon {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 50%;
|
|
|
|
|
|
left: 50%;
|
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
|
}
|
|
|
|
|
|
.card-container {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
height: 350px; /* Adjust as needed */
|
|
|
|
|
|
background: #f6f5f5;
|
|
|
|
|
|
}
|
|
|
|
|
|
.image-container {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.image-element {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
|
border-radius: 5px; /* Adjust as needed */
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-11-14 17:47:43 +07:00
|
|
|
|
.preview-placeholder {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
2023-11-07 11:17:13 +07:00
|
|
|
|
}
|
|
|
|
|
|
</style>
|