style(ticket): improve design dengan warna teal yang lebih kontras

PDF Tiket:
- Header solid teal (#0f766e) dengan border bawah teal terang
- Text putih dengan shadow untuk kontras maksimal
- Font size lebih besar: h1 40px, subtitle 16px
- QR section dengan border solid 3px teal
- QR wrapper dengan border 3px teal dan shadow lebih kuat
- Ticket code dengan border 2px teal dan shadow
- Info label warna teal bold untuk kontras
- Price highlight dengan background teal muda
- Divider gradient teal horizontal
- Corner decorations lebih besar (40px)
- Border tiket 4px solid teal
- Footer note dengan border 3px kuning

Preview Tiket:
- Konsisten dengan PDF design
- Header solid teal dengan gradient overlay
- Border 4px solid teal
- Hover effect lebih dramatis
- QR wrapper dengan border 3px teal
- Info label warna teal bold
- Divider line gradient teal
- Corner decorations 30px dengan border 4px
This commit is contained in:
ardhikaxx 2026-02-25 10:17:35 +07:00
parent b66d0150cf
commit 1bfe4e88c0
2 changed files with 214 additions and 132 deletions

View File

@ -23,11 +23,11 @@
}
.ticket-box {
border: 3px solid #0f766e;
border-radius: 16px;
border: 4px solid #0f766e;
border-radius: 20px;
overflow: hidden;
background: white;
box-shadow: 0 10px 30px rgba(15, 118, 110, 0.2);
box-shadow: 0 15px 40px rgba(15, 118, 110, 0.3);
position: relative;
}
@ -37,7 +37,7 @@
left: 0;
width: 100%;
height: 100%;
opacity: 0.08;
opacity: 0.04;
z-index: 0;
}
@ -47,85 +47,112 @@
}
.header {
background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
background: #0f766e;
color: white;
text-align: center;
padding: 25px 20px;
padding: 30px 20px;
position: relative;
border-bottom: 5px solid #14b8a6;
}
.header::after {
.header::before {
content: '';
position: absolute;
bottom: -10px;
top: 0;
left: 0;
width: 100%;
height: 20px;
background: white;
border-radius: 50% 50% 0 0 / 100% 100% 0 0;
height: 100%;
background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, transparent 100%);
z-index: 0;
}
.header-content {
position: relative;
z-index: 1;
}
.header h1 {
font-size: 32px;
font-size: 40px;
font-weight: bold;
margin: 0 0 8px 0;
letter-spacing: 2px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
margin: 0 0 10px 0;
letter-spacing: 4px;
text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
color: #ffffff;
}
.header p {
font-size: 14px;
font-size: 16px;
margin: 0;
opacity: 0.95;
font-weight: 600;
color: #ccfbf1;
letter-spacing: 1px;
}
.ticket-body {
padding: 30px 25px 25px 25px;
padding: 35px 30px 30px 30px;
}
.qr-section {
text-align: center;
margin: 0 0 25px 0;
padding: 20px;
background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
border-radius: 12px;
border: 2px dashed #14b8a6;
margin: 0 0 30px 0;
padding: 25px;
background: #f0fdfa;
border-radius: 16px;
border: 3px solid #14b8a6;
position: relative;
}
.qr-section::before {
content: '';
position: absolute;
top: -3px;
left: -3px;
right: -3px;
bottom: -3px;
background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
border-radius: 16px;
z-index: -1;
opacity: 0.1;
}
.qr-code-wrapper {
background: white;
padding: 15px;
border-radius: 8px;
padding: 18px;
border-radius: 12px;
display: inline-block;
box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
margin-bottom: 12px;
box-shadow: 0 6px 20px rgba(15, 118, 110, 0.25);
margin-bottom: 15px;
border: 3px solid #0f766e;
}
.ticket-code {
font-size: 22px;
font-size: 26px;
font-weight: bold;
letter-spacing: 3px;
letter-spacing: 4px;
color: #0f766e;
margin-top: 8px;
padding: 8px 16px;
margin-top: 10px;
padding: 10px 20px;
background: white;
border-radius: 8px;
border-radius: 10px;
display: inline-block;
border: 2px solid #14b8a6;
box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
}
.info-section {
background: #f9fafb;
border-radius: 12px;
padding: 20px;
margin-bottom: 20px;
background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
border-radius: 16px;
padding: 25px;
margin-bottom: 25px;
border: 2px solid #ccfbf1;
}
.info-row {
display: table;
width: 100%;
margin: 12px 0;
padding: 10px 0;
border-bottom: 1px solid #e5e7eb;
margin: 15px 0;
padding: 12px 0;
border-bottom: 2px solid #e0f2fe;
}
.info-row:last-child {
@ -136,15 +163,15 @@
.info-label {
display: table-cell;
width: 45%;
font-size: 13px;
color: #6b7280;
font-weight: 600;
font-size: 14px;
color: #0f766e;
font-weight: 700;
}
.info-value {
display: table-cell;
width: 55%;
font-size: 14px;
font-size: 15px;
color: #111827;
font-weight: bold;
text-align: right;
@ -152,77 +179,88 @@
.price-highlight {
color: #0f766e;
font-size: 16px;
font-size: 18px;
background: #ccfbf1;
padding: 5px 12px;
border-radius: 8px;
}
.footer-note {
text-align: center;
color: #6b7280;
font-size: 11px;
margin-top: 20px;
padding: 15px;
color: #0f766e;
font-size: 12px;
margin-top: 25px;
padding: 18px;
background: #fef3c7;
border-radius: 8px;
border-left: 4px solid #f59e0b;
border-radius: 12px;
border: 3px solid #fbbf24;
font-weight: 600;
}
.footer-note strong {
color: #92400e;
display: block;
margin-bottom: 5px;
font-size: 12px;
margin-bottom: 8px;
font-size: 14px;
font-weight: 800;
}
.watermark {
position: fixed;
opacity: 0.03;
font-size: 80px;
opacity: 0.02;
font-size: 100px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(-45deg);
font-weight: bold;
color: #0f766e;
z-index: 0;
letter-spacing: 8px;
letter-spacing: 10px;
}
.ticket-corner {
position: absolute;
width: 30px;
height: 30px;
border: 3px solid #14b8a6;
width: 40px;
height: 40px;
border: 4px solid #14b8a6;
}
.corner-tl {
top: -3px;
left: -3px;
top: -4px;
left: -4px;
border-right: none;
border-bottom: none;
border-radius: 16px 0 0 0;
border-radius: 20px 0 0 0;
}
.corner-tr {
top: -3px;
right: -3px;
top: -4px;
right: -4px;
border-left: none;
border-bottom: none;
border-radius: 0 16px 0 0;
border-radius: 0 20px 0 0;
}
.corner-bl {
bottom: -3px;
left: -3px;
bottom: -4px;
left: -4px;
border-right: none;
border-top: none;
border-radius: 0 0 0 16px;
border-radius: 0 0 0 20px;
}
.corner-br {
bottom: -3px;
right: -3px;
bottom: -4px;
right: -4px;
border-left: none;
border-top: none;
border-radius: 0 0 16px 0;
border-radius: 0 0 20px 0;
}
.divider {
height: 3px;
background: linear-gradient(90deg, transparent 0%, #14b8a6 50%, transparent 100%);
margin: 20px 0;
}
</style>
</head>
@ -245,8 +283,10 @@
<div class="ticket-content">
<!-- Header -->
<div class="header">
<h1>BANYU BIRU</h1>
<p>Pemandian Air Panas Nganjuk</p>
<div class="header-content">
<h1>BANYU BIRU</h1>
<p>Pemandian Air Panas Nganjuk</p>
</div>
</div>
<!-- Body -->
@ -255,12 +295,14 @@
<div class="qr-section">
<div class="qr-code-wrapper">
@if(file_exists(public_path($item->qr_code_path)))
<img src="{{ public_path($item->qr_code_path) }}" style="height:140px; width:140px;" alt="QR Code">
<img src="{{ public_path($item->qr_code_path) }}" style="height:150px; width:150px;" alt="QR Code">
@endif
</div>
<div class="ticket-code">{{ $item->ticket_code }}</div>
</div>
<div class="divider"></div>
<!-- Info Section -->
<div class="info-section">
<div class="info-row">
@ -283,7 +325,7 @@
<!-- Footer Note -->
<div class="footer-note">
<strong>⚠ PENTING</strong>
<strong>⚠ PENTING - HARAP DIBACA</strong>
Tunjukkan tiket ini kepada petugas di pintu masuk. Tiket hanya berlaku untuk 1 (satu) kali kunjungan sesuai tanggal yang tertera. Simpan tiket ini sampai kunjungan selesai.
</div>
</div>

View File

@ -5,18 +5,18 @@
@push('styles')
<style>
.ticket-preview {
border: 3px solid #0f766e;
border-radius: 16px;
border: 4px solid #0f766e;
border-radius: 20px;
overflow: hidden;
background: white;
box-shadow: 0 10px 30px rgba(15, 118, 110, 0.15);
box-shadow: 0 15px 40px rgba(15, 118, 110, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
position: relative;
}
.ticket-preview:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(15, 118, 110, 0.25);
transform: translateY(-8px);
box-shadow: 0 20px 50px rgba(15, 118, 110, 0.35);
}
.ticket-preview::before {
@ -27,86 +27,113 @@
width: 100%;
height: 100%;
background: url('/images/background.jpg') center/cover;
opacity: 0.05;
opacity: 0.04;
z-index: 0;
}
.ticket-header {
background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
background: #0f766e;
color: white;
text-align: center;
padding: 20px;
padding: 25px 20px;
position: relative;
border-bottom: 5px solid #14b8a6;
}
.ticket-header::after {
.ticket-header::before {
content: '';
position: absolute;
bottom: -8px;
top: 0;
left: 0;
width: 100%;
height: 16px;
background: white;
border-radius: 50% 50% 0 0 / 100% 100% 0 0;
height: 100%;
background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, transparent 100%);
z-index: 0;
}
.ticket-header-content {
position: relative;
z-index: 1;
}
.ticket-header h5 {
font-size: 20px;
font-weight: 700;
margin: 0 0 5px 0;
letter-spacing: 1px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
font-size: 24px;
font-weight: 800;
margin: 0 0 8px 0;
letter-spacing: 3px;
text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
color: #ffffff;
}
.ticket-header small {
opacity: 0.95;
font-size: 12px;
font-size: 13px;
font-weight: 600;
color: #ccfbf1;
letter-spacing: 0.5px;
}
.ticket-qr-section {
text-align: center;
padding: 20px;
background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
border-radius: 12px;
border: 2px dashed #14b8a6;
margin: 15px;
padding: 25px 20px;
background: #f0fdfa;
border-radius: 16px;
border: 3px solid #14b8a6;
margin: 20px;
position: relative;
}
.ticket-qr-section::before {
content: '';
position: absolute;
top: -3px;
left: -3px;
right: -3px;
bottom: -3px;
background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
border-radius: 16px;
z-index: -1;
opacity: 0.1;
}
.qr-wrapper {
background: white;
padding: 12px;
border-radius: 8px;
padding: 15px;
border-radius: 12px;
display: inline-block;
box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
margin-bottom: 10px;
box-shadow: 0 6px 20px rgba(15, 118, 110, 0.25);
margin-bottom: 12px;
border: 3px solid #0f766e;
}
.ticket-code-display {
font-size: 18px;
font-weight: 700;
letter-spacing: 2px;
font-size: 20px;
font-weight: 800;
letter-spacing: 3px;
color: #0f766e;
padding: 6px 12px;
padding: 8px 16px;
background: white;
border-radius: 6px;
border-radius: 10px;
display: inline-block;
margin-top: 5px;
margin-top: 8px;
border: 2px solid #14b8a6;
box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
}
.ticket-info-box {
background: #f9fafb;
border-radius: 12px;
padding: 15px;
margin: 15px;
background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
border-radius: 16px;
padding: 20px;
margin: 20px;
position: relative;
z-index: 1;
border: 2px solid #ccfbf1;
}
.ticket-info-row {
display: flex;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px solid #e5e7eb;
padding: 12px 0;
border-bottom: 2px solid #e0f2fe;
}
.ticket-info-row:last-child {
@ -114,13 +141,13 @@
}
.ticket-info-label {
font-size: 12px;
color: #6b7280;
font-weight: 600;
font-size: 13px;
color: #0f766e;
font-weight: 700;
}
.ticket-info-value {
font-size: 13px;
font-size: 14px;
color: #111827;
font-weight: 700;
text-align: right;
@ -128,21 +155,30 @@
.price-highlight {
color: #0f766e;
font-size: 14px;
font-size: 16px;
background: #ccfbf1;
padding: 4px 10px;
border-radius: 6px;
}
.ticket-corners {
position: absolute;
width: 20px;
height: 20px;
border: 2px solid #14b8a6;
width: 30px;
height: 30px;
border: 4px solid #14b8a6;
z-index: 2;
}
.corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 16px 0 0 0; }
.corner-tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 16px 0 0; }
.corner-bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 16px; }
.corner-br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 16px 0; }
.corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 20px 0 0 0; }
.corner-tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 20px 0 0; }
.corner-bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 20px; }
.corner-br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 20px 0; }
.divider-line {
height: 3px;
background: linear-gradient(90deg, transparent 0%, #14b8a6 50%, transparent 100%);
margin: 15px 20px;
}
</style>
@endpush
@ -184,24 +220,28 @@
<!-- Header -->
<div class="ticket-header">
<h5>BANYU BIRU</h5>
<small>Pemandian Air Panas Nganjuk</small>
<div class="ticket-header-content">
<h5>BANYU BIRU</h5>
<small>Pemandian Air Panas Nganjuk</small>
</div>
</div>
<!-- QR Section -->
<div class="ticket-qr-section">
<div class="qr-wrapper">
@if(file_exists(public_path($item->qr_code_path)))
<img src="{{ asset($item->qr_code_path) }}" style="width: 100px; height: 100px;" alt="QR Code">
<img src="{{ asset($item->qr_code_path) }}" style="width: 110px; height: 110px;" alt="QR Code">
@else
<div style="width: 100px; height: 100px; background: #e5e7eb; display: flex; align-items: center; justify-content: center; border-radius: 8px;">
<i class="fas fa-qrcode" style="font-size: 40px; color: #9ca3af;"></i>
<div style="width: 110px; height: 110px; background: #e5e7eb; display: flex; align-items: center; justify-content: center; border-radius: 8px;">
<i class="fas fa-qrcode" style="font-size: 45px; color: #9ca3af;"></i>
</div>
@endif
</div>
<div class="ticket-code-display">{{ $item->ticket_code }}</div>
</div>
<div class="divider-line"></div>
<!-- Info -->
<div class="ticket-info-box">
<div class="ticket-info-row">