commit "kad anggota"
This commit is contained in:
@@ -1,364 +1,404 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div class="row col-md-10 col-md-offset-1">
|
||||||
<div class="row col-md-10 col-md-offset-1">
|
<!-- Banner -->
|
||||||
<div class="text-center mb-4">
|
<div class="text-center mb-4">
|
||||||
<img src="/images/banner-mat28-new.jpg" alt="Banner" class="img-fluid"
|
<img src="/images/banner-mat28-new.jpg" alt="Banner" class="img-fluid"
|
||||||
style="width: 100%; max-height: 400px; object-fit: cover;">
|
style="width: 100%; max-height: 400px; object-fit: cover;">
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style="margin-bottom: 20px;"></div> <!-- You can adjust the px value as needed -->
|
|
||||||
|
|
||||||
<div class="col-md-4">
|
|
||||||
<div class="p-2 mb-3 text-center"
|
|
||||||
style="background-color: #007bff; color: white; font-weight: bold; font-size: 1.6rem; border-radius: 4px;">
|
|
||||||
Maklumat Anggota
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<ul class="list-group" style="font-weight: bold;">
|
|
||||||
<li class="list-group-item">
|
|
||||||
<span class="info-label">NAMA</span>
|
|
||||||
<span class="info-separator">:</span>
|
|
||||||
<span class="info-value">{{ data.user.name }}</span>
|
|
||||||
</li>
|
|
||||||
<li class="list-group-item">
|
|
||||||
<span class="info-label">NO KAD PENGENALAN</span>
|
|
||||||
<span class="info-separator">:</span>
|
|
||||||
<span class="info-value">{{ data.user.no_kp }}</span>
|
|
||||||
</li>
|
|
||||||
<li class="list-group-item">
|
|
||||||
<span class="info-label">NO ANGGOTA</span>
|
|
||||||
<span class="info-separator">:</span>
|
|
||||||
<span class="info-value">{{ data.user.no_anggota }}</span>
|
|
||||||
</li>
|
|
||||||
<li class="list-group-item">
|
|
||||||
<span class="info-label">UNIT</span>
|
|
||||||
<span class="info-separator">:</span>
|
|
||||||
<span class="info-value">{{ data.user.unit }}</span>
|
|
||||||
</li>
|
|
||||||
<li class="list-group-item">
|
|
||||||
<span class="info-label">SAHAM</span>
|
|
||||||
<span class="info-separator">:</span>
|
|
||||||
<span class="info-value">RM {{ data.user.saham | formatNumberWithCommas() }}</span>
|
|
||||||
</li>
|
|
||||||
<li class="list-group-item">
|
|
||||||
<span class="info-label">YURAN</span>
|
|
||||||
<span class="info-separator">:</span>
|
|
||||||
<span class="info-value">RM {{ data.user.yuran | formatNumberWithCommas() }}</span>
|
|
||||||
</li>
|
|
||||||
<li class="list-group-item" v-if="data.election.status == 1">
|
|
||||||
<span class="info-label">STATUS UNDIAN</span>
|
|
||||||
<span class="info-separator">:</span>
|
|
||||||
<span class="info-value">
|
|
||||||
<span v-if="data.election.status == 1" class="text-danger">Belum bermula</span>
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
|
|
||||||
<li class="list-group-item" v-if="data.election.status == 2 && !hasVoted()">
|
|
||||||
<center>
|
|
||||||
<router-link v-if="data.user.saham >= 500 && data.user.kehadiran != 0" :to="{ name: 'Vote' }"
|
|
||||||
class="btn btn-warning">
|
|
||||||
🗳️Undi Sekarang
|
|
||||||
</router-link>
|
|
||||||
<router-link v-if="data.user.saham >= 500" :to="{ name: 'Attendance' }" class="btn btn-success">
|
|
||||||
📝 Daftar Kehadiran
|
|
||||||
</router-link>
|
|
||||||
<div v-else class="alert alert-danger" role="alert">
|
|
||||||
Saham minima tidak mencukupi untuk pengundian. Sila ke tab <strong> Daftar MAT</strong> untuk pengesahan kehadiran.
|
|
||||||
</div>
|
|
||||||
</center>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<div v-if="hasVoted()">
|
|
||||||
<hr />
|
|
||||||
<div class="p-2 mb-3 text-center"
|
|
||||||
style="background-color: #007bff; color: white; font-weight: bold; font-size: 1.6rem; border-radius: 4px;">
|
|
||||||
Maklumat Undian Anda
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<ul class="list-group">
|
|
||||||
<li class="list-group-item" v-for="result in data.result">
|
|
||||||
<b>{{ getPosition(result.position_id) }} : </b>{{ getNominee(result.nominee_id) }}
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-md-8">
|
|
||||||
<div class="p-2 mb-3 text-center"
|
|
||||||
style="background-color: #007bff; color: white; font-weight: bold; font-size: 1.6rem; border-radius: 4px;">
|
|
||||||
Maklumat Calon
|
|
||||||
</div>
|
|
||||||
<hr />
|
|
||||||
<small>Tekan gambar untuk maklumat calon</small>
|
|
||||||
<div class="panel panel-primary" v-for="position in data.positions">
|
|
||||||
<div class="panel-heading">{{ position.name }}</div>
|
|
||||||
<div class="panel-body table-responsive">
|
|
||||||
<table id="table-nominee" class="table table-hover">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th></th>
|
|
||||||
<th>Bil.</th>
|
|
||||||
<th>Nama</th>
|
|
||||||
<th>No. Anggota</th>
|
|
||||||
<th>Unit</th>
|
|
||||||
<!-- <th>Taraf Pendidikan</th>
|
|
||||||
<th>Pengalaman Kerja </th> -->
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr v-for="(nominee, i) in data.nominees" v-if="nominee.position_id == position.id"
|
|
||||||
v-on:click="viewNomineeDetails(nominee)">
|
|
||||||
<td><img @click="view(nominee, i)" :src="createBase64ImageUrl(nominee.photo)"
|
|
||||||
class="thumbnail" style="height: 60px;width: 60px;" />
|
|
||||||
</td>
|
|
||||||
<td>{{ nominee.no_calon }}</td>
|
|
||||||
<td>{{ nominee.name }}</td>
|
|
||||||
<td>{{ nominee.no_anggota }}</td>
|
|
||||||
<td>{{ nominee.unit }}</td>
|
|
||||||
<!-- <td>{{ nominee.education }}</td>
|
|
||||||
<td>{{ nominee.experience }}</td> -->
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="view-nominee-modal" class="modal" tabindex="-1">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h5 class="modal-title" style="display: inline;">Maklumat Calon</h5>
|
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<div class="content">
|
|
||||||
<div class="photo-section">
|
|
||||||
<img :src="nomineeViewed.photo" class="thumbnail nominee-viewed-photo" />
|
|
||||||
</div>
|
|
||||||
<div class="detail-section">
|
|
||||||
<span><b> Nama : </b>{{ nomineeViewed.name }}</span>
|
|
||||||
<span><b> Unit : </b>{{ nomineeViewed.unit }}</span>
|
|
||||||
<span><b> Umur : </b>{{ nomineeViewed.umur }}</span>
|
|
||||||
<span><b> Jawatan Sekarang : </b>{{ nomineeViewed.jawatan_sekarang }}</span>
|
|
||||||
<span> <b>Taraf Pendidikan :</b> </span>
|
|
||||||
<ol>
|
|
||||||
<li v-for="(item, index) in nomineeViewed.education" :key="index">{{ item }}</li>
|
|
||||||
</ol>
|
|
||||||
|
|
||||||
<span><b> Pengalaman Kerja : </b></span>
|
|
||||||
<ol>
|
|
||||||
<li v-for="(item, index) in nomineeViewed.experience" :key="index">{{ item }}</li>
|
|
||||||
</ol>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Tutup</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Member Info -->
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="p-2 mb-3 text-center"
|
||||||
|
style="background-color: #007bff; color: white; font-weight: bold; font-size: 1.6rem; border-radius: 4px;">
|
||||||
|
Maklumat Anggota
|
||||||
|
</div>
|
||||||
|
<hr />
|
||||||
|
<ul class="list-group" style="font-weight: bold;">
|
||||||
|
<li class="list-group-item">
|
||||||
|
<span class="info-label">NAMA</span>
|
||||||
|
<span class="info-separator">:</span>
|
||||||
|
<span class="info-value">{{ data.user.name }}</span>
|
||||||
|
</li>
|
||||||
|
<li class="list-group-item">
|
||||||
|
<span class="info-label">NO KAD PENGENALAN</span>
|
||||||
|
<span class="info-separator">:</span>
|
||||||
|
<span class="info-value">{{ data.user.no_kp }}</span>
|
||||||
|
</li>
|
||||||
|
<li class="list-group-item">
|
||||||
|
<span class="info-label">NO ANGGOTA</span>
|
||||||
|
<span class="info-separator">:</span>
|
||||||
|
<span class="info-value">{{ data.user.no_anggota }}</span>
|
||||||
|
</li>
|
||||||
|
<li class="list-group-item">
|
||||||
|
<span class="info-label">UNIT</span>
|
||||||
|
<span class="info-separator">:</span>
|
||||||
|
<span class="info-value">{{ data.user.unit }}</span>
|
||||||
|
</li>
|
||||||
|
<li class="list-group-item">
|
||||||
|
<span class="info-label">SAHAM</span>
|
||||||
|
<span class="info-separator">:</span>
|
||||||
|
<span class="info-value">RM {{ data.user.saham | formatNumberWithCommas }}</span>
|
||||||
|
</li>
|
||||||
|
<li class="list-group-item">
|
||||||
|
<span class="info-label">YURAN</span>
|
||||||
|
<span class="info-separator">:</span>
|
||||||
|
<span class="info-value">RM {{ data.user.yuran | formatNumberWithCommas }}</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<!-- Membership Card -->
|
||||||
|
<div id="kad-keahlian" class="kad-keahlian">
|
||||||
|
<div class="kad-logo text-center" style="margin: 1px 0;">
|
||||||
|
<img src="/images/KOPKB_Final.png" alt="Logo" style="width: 80px; height: auto;">
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
<div class="kad-title">KAD KEANGGOTAAN KOPERASI</div>
|
||||||
|
<div class="kad-content">
|
||||||
|
<img src="images/KOPKB_Final.png" class="watermark" alt="Watermark">
|
||||||
|
<div class="member-details">
|
||||||
|
<div class="detail-item">
|
||||||
|
<span class="detail-label">NAMA:</span>
|
||||||
|
<span class="detail-value">{{ data.user.name }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="detail-item">
|
||||||
|
<span class="detail-label">NO KAD PENGENALAN:</span>
|
||||||
|
<span class="detail-value">{{ data.user.no_kp }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="detail-item">
|
||||||
|
<span class="detail-label">NO ANGGOTA:</span>
|
||||||
|
<span class="detail-value">{{ data.user.no_anggota }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="detail-item">
|
||||||
|
<span class="detail-label">UNIT:</span>
|
||||||
|
<span class="detail-value">{{ data.user.unit }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- <div class="text-center mt-2">
|
||||||
|
<button class="btn btn-success" onclick="downloadKadKeahlian()" >Muat Turun</button>
|
||||||
|
</div> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Nominee Info Section -->
|
||||||
|
<div class="col-md-8">
|
||||||
|
<div class="p-2 mb-3 text-center"
|
||||||
|
style="background-color: #007bff; color: white; font-weight: bold; font-size: 1.6rem; border-radius: 4px;">
|
||||||
|
Maklumat Calon
|
||||||
|
</div>
|
||||||
|
<hr />
|
||||||
|
<small>Tekan gambar untuk maklumat calon</small>
|
||||||
|
|
||||||
|
<div class="panel panel-primary" v-for="position in data.positions" :key="position.id">
|
||||||
|
<div class="panel-heading">{{ position.name }}</div>
|
||||||
|
<div class="panel-body table-responsive">
|
||||||
|
<table class="table table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th></th>
|
||||||
|
<th>Bil.</th>
|
||||||
|
<th>Nama</th>
|
||||||
|
<th>No. Anggota</th>
|
||||||
|
<th>Unit</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr v-for="(nominee, i) in data.nominees" :key="nominee.id" v-if="nominee.position_id == position.id"
|
||||||
|
@click="viewNomineeDetails(nominee)">
|
||||||
|
<td>
|
||||||
|
<img :src="createBase64ImageUrl(nominee.photo)" class="thumbnail" style="height: 60px; width: 60px;">
|
||||||
|
</td>
|
||||||
|
<td>{{ nominee.no_calon }}</td>
|
||||||
|
<td>{{ nominee.name }}</td>
|
||||||
|
<td>{{ nominee.no_anggota }}</td>
|
||||||
|
<td>{{ nominee.unit }}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Nominee Modal -->
|
||||||
|
<div v-if="showNomineeModal" class="modal-backdrop">
|
||||||
|
<div class="modal-dialog">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h5 class="modal-title">Maklumat Calon</h5>
|
||||||
|
<button type="button" class="close" @click="closeNomineeModal">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="photo-section">
|
||||||
|
<img :src="nomineeViewed.photo" class="thumbnail nominee-viewed-photo" />
|
||||||
|
</div>
|
||||||
|
<div class="detail-section">
|
||||||
|
<p><b>Nama:</b> {{ nomineeViewed.name }}</p>
|
||||||
|
<p><b>Unit:</b> {{ nomineeViewed.unit }}</p>
|
||||||
|
<p><b>Umur:</b> {{ nomineeViewed.umur }}</p>
|
||||||
|
<p><b>Jawatan Sekarang:</b> {{ nomineeViewed.jawatan_sekarang }}</p>
|
||||||
|
<p><b>Taraf Pendidikan:</b></p>
|
||||||
|
<ol>
|
||||||
|
<li v-for="(item, index) in nomineeViewed.education" :key="index">{{ item }}</li>
|
||||||
|
</ol>
|
||||||
|
<p><b>Pengalaman Kerja:</b></p>
|
||||||
|
<ol>
|
||||||
|
<li v-for="(item, index) in nomineeViewed.experience" :key="index">{{ item }}</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button class="btn btn-secondary" @click="closeNomineeModal">Tutup</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { R } from '@bachdgvn/vue-otp-input';
|
import html2pdf from "html2pdf.js";
|
||||||
|
|
||||||
Vue.filter('formatNumberWithCommas', function (value) {
|
|
||||||
if (!value) return '';
|
|
||||||
return value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
||||||
});
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
created: function () {
|
data() {
|
||||||
//console.log(this)
|
return {
|
||||||
|
nomineeViewed: {},
|
||||||
|
showNomineeModal: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
filters: {
|
||||||
|
formatNumberWithCommas(value) {
|
||||||
|
if (!value) return "";
|
||||||
|
return value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
||||||
|
},
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
createBase64ImageUrl(base64) {
|
||||||
|
return "data:image/png;base64," + base64;
|
||||||
|
},
|
||||||
|
viewNomineeDetails(nominee) {
|
||||||
|
this.nomineeViewed = { ...nominee };
|
||||||
|
this.nomineeViewed.photo = this.createBase64ImageUrl(nominee.photo);
|
||||||
|
this.showNomineeModal = true;
|
||||||
|
},
|
||||||
|
closeNomineeModal() {
|
||||||
|
this.showNomineeModal = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
data: function () {
|
},
|
||||||
return {
|
|
||||||
x: {},
|
|
||||||
selectedNomineeId: null,
|
|
||||||
nomineeViewed: {},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
filters: {
|
|
||||||
formatNumberWithCommas: function (value) {
|
|
||||||
if (!value) return '';
|
|
||||||
return value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
methods: {
|
|
||||||
hasVoted: function () {
|
|
||||||
return this.data.result.length > 0;
|
|
||||||
},
|
|
||||||
|
|
||||||
getPartylist: function (id) {
|
|
||||||
let partylists = this.data.partylists;
|
|
||||||
for (var i in partylists)
|
|
||||||
if (partylists[i]['id'] == id) return partylists[i]['name'];
|
|
||||||
return 'No Partylist';
|
|
||||||
},
|
|
||||||
|
|
||||||
getPosition: function (id) {
|
|
||||||
let positions = this.data.positions;
|
|
||||||
for (var i in positions)
|
|
||||||
if (positions[i].id == id) return positions[i].name;
|
|
||||||
return '';
|
|
||||||
},
|
|
||||||
|
|
||||||
getNominee: function (id) {
|
|
||||||
let nominees = this.data.nominees;
|
|
||||||
for (var i in nominees)
|
|
||||||
if (nominees[i]['id'] == id) return nominees[i].name;
|
|
||||||
return '';
|
|
||||||
},
|
|
||||||
|
|
||||||
view: function (nominee, index) {
|
|
||||||
this.x = nominee;
|
|
||||||
this.selectedNomineeId = index; // Assuming index is the ID
|
|
||||||
this.util.showModal('#nominee-information-modal');
|
|
||||||
},
|
|
||||||
|
|
||||||
createBase64ImageUrl: function (base64ImageData) {
|
|
||||||
return "data:image/png;base64," + base64ImageData;
|
|
||||||
},
|
|
||||||
|
|
||||||
viewNomineeDetails: function (nominee) {
|
|
||||||
this.nomineeViewed = { ...nominee };
|
|
||||||
this.nomineeViewed.photo = this.createBase64ImageUrl(nominee.photo);
|
|
||||||
$('#view-nominee-modal').modal();
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
computed: {
|
|
||||||
header: function () {
|
|
||||||
return this.x.name + ' for ' + this.getPosition(this.x.position_id);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
#view-nominee-modal .modal-dialog {
|
#view-nominee-modal .modal-dialog {
|
||||||
max-width: 850px;
|
max-width: 850px;
|
||||||
/* Set a maximum width */
|
/* Set a maximum width */
|
||||||
width: 100%;
|
width: 100%;
|
||||||
/* Ensure full width on smaller screens */
|
/* Ensure full width on smaller screens */
|
||||||
}
|
}
|
||||||
|
|
||||||
#view-nominee-modal .nominee-viewed-photo {
|
#view-nominee-modal .nominee-viewed-photo {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
/* Ensure the photo fills the container */
|
/* Ensure the photo fills the container */
|
||||||
height: auto;
|
height: auto;
|
||||||
/* Maintain aspect ratio */
|
/* Maintain aspect ratio */
|
||||||
}
|
}
|
||||||
|
|
||||||
#view-nominee-modal .content {
|
#view-nominee-modal .content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
/* Allow content to wrap on smaller screens */
|
/* Allow content to wrap on smaller screens */
|
||||||
}
|
}
|
||||||
|
|
||||||
#view-nominee-modal .photo-section {
|
#view-nominee-modal .photo-section {
|
||||||
flex: 0 0 40%;
|
flex: 0 0 40%;
|
||||||
/* Set a flexible width for the photo section */
|
/* Set a flexible width for the photo section */
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
/* Set a maximum width */
|
/* Set a maximum width */
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
/* Add space between photo and details */
|
/* Add space between photo and details */
|
||||||
}
|
}
|
||||||
|
|
||||||
#view-nominee-modal .detail-section {
|
#view-nominee-modal .detail-section {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
/* Take remaining space */
|
/* Take remaining space */
|
||||||
}
|
}
|
||||||
|
|
||||||
#view-nominee-modal span {
|
#view-nominee-modal span {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Mobile styles */
|
/* Mobile styles */
|
||||||
@media (max-width: 576px) {
|
@media (max-width: 576px) {
|
||||||
#view-nominee-modal .modal-dialog {
|
#view-nominee-modal .modal-dialog {
|
||||||
max-width: none;
|
max-width: none;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
margin-bottom: 50px;
|
margin-bottom: 50px;
|
||||||
margin-left: 0px;
|
margin-left: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#view-nominee-modal .photo-section {
|
#view-nominee-modal .photo-section {
|
||||||
flex: 0 0 100%;
|
flex: 0 0 100%;
|
||||||
/* Set photo section to full width */
|
/* Set photo section to full width */
|
||||||
max-width: none;
|
max-width: none;
|
||||||
/* Remove max-width */
|
/* Remove max-width */
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
/* Remove right margin */
|
/* Remove right margin */
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
/* Add space between photo and details */
|
/* Add space between photo and details */
|
||||||
}
|
}
|
||||||
|
|
||||||
#view-nominee-modal .detail-section {
|
#view-nominee-modal .detail-section {
|
||||||
flex: 0 0 100%;
|
flex: 0 0 100%;
|
||||||
/* Set detail section to full width */
|
/* Set detail section to full width */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#table-nominee tbody tr {
|
#table-nominee tbody tr {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes pulseBackground {
|
@keyframes pulseBackground {
|
||||||
0% {
|
0% {
|
||||||
background-color: #FFFFBF;
|
background-color: #FFFFBF;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Start color */
|
/* Start color */
|
||||||
50% {
|
50% {
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Middle color (white) */
|
/* Middle color (white) */
|
||||||
100% {
|
100% {
|
||||||
background-color: #FFFFBF;
|
background-color: #FFFFBF;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* End color (same as start) */
|
/* End color (same as start) */
|
||||||
}
|
}
|
||||||
|
|
||||||
#table-nominee tbody tr:hover {
|
#table-nominee tbody tr:hover {
|
||||||
animation: pulseBackground 3s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
|
animation: pulseBackground 3s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
|
||||||
/* Animation duration, timing function, and repetition */
|
/* Animation duration, timing function, and repetition */
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-label {
|
.info-label {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-separator {
|
.info-separator {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 5px;
|
width: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-value {
|
.info-value {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-text {
|
.small-text {
|
||||||
font-size: 1.0rem;
|
font-size: 1.0rem;
|
||||||
/* or try 0.85rem if you want even smaller */
|
/* or try 0.85rem if you want even smaller */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.watermark {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
width: 60mm;
|
||||||
|
/* adjust size */
|
||||||
|
opacity: 0.08;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ===== CUSTOM CARD SIZE ===== */
|
||||||
|
.kad-keahlian {
|
||||||
|
width: 93mm;
|
||||||
|
padding: 0;
|
||||||
|
/* adjust size */
|
||||||
|
height: 60mm;
|
||||||
|
/* adjust size */
|
||||||
|
border-radius: 12px;
|
||||||
|
border: 3px solid #3252f0;
|
||||||
|
background: #F2F3F4;
|
||||||
|
/* background: linear-gradient(135deg, #f2f2f2 50%, #413e3e 50%);// /* WHITE BACKGROUND */
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
position: relative;
|
||||||
|
/* standard card width */
|
||||||
|
padding: 8mm;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 14px;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ===== WATERMARK LOGO ONLY ===== */
|
||||||
|
.kad-keahlian::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
/* background: url('/images/KOPKB_Final.png') no-repeat center; */
|
||||||
|
background-size: 100%;
|
||||||
|
/* adjust watermark size */
|
||||||
|
opacity: 0.08;
|
||||||
|
/* faint watermark */
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Title */
|
||||||
|
.kad-title {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #004aad;
|
||||||
|
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
|
||||||
|
position: relative;
|
||||||
|
z-index: 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Content layout */
|
||||||
|
.kad-content {
|
||||||
|
display: flex;
|
||||||
|
padding: 0;
|
||||||
|
gap: 10px;
|
||||||
|
margin-top: 5px;
|
||||||
|
position: relative;
|
||||||
|
z-index: 5;
|
||||||
|
/* background-color: #5d8aa8; your desired background color */
|
||||||
|
border-radius: 18px;
|
||||||
|
/* optional: rounded corners */
|
||||||
|
}
|
||||||
|
|
||||||
|
.kad-details {
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kad-details div {
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hide print button during printing */
|
||||||
|
.member-details {
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 1.4;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
/* vertical stacking */
|
||||||
|
gap: 2mm;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-label {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user