update css kad-anggota

This commit is contained in:
hayatie
2025-12-09 11:43:21 +08:00
parent 6ae5b24d11
commit 32a4cc9221
@@ -1,8 +1,5 @@
<template>
<div class="row col-md-10 col-md-offset-1">
<!-- Banner -->
<div class="text-center mb-4">
@@ -62,7 +59,7 @@
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">
@@ -84,10 +81,10 @@
<span class="detail-label">UNIT:</span>
<span class="detail-value">{{ data.user.unit }}</span>
</div>
<br>
<div class="detail-item">
<svg id="barcode" class="detail-value">{{ data.user.no_kp }}</svg>
</div>
</div>
@@ -364,11 +361,20 @@ export default {
.kad-keahlian {
width: 85mm;
/* padding: 0; */
/* adjust size */
height: 60mm;
/* adjust size */
width: 80vw;
/* responsive width */
max-width: 320px;
/* 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);
@@ -376,21 +382,27 @@ export default {
position: relative;
overflow: hidden;
font-family: Arial, sans-serif;
/* standard card width */
padding: 8mm;
padding: 20px;
box-sizing: border-box;
font-weight: bold;
font-size: 13px;
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.jpeg');
/* path to your image */
background-size: cover;
/* cover whole div */
background-position: center;
}
@media (max-height: 700px) {
.kad-keahlian {
max-height: 210px;
padding: 12px;
font-size: 0.75rem;
}
}
.kad-logo {
position: absolute;
/* place inside kad-anggota */
@@ -419,11 +431,10 @@ export default {
.kad-keahlian::before {
content: "";
position: relative;
position: absolute;
/* ❗ fixed */
background-size: 100%;
/* adjust watermark size */
opacity: 0.08;
/* faint watermark */
top: 0;
left: 0;
width: 100%;
@@ -432,49 +443,46 @@ export default {
.kad-keahlian:hover {
transform: scale(1.03);
transition: 0.2s ease;
}
.kad-title {
/* .kad-title {
text-align: center;
font-size: 12px;
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: 12px;
line-height: 1.4;
font-size: 1.1rem;
line-height: 1.3;
display: flex;
flex-direction: column;
gap: 2mm;
margin-left: 35px;
gap: 6px;
margin-left: 40px;
}
.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: 10px;
font-size: 0.75rem;
font-weight: normal;
margin-bottom: 4px;
display: flex;
flex-direction: column;
gap: 4px;
@@ -484,7 +492,7 @@ export default {
.kad-details .row {
display: flex;
justify-content: space-between;
/* ⭐ pushes label left, value right */
width: 100%;
}
@@ -496,9 +504,9 @@ export default {
}
#barcode {
transform: scaleX(2.0);
/* 1.0 = normal, 2.0 = 2x longer */
transform: scaleX(1.5);
transform-origin: left;
max-width: 100%;
}
@@ -522,18 +530,19 @@ export default {
}
.contact-info {
text-align: right; /* aligns everything inside to right */
font-size: 9px; /* small text for card */
text-align: right;
/* aligns everything inside to right */
font-size: 9px;
/* small text for card */
line-height: 1.2;
color: rgb(12, 12, 12);
color: rgb(12, 12, 12);
}
.contact-info i {
margin-right: 3px; /* spacing between icon & text */
font-size: 8px; /* icon size */
margin-right: 3px;
/* spacing between icon & text */
font-size: 8px;
/* icon size */
font-weight: normal;
}
</style>