937 lines
21 KiB
Vue
937 lines
21 KiB
Vue
<template>
|
|
<div class="voter-home-page row col-md-10 col-md-offset-1">
|
|
<!-- Banner -->
|
|
<div class="col-xs-12">
|
|
<div class="hero-banner">
|
|
<img src="/images/banner-mat28-new.jpg" alt="Banner" class="hero-banner-image">
|
|
</div>
|
|
<div class="hero-banner-caption">
|
|
<div class="hero-banner-kicker">Portal Pengundian</div>
|
|
<h1 class="hero-banner-title">Maklumat Anggota dan Calon</h1>
|
|
<p class="hero-banner-subtitle">Semak butiran keahlian anda dan tekan gambar calon untuk melihat profil penuh.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Member Info -->
|
|
<div class="col-md-4 page-column">
|
|
<div class="page-section-heading">Maklumat Anggota</div>
|
|
<div class="member-info-card">
|
|
<ul class="list-group member-info-list">
|
|
<li class="list-group-item member-info-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 member-info-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 member-info-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 member-info-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 member-info-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 member-info-item">
|
|
<span class="info-label">YURAN</span>
|
|
<span class="info-separator">:</span>
|
|
<span class="info-value">RM {{ data.user.yuran | formatNumberWithCommas }}</span>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Membership Card -->
|
|
|
|
<div class="kad-keahlian">
|
|
<!-- Vertical MEMBER CARD on left -->
|
|
<div class="member-card-vertical">MEMBER CARD </div>
|
|
|
|
<!-- Top-right logo -->
|
|
<div class="kad-logo" style="text-align: right; margin: 0; padding: 0;">
|
|
<img src="/images/logo_kad.png" alt="Logo"
|
|
style="width: 124px; height: auto; filter: drop-shadow(3px 3px 4px black); margin-right: 0;">
|
|
</div>
|
|
|
|
<br><br>
|
|
<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 class="detail-item">
|
|
<svg id="barcode" class="detail-value">{{ data.user.no_kp }}</svg>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<!-- <div class="contact-info">
|
|
<p><i class="bi bi-envelope"></i>admin@koppkb.com </p> <br>
|
|
<p>09-7414331 <i class="bi bi-telephone"></i></p><br>
|
|
<p>09-7414334 <i class="bi bi-printer-fill"></i></p><br>
|
|
<p>www.koppkb.com <i class="bi bi-globe"></i></p>
|
|
</div> -->
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Nominee Info Section -->
|
|
<div class="col-md-8 page-column">
|
|
<div class="page-section-heading">Maklumat Calon</div>
|
|
<div class="nominee-page-intro">
|
|
Tekan gambar atau baris calon untuk melihat maklumat penuh.
|
|
</div>
|
|
|
|
<div class="panel panel-primary nominee-panel" v-for="position in data.positions" :key="position.id">
|
|
<div class="panel-heading nominee-panel-heading">
|
|
<span>{{ position.name }}</span>
|
|
<span class="nominee-panel-badge">Senarai Calon</span>
|
|
</div>
|
|
<div class="panel-body table-responsive nominee-panel-body">
|
|
<table class="table table-hover nominee-table" id="table-nominee">
|
|
<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"
|
|
class="nominee-row" @click="viewNomineeDetails(nominee)">
|
|
<td>
|
|
<img :src="createBase64ImageUrl(nominee.photo)" class="thumbnail nominee-thumb">
|
|
</td>
|
|
<td>{{ nominee.no_calon }}</td>
|
|
<td>{{ nominee.name }}</td>
|
|
<td>{{ nominee.no_anggota }}</td>
|
|
<td>{{ nominee.unit }}</td>
|
|
</tr>
|
|
<tr v-if="!data.nominees.some(nominee => nominee.position_id == position.id)">
|
|
<td colspan="5" class="nominee-empty-state">Tiada calon untuk jawatan ini.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Nominee Modal -->
|
|
<div v-if="showNomineeModal" class="modal-backdrop nominee-modal-backdrop" @click.self="closeNomineeModal">
|
|
<div class="modal-dialog" id="view-nominee-modal">
|
|
<div class="modal-content nominee-modal-content">
|
|
<div class="modal-header">
|
|
<div>
|
|
<h5 class="modal-title">Maklumat Calon</h5>
|
|
</div>
|
|
</div>
|
|
<div class="modal-body nominee-modal-body">
|
|
<div class="photo-section">
|
|
<div class="nominee-photo-card">
|
|
<img :src="nomineeViewed.photo" class="thumbnail nominee-viewed-photo" />
|
|
<div class="nominee-photo-meta">
|
|
<div class="nominee-name">{{ nomineeViewed.name }}</div>
|
|
<div class="nominee-subtitle">
|
|
Calon No. {{ nomineeViewed.no_calon || '-' }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="detail-section">
|
|
<div class="nominee-summary-grid">
|
|
<div class="summary-item">
|
|
<span class="summary-label">Nama</span>
|
|
<span class="summary-value">{{ nomineeViewed.name || '-' }}</span>
|
|
</div>
|
|
<div class="summary-item">
|
|
<span class="summary-label">Unit</span>
|
|
<span class="summary-value">{{ nomineeViewed.unit || '-' }}</span>
|
|
</div>
|
|
<div class="summary-item">
|
|
<span class="summary-label">Umur</span>
|
|
<span class="summary-value">{{ nomineeViewed.umur || '-' }}</span>
|
|
</div>
|
|
<div class="summary-item">
|
|
<span class="summary-label">Jawatan Sekarang</span>
|
|
<span class="summary-value">{{ nomineeViewed.jawatan_sekarang || '-' }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="nominee-section-card">
|
|
<div class="section-title">Taraf Pendidikan</div>
|
|
<ol v-if="nomineeViewed.education && nomineeViewed.education.length" class="detail-list">
|
|
<li v-for="(item, index) in nomineeViewed.education" :key="index">{{ item }}</li>
|
|
</ol>
|
|
<p v-else class="detail-empty">Tiada maklumat pendidikan.</p>
|
|
</div>
|
|
|
|
<div class="nominee-section-card">
|
|
<div class="section-title">Pengalaman Kerja</div>
|
|
<ol v-if="nomineeViewed.experience && nomineeViewed.experience.length" class="detail-list">
|
|
<li v-for="(item, index) in nomineeViewed.experience" :key="index">{{ item }}</li>
|
|
</ol>
|
|
<p v-else class="detail-empty">Tiada maklumat pengalaman kerja.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button class="btn btn-success" @click="closeNomineeModal">Tutup</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import JsBarcode from "jsbarcode";
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
// NOMINEE SECTION
|
|
nomineeViewed: {},
|
|
showNomineeModal: false,
|
|
|
|
// BARCODE SECTION
|
|
noKp: ""
|
|
};
|
|
},
|
|
|
|
mounted() {
|
|
if (this.data?.user?.no_kp) {
|
|
this.noKp = this.data.user.no_kp; // set noKp
|
|
this.generateBarcode();
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
// -------------------------------
|
|
// NOMINEE FUNCTIONS
|
|
// -------------------------------
|
|
viewNomineeDetails(nominee) {
|
|
this.nomineeViewed = { ...nominee };
|
|
this.nomineeViewed.photo = this.createBase64ImageUrl(nominee.photo);
|
|
this.showNomineeModal = true;
|
|
},
|
|
|
|
closeNomineeModal() {
|
|
this.showNomineeModal = false;
|
|
},
|
|
|
|
createBase64ImageUrl(photo) {
|
|
return `data:image/jpeg;base64,${photo}`;
|
|
},
|
|
|
|
// -------------------------------
|
|
// BARCODE FUNCTION
|
|
// -------------------------------
|
|
generateBarcode() {
|
|
if (!this.noKp) return;
|
|
|
|
JsBarcode("#barcode", this.noKp, {
|
|
format: "CODE128",
|
|
width: 1.3,
|
|
height: 30,
|
|
displayValue: false // hides text below the barcode
|
|
});
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
|
|
<style>
|
|
.voter-home-page {
|
|
margin-top: 24px;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.page-column {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.hero-banner {
|
|
position: relative;
|
|
margin-bottom: 28px;
|
|
border-radius: 24px;
|
|
overflow: hidden;
|
|
box-shadow: 0 18px 40px rgba(11, 39, 79, 0.18);
|
|
background: #f4f8fd;
|
|
}
|
|
|
|
.hero-banner-image {
|
|
width: 100%;
|
|
max-height: 360px;
|
|
object-fit: contain;
|
|
object-position: center;
|
|
display: block;
|
|
}
|
|
|
|
.hero-banner-caption {
|
|
margin-top: 14px;
|
|
margin-bottom: 6px;
|
|
padding: 18px 20px;
|
|
border-radius: 18px;
|
|
background: #fff;
|
|
border: 1px solid #e5ebf3;
|
|
box-shadow: 0 12px 26px rgba(35, 64, 97, 0.08);
|
|
}
|
|
|
|
.hero-banner-kicker {
|
|
margin-bottom: 8px;
|
|
color: #2f80ed;
|
|
font-size: 1.2rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.hero-banner-title {
|
|
margin: 0 0 8px;
|
|
color: #17324d;
|
|
font-size: 3rem;
|
|
font-weight: 700;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.hero-banner-subtitle {
|
|
max-width: 680px;
|
|
margin: 0;
|
|
color: #4f6479;
|
|
font-size: 1.5rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.page-section-heading {
|
|
margin-bottom: 14px;
|
|
padding: 14px 18px;
|
|
border-radius: 14px;
|
|
background: linear-gradient(135deg, #0d6efd, #2f80ed);
|
|
color: #fff;
|
|
font-size: 1.8rem;
|
|
font-weight: 700;
|
|
text-align: center;
|
|
box-shadow: 0 12px 28px rgba(13, 110, 253, 0.2);
|
|
}
|
|
|
|
.member-info-card {
|
|
margin-bottom: 18px;
|
|
padding: 6px;
|
|
border-radius: 18px;
|
|
background: #fff;
|
|
border: 1px solid #e5ebf3;
|
|
box-shadow: 0 12px 26px rgba(35, 64, 97, 0.08);
|
|
}
|
|
|
|
.member-info-list {
|
|
margin-bottom: 0;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.member-info-item {
|
|
border: 0;
|
|
border-bottom: 1px solid #edf2f7;
|
|
padding: 14px 16px;
|
|
}
|
|
|
|
.member-info-item:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.nominee-page-intro {
|
|
margin-bottom: 18px;
|
|
padding: 12px 16px;
|
|
border-radius: 12px;
|
|
background: #eef5ff;
|
|
border: 1px solid #dbe8ff;
|
|
color: #36506b;
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
.nominee-panel {
|
|
margin-bottom: 20px;
|
|
border: 0;
|
|
border-radius: 18px;
|
|
overflow: hidden;
|
|
box-shadow: 0 14px 28px rgba(35, 64, 97, 0.1);
|
|
}
|
|
|
|
.nominee-panel-heading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 20px;
|
|
background: linear-gradient(135deg, #1d4e89, #2563eb);
|
|
color: #fff;
|
|
font-size: 1.7rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.nominee-panel-badge {
|
|
padding: 6px 10px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.18);
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.nominee-panel-body {
|
|
padding: 0;
|
|
background: #fff;
|
|
}
|
|
|
|
.nominee-table {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.nominee-table thead {
|
|
background: #f4f8fd;
|
|
}
|
|
|
|
.nominee-table thead th {
|
|
border-bottom: 1px solid #dce7f5;
|
|
color: #48627e;
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.nominee-table tbody td {
|
|
vertical-align: middle;
|
|
border-top: 1px solid #edf2f7;
|
|
color: #22384f;
|
|
}
|
|
|
|
.nominee-row {
|
|
cursor: pointer;
|
|
transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
|
|
}
|
|
|
|
.nominee-row:hover {
|
|
background: #f8fbff;
|
|
box-shadow: inset 4px 0 0 #2f80ed;
|
|
}
|
|
|
|
.nominee-thumb {
|
|
width: 64px;
|
|
height: 64px;
|
|
margin-bottom: 0;
|
|
border: 2px solid #dbe8ff;
|
|
border-radius: 16px;
|
|
object-fit: cover;
|
|
box-shadow: 0 8px 18px rgba(47, 128, 237, 0.12);
|
|
}
|
|
|
|
.nominee-empty-state {
|
|
padding: 18px !important;
|
|
text-align: center;
|
|
color: #6f8193;
|
|
}
|
|
|
|
.nominee-modal-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1050;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px 16px;
|
|
background: rgba(7, 25, 48, 0.72);
|
|
backdrop-filter: blur(3px);
|
|
}
|
|
|
|
#view-nominee-modal.modal-dialog {
|
|
width: 100%;
|
|
max-width: 960px;
|
|
margin: 0;
|
|
}
|
|
|
|
.nominee-modal-content {
|
|
border: 0;
|
|
border-radius: 20px;
|
|
overflow: hidden;
|
|
box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
|
|
}
|
|
|
|
.nominee-modal-content .modal-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
padding: 20px 24px 16px;
|
|
border-bottom: 1px solid #e7edf5;
|
|
background: linear-gradient(135deg, #0d6efd, #2f80ed);
|
|
color: #fff;
|
|
}
|
|
|
|
.nominee-modal-content .modal-title {
|
|
margin: 4px 0 0;
|
|
font-size: 2.2rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.nominee-modal-content .modal-header .close {
|
|
margin-top: -4px;
|
|
color: #fff;
|
|
opacity: 0.9;
|
|
text-shadow: none;
|
|
}
|
|
|
|
.nominee-modal-kicker {
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.nominee-modal-body {
|
|
display: flex;
|
|
gap: 24px;
|
|
padding: 24px;
|
|
background: #f5f8fc;
|
|
}
|
|
|
|
.photo-section {
|
|
flex: 0 0 300px;
|
|
}
|
|
|
|
.nominee-photo-card {
|
|
padding: 18px;
|
|
border-radius: 18px;
|
|
background: #fff;
|
|
border: 1px solid #e5ebf3;
|
|
box-shadow: 0 10px 24px rgba(35, 64, 97, 0.08);
|
|
}
|
|
|
|
.nominee-viewed-photo {
|
|
width: 100%;
|
|
height: 320px;
|
|
object-fit: cover;
|
|
border: 0;
|
|
border-radius: 14px;
|
|
margin: 0 0 16px;
|
|
background: #eef3f8;
|
|
}
|
|
|
|
.nominee-photo-meta {
|
|
text-align: center;
|
|
}
|
|
|
|
.nominee-name {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: #17324d;
|
|
}
|
|
|
|
.nominee-subtitle {
|
|
margin-top: 4px;
|
|
font-size: 1.4rem;
|
|
color: #5f7388;
|
|
}
|
|
|
|
.detail-section {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.nominee-summary-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 14px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.summary-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 14px 16px;
|
|
border-radius: 14px;
|
|
background: #fff;
|
|
border: 1px solid #e5ebf3;
|
|
box-shadow: 0 8px 22px rgba(35, 64, 97, 0.06);
|
|
}
|
|
|
|
.summary-label {
|
|
font-size: 1.2rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: #6f8193;
|
|
}
|
|
|
|
.summary-value {
|
|
font-size: 1.6rem;
|
|
font-weight: 600;
|
|
line-height: 1.4;
|
|
color: #17324d;
|
|
}
|
|
|
|
.nominee-section-card {
|
|
margin-bottom: 16px;
|
|
padding: 18px 20px;
|
|
border-radius: 16px;
|
|
background: #fff;
|
|
border: 1px solid #e5ebf3;
|
|
box-shadow: 0 8px 22px rgba(35, 64, 97, 0.06);
|
|
}
|
|
|
|
.section-title {
|
|
margin-bottom: 12px;
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: #17324d;
|
|
}
|
|
|
|
.detail-list {
|
|
margin: 0;
|
|
padding-left: 20px;
|
|
color: #30475f;
|
|
}
|
|
|
|
.detail-list li {
|
|
margin-bottom: 8px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.detail-empty {
|
|
margin: 0;
|
|
color: #6f8193;
|
|
}
|
|
|
|
.nominee-modal-content .modal-footer {
|
|
padding: 16px 24px 22px;
|
|
border-top: 1px solid #e7edf5;
|
|
background: #fff;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.nominee-modal-backdrop {
|
|
align-items: flex-start;
|
|
overflow-y: auto;
|
|
padding: 16px 10px;
|
|
}
|
|
|
|
.nominee-modal-body {
|
|
flex-direction: column;
|
|
padding: 18px;
|
|
}
|
|
|
|
.photo-section {
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.nominee-viewed-photo {
|
|
height: 260px;
|
|
}
|
|
|
|
.nominee-summary-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.info-label {
|
|
display: inline-block;
|
|
width: 100px;
|
|
}
|
|
|
|
.info-separator {
|
|
display: inline-block;
|
|
width: 5px;
|
|
}
|
|
|
|
.info-value {
|
|
display: inline-block;
|
|
}
|
|
|
|
.small-text {
|
|
font-size: 1.0rem;
|
|
|
|
}
|
|
|
|
.watermark {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 60mm;
|
|
/* adjust size */
|
|
opacity: 0.09;
|
|
transform: translate(-50%, -50%);
|
|
z-index: 5;
|
|
}
|
|
|
|
|
|
.kad-keahlian {
|
|
width: 100%;
|
|
/* responsive width */
|
|
max-width: 400px;
|
|
/* limit for desktop */
|
|
aspect-ratio: 1.30 / 1;
|
|
/* maintain card ratio */
|
|
max-height: 200px;
|
|
/* anda boleh cuba 220px atau 200px */
|
|
overflow: hidden;
|
|
/* pastikan isi tidak meletup keluar */
|
|
|
|
padding: 18px;
|
|
/* kurangkan padding supaya content muat */
|
|
font-size: 0.8rem;
|
|
border-radius: 12px;
|
|
border: 3px solid #0d0d0e;
|
|
box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
|
|
background: #F2F3F4;
|
|
position: relative;
|
|
overflow: hidden;
|
|
font-family: Arial, sans-serif;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
font-weight: bold;
|
|
font-size: 0.8rem;
|
|
/* responsive text */
|
|
color: whitesmoke;
|
|
cursor: pointer;
|
|
transition: transform 0.25s ease, box-shadow 0.25s ease;
|
|
background-image: url('/images/kad_bg.png');
|
|
background-size: 60%;
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
|
|
@media (max-height: 600px) {
|
|
.kad-keahlian {
|
|
max-height: 200px;
|
|
padding: 12px;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
}
|
|
|
|
.kad-logo {
|
|
position: absolute;
|
|
/* place inside kad-anggota */
|
|
top: 10px;
|
|
/* distance from top */
|
|
right: 10px;
|
|
/* distance from right */
|
|
}
|
|
|
|
.member-card-vertical {
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 0;
|
|
writing-mode: vertical-rl;
|
|
/* makes text vertical from top to bottom */
|
|
text-orientation: mixed;
|
|
/* normal letters upright */
|
|
font-weight: bold;
|
|
font-size: 1.5rem;
|
|
letter-spacing: 2px;
|
|
/* space between letters */
|
|
padding: 5px;
|
|
color: white;
|
|
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
.kad-keahlian::before {
|
|
content: "";
|
|
position: absolute;
|
|
/* ❗ fixed */
|
|
background-size: 100%;
|
|
opacity: 0.08;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.kad-keahlian:hover {
|
|
transform: scale(1.03);
|
|
}
|
|
|
|
|
|
/* .kad-title {
|
|
text-align: center;
|
|
font-size: 1.1rem;
|
|
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: normal;
|
|
font-size: 1.1rem;
|
|
line-height: 1.3;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
margin-left: 40px;
|
|
}
|
|
|
|
|
|
|
|
|
|
.kad-content {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin-top: 5px;
|
|
position: relative;
|
|
z-index: 5;
|
|
/* optional: rounded corners */
|
|
}
|
|
|
|
.kad-details {
|
|
font-size: 0.75rem;
|
|
font-weight: normal;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
|
|
.kad-details .row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
.detail-item {
|
|
position: relative;
|
|
top: 5px;
|
|
right: 5px;
|
|
text-align: left;
|
|
}
|
|
|
|
#barcode {
|
|
transform: scaleX(1.5);
|
|
transform-origin: left;
|
|
max-width: 100%;
|
|
}
|
|
|
|
|
|
.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 */
|
|
}
|
|
|
|
.contact-info {
|
|
text-align: right;
|
|
/* aligns everything inside to right */
|
|
font-size: 9px;
|
|
/* small text for card */
|
|
line-height: 1.2;
|
|
color: rgb(12, 12, 12);
|
|
}
|
|
|
|
.contact-info i {
|
|
margin-right: 3px;
|
|
/* spacing between icon & text */
|
|
font-size: 8px;
|
|
/* icon size */
|
|
font-weight: normal;
|
|
}
|
|
|
|
@media (max-width: 991px) {
|
|
.voter-home-page {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.hero-banner-image {
|
|
max-height: 300px;
|
|
}
|
|
|
|
.hero-banner-title {
|
|
font-size: 2.4rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.hero-banner {
|
|
border-radius: 18px;
|
|
}
|
|
|
|
.hero-banner-image {
|
|
max-height: 240px;
|
|
}
|
|
|
|
.hero-banner-caption {
|
|
padding: 16px;
|
|
border-radius: 14px;
|
|
}
|
|
|
|
.hero-banner-title {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.hero-banner-subtitle {
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.page-section-heading {
|
|
font-size: 1.6rem;
|
|
}
|
|
|
|
.nominee-panel-heading {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
|
|
.nominee-table thead th:nth-child(4),
|
|
.nominee-table tbody td:nth-child(4),
|
|
.nominee-table thead th:nth-child(5),
|
|
.nominee-table tbody td:nth-child(5) {
|
|
display: none;
|
|
}
|
|
}
|
|
</style> |