blob: 055316eec3ef63b24a9e1a78f56ad94cfb07613c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
.title {
@apply text-h-sm md:text-h-lg font-semibold;
}
.voucher-section {
@apply w-full pb-6 md:pb-8; /* beri jarak aman dari footer */
}
.voucher-section :global(.swiper-slide) {
@apply flex items-start; /* bukan items-stretch */
}
.voucher-card {
@apply w-full md:w-11/12 rounded-xl border border-gray-200 shadow-md
p-4 flex items-start gap-x-4 bg-white;
}
.voucher-image {
/* tetap kecil dan proporsional */
@apply bg-gray-100 rounded-lg w-4/12 md:w-3/12 h-auto object-contain object-center;
}
.voucher-content {
@apply flex-1 flex flex-col justify-between;
}
.voucher-title {
@apply font-medium text-body-1 leading-6 line-clamp-2 mb-1;
}
.voucher-desc {
@apply text-gray-800 text-caption-1 line-clamp-1;
}
.voucher-bottom {
/* pisahkan bagian bawah agar tombol tidak nempel */
@apply flex flex-col md:flex-row justify-between md:items-center gap-2 md:gap-0 mt-3;
}
.voucher-code-desc {
@apply text-gray-500 text-caption-1;
}
.voucher-code {
@apply text-red-700 font-medium;
}
.voucher-copy {
/* tombol tetap kecil, tidak keluar dari card */
@apply bg-gray-200 hover:bg-danger-500 text-danger-500 hover:text-white transition-colors
rounded-lg flex items-center justify-center px-5 py-1.5 text-sm whitespace-nowrap
w-full md:w-auto;
}
|