commit -m "complete"
This commit is contained in:
@@ -47,358 +47,395 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<!-- Membership Card -->
|
<!-- Membership Card -->
|
||||||
<div id="kad-keahlian" class="kad-keahlian">
|
|
||||||
<div class="kad-logo text-center" style="margin: 1px 0;">
|
<div class="kad-keahlian">
|
||||||
<img src="/images/KOPKB_Final.png" alt="Logo" style="width: 80px; height: auto;">
|
<div class="kad-logo" style="margin: 1px 0; text-align: center;">
|
||||||
|
<img src="/images/logo_kad.png" alt="Logo"
|
||||||
|
style="width: 130px; height: auto; filter: drop-shadow(3px 3px 4px black);">
|
||||||
|
</div>
|
||||||
|
<div class="no-anggota" style="text-align: right; ">
|
||||||
|
<span class="detail-label" style="font-size: 10px;">NO ANGGOTA:</span>
|
||||||
|
<span class="detail-value" style="font-size: 11px;">{{ data.user.no_anggota }}</span>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<div class="kad-title">KAD KEANGGOTAAN KOPERASI</div>
|
<div class="kad-title">KAD KEANGGOTAAN <br> KOPERASI</div>
|
||||||
<div class="kad-content">
|
<div class="kad-content">
|
||||||
<img src="images/KOPKB_Final.png" class="watermark" alt="Watermark">
|
<img src="images/KOPKB_Final.png" class="watermark" alt="Watermark">
|
||||||
|
<br>
|
||||||
<div class="member-details">
|
<div class="member-details">
|
||||||
<div class="detail-item">
|
<div class="detail-item">
|
||||||
<span class="detail-label">NAMA:</span>
|
<span class="detail-label">NAMA:</span>
|
||||||
<span class="detail-value">{{ data.user.name }}</span>
|
<span class="detail-value">{{ data.user.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="detail-item">
|
<div class="detail-item">
|
||||||
<span class="detail-label">NO KAD PENGENALAN:</span>
|
<span class="detail-label">NO KAD PENGENALAN:</span>
|
||||||
<span class="detail-value">{{ data.user.no_kp }}</span>
|
<span class="detail-value">{{ data.user.no_kp }}</span>
|
||||||
</div>
|
</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">
|
<div class="detail-item">
|
||||||
<span class="detail-label">UNIT:</span>
|
<span class="detail-label">UNIT:</span>
|
||||||
<span class="detail-value">{{ data.user.unit }}</span>
|
<span class="detail-value">{{ data.user.unit }}</span>
|
||||||
</div>
|
</div>
|
||||||
</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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Nominee Modal -->
|
<!-- Nominee Info Section -->
|
||||||
<div v-if="showNomineeModal" class="modal-backdrop">
|
<div class="col-md-8">
|
||||||
<div class="modal-dialog">
|
<div class="p-2 mb-3 text-center"
|
||||||
<div class="modal-content">
|
style="background-color: #007bff; color: white; font-weight: bold; font-size: 1.6rem; border-radius: 4px;">
|
||||||
<div class="modal-header">
|
Maklumat Calon
|
||||||
<h5 class="modal-title">Maklumat Calon</h5>
|
</div>
|
||||||
<button type="button" class="close" @click="closeNomineeModal">
|
<hr />
|
||||||
<span aria-hidden="true">×</span>
|
<small>Tekan gambar untuk maklumat calon</small>
|
||||||
</button>
|
|
||||||
|
<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 class="modal-body">
|
</div>
|
||||||
<div class="photo-section">
|
</div>
|
||||||
<img :src="nomineeViewed.photo" class="thumbnail nominee-viewed-photo" />
|
|
||||||
|
<!-- 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>
|
||||||
<div class="detail-section">
|
<div class="modal-body">
|
||||||
<p><b>Nama:</b> {{ nomineeViewed.name }}</p>
|
<div class="photo-section">
|
||||||
<p><b>Unit:</b> {{ nomineeViewed.unit }}</p>
|
<img :src="nomineeViewed.photo" class="thumbnail nominee-viewed-photo" />
|
||||||
<p><b>Umur:</b> {{ nomineeViewed.umur }}</p>
|
</div>
|
||||||
<p><b>Jawatan Sekarang:</b> {{ nomineeViewed.jawatan_sekarang }}</p>
|
<div class="detail-section">
|
||||||
<p><b>Taraf Pendidikan:</b></p>
|
<p><b>Nama:</b> {{ nomineeViewed.name }}</p>
|
||||||
<ol>
|
<p><b>Unit:</b> {{ nomineeViewed.unit }}</p>
|
||||||
<li v-for="(item, index) in nomineeViewed.education" :key="index">{{ item }}</li>
|
<p><b>Umur:</b> {{ nomineeViewed.umur }}</p>
|
||||||
</ol>
|
<p><b>Jawatan Sekarang:</b> {{ nomineeViewed.jawatan_sekarang }}</p>
|
||||||
<p><b>Pengalaman Kerja:</b></p>
|
<p><b>Taraf Pendidikan:</b></p>
|
||||||
<ol>
|
<ol>
|
||||||
<li v-for="(item, index) in nomineeViewed.experience" :key="index">{{ item }}</li>
|
<li v-for="(item, index) in nomineeViewed.education" :key="index">{{ item }}</li>
|
||||||
</ol>
|
</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-success" @click="closeNomineeModal">Tutup</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
|
||||||
<button class="btn btn-secondary" @click="closeNomineeModal">Tutup</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
//
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
nomineeViewed: {},
|
nomineeViewed: {},
|
||||||
showNomineeModal: false,
|
showNomineeModal: false,
|
||||||
|
previewData: {},
|
||||||
|
showPreview: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
filters: {
|
filters: {
|
||||||
formatNumberWithCommas(value) {
|
formatNumberWithCommas(value) {
|
||||||
if (!value) return "";
|
if (!value) return "";
|
||||||
return value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
return value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
createBase64ImageUrl(base64) {
|
|
||||||
return "data:image/png;base64," + base64;
|
|
||||||
},
|
|
||||||
viewNomineeDetails(nominee) {
|
viewNomineeDetails(nominee) {
|
||||||
this.nomineeViewed = { ...nominee };
|
this.nomineeViewed = { ...nominee };
|
||||||
this.nomineeViewed.photo = this.createBase64ImageUrl(nominee.photo);
|
this.nomineeViewed.photo = this.createBase64ImageUrl(nominee.photo);
|
||||||
this.showNomineeModal = true;
|
this.showNomineeModal = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
closeNomineeModal() {
|
closeNomineeModal() {
|
||||||
this.showNomineeModal = false;
|
this.showNomineeModal = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
createBase64ImageUrl(photo) {
|
||||||
}
|
return `data:image/jpeg;base64,${photo}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
</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 */
|
|
||||||
@media (max-width: 576px) {
|
|
||||||
#view-nominee-modal .modal-dialog {
|
|
||||||
max-width: none;
|
|
||||||
padding-left: 10px;
|
|
||||||
padding-right: 20px;
|
|
||||||
margin-bottom: 50px;
|
|
||||||
margin-left: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#view-nominee-modal .photo-section {
|
@media (max-width: 576px) {
|
||||||
flex: 0 0 100%;
|
#view-nominee-modal .modal-dialog {
|
||||||
/* Set photo section to full width */
|
max-width: none;
|
||||||
max-width: none;
|
padding-left: 10px;
|
||||||
/* Remove max-width */
|
padding-right: 20px;
|
||||||
margin-right: 0;
|
margin-bottom: 50px;
|
||||||
/* Remove right margin */
|
margin-left: 0px;
|
||||||
margin-bottom: 20px;
|
}
|
||||||
/* Add space between photo and details */
|
|
||||||
}
|
|
||||||
|
|
||||||
#view-nominee-modal .detail-section {
|
|
||||||
flex: 0 0 100%;
|
|
||||||
/* Set detail section to full width */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#table-nominee tbody tr {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes pulseBackground {
|
#view-nominee-modal .photo-section {
|
||||||
0% {
|
flex: 0 0 100%;
|
||||||
background-color: #FFFFBF;
|
/* Set photo section to full width */
|
||||||
}
|
max-width: none;
|
||||||
|
/* Remove max-width */
|
||||||
|
margin-right: 0;
|
||||||
|
/* Remove right margin */
|
||||||
|
margin-bottom: 20px;
|
||||||
|
/* Add space between photo and details */
|
||||||
|
}
|
||||||
|
|
||||||
/* Start color */
|
#view-nominee-modal .detail-section {
|
||||||
50% {
|
flex: 0 0 100%;
|
||||||
background-color: #ffffff;
|
/* Set detail section to full width */
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Middle color (white) */
|
#table-nominee tbody tr {
|
||||||
100% {
|
cursor: pointer;
|
||||||
background-color: #FFFFBF;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* End color (same as start) */
|
@keyframes pulseBackground {
|
||||||
}
|
0% {
|
||||||
|
background-color: #FFFFBF;
|
||||||
|
}
|
||||||
|
|
||||||
#table-nominee tbody tr:hover {
|
/* Start color */
|
||||||
animation: pulseBackground 3s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
|
50% {
|
||||||
/* Animation duration, timing function, and repetition */
|
background-color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-label {
|
/* Middle color (white) */
|
||||||
display: inline-block;
|
100% {
|
||||||
width: 100px;
|
background-color: #FFFFBF;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-separator {
|
}
|
||||||
display: inline-block;
|
|
||||||
width: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.info-value {
|
#table-nominee tbody tr:hover {
|
||||||
display: inline-block;
|
animation: pulseBackground 3s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
|
||||||
}
|
|
||||||
|
|
||||||
.small-text {
|
}
|
||||||
font-size: 1.0rem;
|
|
||||||
/* or try 0.85rem if you want even smaller */
|
|
||||||
}
|
|
||||||
|
|
||||||
.watermark {
|
.info-label {
|
||||||
position: absolute;
|
display: inline-block;
|
||||||
top: 50%;
|
width: 100px;
|
||||||
left: 50%;
|
}
|
||||||
width: 60mm;
|
|
||||||
/* adjust size */
|
|
||||||
opacity: 0.08;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
z-index: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ===== CUSTOM CARD SIZE ===== */
|
.info-separator {
|
||||||
.kad-keahlian {
|
display: inline-block;
|
||||||
width: 93mm;
|
width: 5px;
|
||||||
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 ===== */
|
.info-value {
|
||||||
.kad-keahlian::before {
|
display: inline-block;
|
||||||
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 */
|
.small-text {
|
||||||
.kad-title {
|
font-size: 1.0rem;
|
||||||
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 {
|
.watermark {
|
||||||
font-size: 11px;
|
position: absolute;
|
||||||
font-weight: bold;
|
top: 50%;
|
||||||
}
|
left: 50%;
|
||||||
|
width: 60mm;
|
||||||
|
/* adjust size */
|
||||||
|
opacity: 0.09;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
z-index: 5;
|
||||||
|
}
|
||||||
|
|
||||||
.kad-details div {
|
|
||||||
margin-bottom: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Hide print button during printing */
|
.kad-keahlian {
|
||||||
.member-details {
|
width: 93mm;
|
||||||
font-family: Arial, sans-serif;
|
/* padding: 0; */
|
||||||
font-weight: bold;
|
/* adjust size */
|
||||||
font-size: 13px;
|
height: 60mm;
|
||||||
line-height: 1.4;
|
/* adjust size */
|
||||||
display: flex;
|
border-radius: 12px;
|
||||||
flex-direction: column;
|
border: 3px solid #0d0d0e;
|
||||||
/* vertical stacking */
|
box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
|
||||||
gap: 2mm;
|
background: #F2F3F4;
|
||||||
}
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
/* standard card width */
|
||||||
|
padding: 8mm;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 13px;
|
||||||
|
color: whitesmoke;
|
||||||
|
background: linear-gradient(90deg, rgba(23, 76, 97, 1) 0%, rgba(37, 48, 105, 1) 50%, rgba(36, 35, 34, 1) 100%);
|
||||||
|
}
|
||||||
|
|
||||||
.detail-label {
|
|
||||||
display: inline-block;
|
.kad-keahlian::before {
|
||||||
}
|
content: "";
|
||||||
|
position: relative;
|
||||||
|
background-size: 100%;
|
||||||
|
/* adjust watermark size */
|
||||||
|
opacity: 0.08;
|
||||||
|
/* faint watermark */
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.kad-title {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: white;
|
||||||
|
text-shadow: 3px 3px 4px rgb(244, 241, 241);
|
||||||
|
position: relative;
|
||||||
|
z-index: 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.member-details {
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 1.4;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 2mm;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.kad-content {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
padding: 0;
|
||||||
|
gap: 10px;
|
||||||
|
margin-top: 5px;
|
||||||
|
position: relative;
|
||||||
|
z-index: 5;
|
||||||
|
border-radius: 18px;
|
||||||
|
/* optional: rounded corners */
|
||||||
|
}
|
||||||
|
|
||||||
|
.kad-details {
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kad-details .row {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
/* ⭐ pushes label left, value right */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.detail-item {
|
||||||
|
position: relative;
|
||||||
|
top: 5px;
|
||||||
|
right: 5px;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.detail-label {
|
||||||
|
|
||||||
|
text-align: left;
|
||||||
|
/* display: inline-block; */
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-value {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-anggota {
|
||||||
|
position: absolute;
|
||||||
|
top: 5px;
|
||||||
|
right: 8px;
|
||||||
|
text-align: right;
|
||||||
|
z-index: 10;
|
||||||
|
/* keeps text above watermark */
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user