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

View File

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