feat(ticket): redesign premium dengan header animasi dan QR horizontal
Header Improvements: - Gradient teal dengan wave animation - Icon circle dengan inner circle putih - Font size lebih besar: 48px untuk judul - Wave bottom border dengan border-radius - Text shadow lebih dramatis - Radial gradient overlay animation QR Section Horizontal Layout: - Split 50-50: QR code kiri, kode tiket kanan - Border vertical separator teal - Label 'Scan QR Code' dan 'Kode Tiket' - QR wrapper dengan border 4px teal - Kode tiket font 32px dengan letter-spacing 5px - Sejajar sempurna dengan vertical-align middle UI Elements: - Border tiket 5px solid teal - Corner decorations 50px dengan border 5px - Divider gradient horizontal lebih tebal (4px) - Info labels uppercase dengan letter-spacing - Price highlight dengan border 2px teal - Footer note dengan gradient kuning - Shadow lebih dramatis di semua elemen Preview Page: - Konsisten dengan PDF design - Hover effect scale 1.02 dengan translateY -10px - Responsive: QR section jadi vertical di mobile - Wave animation pada header - Smooth transitions dengan cubic-bezier
This commit is contained in:
parent
1bfe4e88c0
commit
f0693ca604
|
|
@ -17,17 +17,17 @@
|
||||||
|
|
||||||
.ticket-container {
|
.ticket-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 800px;
|
max-width: 850px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ticket-box {
|
.ticket-box {
|
||||||
border: 4px solid #0f766e;
|
border: 5px solid #0f766e;
|
||||||
border-radius: 20px;
|
border-radius: 24px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: white;
|
background: white;
|
||||||
box-shadow: 0 15px 40px rgba(15, 118, 110, 0.3);
|
box-shadow: 0 20px 60px rgba(15, 118, 110, 0.4);
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
opacity: 0.04;
|
opacity: 0.03;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -46,24 +46,41 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Header dengan wave pattern */
|
||||||
.header {
|
.header {
|
||||||
background: #0f766e;
|
background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #115e59 100%);
|
||||||
color: white;
|
color: white;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 30px 20px;
|
padding: 40px 30px 50px 30px;
|
||||||
position: relative;
|
position: relative;
|
||||||
border-bottom: 5px solid #14b8a6;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header::before {
|
.header::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
left: -50%;
|
||||||
|
width: 200%;
|
||||||
|
height: 100%;
|
||||||
|
background: radial-gradient(circle at 30% 50%, rgba(20, 184, 166, 0.3) 0%, transparent 50%);
|
||||||
|
animation: wave 15s ease-in-out infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
bottom: -2px;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 40px;
|
||||||
background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, transparent 100%);
|
background: white;
|
||||||
z-index: 0;
|
border-radius: 50% 50% 0 0 / 100% 100% 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes wave {
|
||||||
|
0%, 100% { transform: translateX(0) translateY(0); }
|
||||||
|
50% { transform: translateX(10%) translateY(-5%); }
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-content {
|
.header-content {
|
||||||
|
|
@ -71,88 +88,144 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header-icon {
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
background: rgba(255, 255, 255, 0.2);
|
||||||
|
border-radius: 50%;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
border: 3px solid rgba(255, 255, 255, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-icon-inner {
|
||||||
|
width: 35px;
|
||||||
|
height: 35px;
|
||||||
|
background: white;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
.header h1 {
|
.header h1 {
|
||||||
font-size: 40px;
|
font-size: 48px;
|
||||||
font-weight: bold;
|
font-weight: 900;
|
||||||
margin: 0 0 10px 0;
|
margin: 0 0 12px 0;
|
||||||
letter-spacing: 4px;
|
letter-spacing: 6px;
|
||||||
text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
|
text-shadow: 4px 4px 8px rgba(0,0,0,0.4);
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header p {
|
.header p {
|
||||||
font-size: 16px;
|
font-size: 18px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #ccfbf1;
|
color: #ccfbf1;
|
||||||
letter-spacing: 1px;
|
letter-spacing: 2px;
|
||||||
|
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ticket-body {
|
.ticket-body {
|
||||||
padding: 35px 30px 30px 30px;
|
padding: 40px 35px 35px 35px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* QR Section dengan layout horizontal */
|
||||||
.qr-section {
|
.qr-section {
|
||||||
text-align: center;
|
display: table;
|
||||||
margin: 0 0 30px 0;
|
width: 100%;
|
||||||
padding: 25px;
|
margin: 0 0 35px 0;
|
||||||
background: #f0fdfa;
|
padding: 30px;
|
||||||
border-radius: 16px;
|
background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
|
||||||
border: 3px solid #14b8a6;
|
border-radius: 20px;
|
||||||
|
border: 4px dashed #14b8a6;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.qr-section::before {
|
.qr-section::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -3px;
|
top: -4px;
|
||||||
left: -3px;
|
left: -4px;
|
||||||
right: -3px;
|
right: -4px;
|
||||||
bottom: -3px;
|
bottom: -4px;
|
||||||
background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
|
background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
|
||||||
border-radius: 16px;
|
border-radius: 20px;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
opacity: 0.1;
|
opacity: 0.08;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qr-left {
|
||||||
|
display: table-cell;
|
||||||
|
width: 50%;
|
||||||
|
vertical-align: middle;
|
||||||
|
text-align: center;
|
||||||
|
padding-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qr-right {
|
||||||
|
display: table-cell;
|
||||||
|
width: 50%;
|
||||||
|
vertical-align: middle;
|
||||||
|
text-align: center;
|
||||||
|
padding-left: 20px;
|
||||||
|
border-left: 3px solid #14b8a6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.qr-code-wrapper {
|
.qr-code-wrapper {
|
||||||
background: white;
|
background: white;
|
||||||
padding: 18px;
|
padding: 20px;
|
||||||
border-radius: 12px;
|
border-radius: 16px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
box-shadow: 0 6px 20px rgba(15, 118, 110, 0.25);
|
box-shadow: 0 8px 25px rgba(15, 118, 110, 0.3);
|
||||||
margin-bottom: 15px;
|
border: 4px solid #0f766e;
|
||||||
border: 3px solid #0f766e;
|
}
|
||||||
|
|
||||||
|
.qr-label {
|
||||||
|
font-size: 13px;
|
||||||
|
color: #0f766e;
|
||||||
|
font-weight: 700;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ticket-code {
|
.ticket-code {
|
||||||
font-size: 26px;
|
font-size: 32px;
|
||||||
font-weight: bold;
|
font-weight: 900;
|
||||||
letter-spacing: 4px;
|
letter-spacing: 5px;
|
||||||
color: #0f766e;
|
color: #0f766e;
|
||||||
margin-top: 10px;
|
padding: 15px 25px;
|
||||||
padding: 10px 20px;
|
|
||||||
background: white;
|
background: white;
|
||||||
border-radius: 10px;
|
border-radius: 12px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border: 2px solid #14b8a6;
|
border: 3px solid #14b8a6;
|
||||||
box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
|
box-shadow: 0 6px 20px rgba(15, 118, 110, 0.2);
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.divider {
|
||||||
|
height: 4px;
|
||||||
|
background: linear-gradient(90deg, transparent 0%, #14b8a6 20%, #0f766e 50%, #14b8a6 80%, transparent 100%);
|
||||||
|
margin: 30px 0;
|
||||||
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-section {
|
.info-section {
|
||||||
background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
|
background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
|
||||||
border-radius: 16px;
|
border-radius: 20px;
|
||||||
padding: 25px;
|
padding: 30px;
|
||||||
margin-bottom: 25px;
|
margin-bottom: 30px;
|
||||||
border: 2px solid #ccfbf1;
|
border: 3px solid #ccfbf1;
|
||||||
|
box-shadow: 0 4px 15px rgba(15, 118, 110, 0.08);
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-row {
|
.info-row {
|
||||||
display: table;
|
display: table;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 15px 0;
|
margin: 18px 0;
|
||||||
padding: 12px 0;
|
padding: 15px 0;
|
||||||
border-bottom: 2px solid #e0f2fe;
|
border-bottom: 3px solid #e0f2fe;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-row:last-child {
|
.info-row:last-child {
|
||||||
|
|
@ -163,104 +236,105 @@
|
||||||
.info-label {
|
.info-label {
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
width: 45%;
|
width: 45%;
|
||||||
font-size: 14px;
|
font-size: 15px;
|
||||||
color: #0f766e;
|
color: #0f766e;
|
||||||
font-weight: 700;
|
font-weight: 800;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-value {
|
.info-value {
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
width: 55%;
|
width: 55%;
|
||||||
font-size: 15px;
|
font-size: 16px;
|
||||||
color: #111827;
|
color: #111827;
|
||||||
font-weight: bold;
|
font-weight: 700;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.price-highlight {
|
.price-highlight {
|
||||||
color: #0f766e;
|
color: #0f766e;
|
||||||
font-size: 18px;
|
font-size: 20px;
|
||||||
background: #ccfbf1;
|
background: #ccfbf1;
|
||||||
padding: 5px 12px;
|
padding: 8px 16px;
|
||||||
border-radius: 8px;
|
border-radius: 10px;
|
||||||
|
font-weight: 900;
|
||||||
|
border: 2px solid #14b8a6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-note {
|
.footer-note {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #0f766e;
|
color: #0f766e;
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
margin-top: 25px;
|
margin-top: 30px;
|
||||||
padding: 18px;
|
padding: 22px;
|
||||||
background: #fef3c7;
|
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
|
||||||
border-radius: 12px;
|
border-radius: 16px;
|
||||||
border: 3px solid #fbbf24;
|
border: 4px solid #fbbf24;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
line-height: 1.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-note strong {
|
.footer-note strong {
|
||||||
color: #92400e;
|
color: #92400e;
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 10px;
|
||||||
font-size: 14px;
|
font-size: 15px;
|
||||||
font-weight: 800;
|
font-weight: 900;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.watermark {
|
.watermark {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
opacity: 0.02;
|
opacity: 0.015;
|
||||||
font-size: 100px;
|
font-size: 120px;
|
||||||
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: 900;
|
||||||
color: #0f766e;
|
color: #0f766e;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
letter-spacing: 10px;
|
letter-spacing: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ticket-corner {
|
.ticket-corner {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 40px;
|
width: 50px;
|
||||||
height: 40px;
|
height: 50px;
|
||||||
border: 4px solid #14b8a6;
|
border: 5px solid #14b8a6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.corner-tl {
|
.corner-tl {
|
||||||
top: -4px;
|
top: -5px;
|
||||||
left: -4px;
|
left: -5px;
|
||||||
border-right: none;
|
border-right: none;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
border-radius: 20px 0 0 0;
|
border-radius: 24px 0 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.corner-tr {
|
.corner-tr {
|
||||||
top: -4px;
|
top: -5px;
|
||||||
right: -4px;
|
right: -5px;
|
||||||
border-left: none;
|
border-left: none;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
border-radius: 0 20px 0 0;
|
border-radius: 0 24px 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.corner-bl {
|
.corner-bl {
|
||||||
bottom: -4px;
|
bottom: -5px;
|
||||||
left: -4px;
|
left: -5px;
|
||||||
border-right: none;
|
border-right: none;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
border-radius: 0 0 0 20px;
|
border-radius: 0 0 0 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.corner-br {
|
.corner-br {
|
||||||
bottom: -4px;
|
bottom: -5px;
|
||||||
right: -4px;
|
right: -5px;
|
||||||
border-left: none;
|
border-left: none;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
border-radius: 0 0 20px 0;
|
border-radius: 0 0 24px 0;
|
||||||
}
|
|
||||||
|
|
||||||
.divider {
|
|
||||||
height: 3px;
|
|
||||||
background: linear-gradient(90deg, transparent 0%, #14b8a6 50%, transparent 100%);
|
|
||||||
margin: 20px 0;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
@ -284,6 +358,9 @@
|
||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="header-content">
|
<div class="header-content">
|
||||||
|
<div class="header-icon">
|
||||||
|
<div class="header-icon-inner"></div>
|
||||||
|
</div>
|
||||||
<h1>BANYU BIRU</h1>
|
<h1>BANYU BIRU</h1>
|
||||||
<p>Pemandian Air Panas Nganjuk</p>
|
<p>Pemandian Air Panas Nganjuk</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -291,15 +368,21 @@
|
||||||
|
|
||||||
<!-- Body -->
|
<!-- Body -->
|
||||||
<div class="ticket-body">
|
<div class="ticket-body">
|
||||||
<!-- QR Code Section -->
|
<!-- QR Code Section dengan layout horizontal -->
|
||||||
<div class="qr-section">
|
<div class="qr-section">
|
||||||
|
<div class="qr-left">
|
||||||
|
<div class="qr-label">Scan QR Code</div>
|
||||||
<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:150px; width:150px;" alt="QR Code">
|
<img src="{{ public_path($item->qr_code_path) }}" style="height:160px; width:160px; display:block;" alt="QR Code">
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="qr-right">
|
||||||
|
<div class="qr-label">Kode Tiket</div>
|
||||||
<div class="ticket-code">{{ $item->ticket_code }}</div>
|
<div class="ticket-code">{{ $item->ticket_code }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,18 +5,18 @@
|
||||||
@push('styles')
|
@push('styles')
|
||||||
<style>
|
<style>
|
||||||
.ticket-preview {
|
.ticket-preview {
|
||||||
border: 4px solid #0f766e;
|
border: 5px solid #0f766e;
|
||||||
border-radius: 20px;
|
border-radius: 24px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: white;
|
background: white;
|
||||||
box-shadow: 0 15px 40px rgba(15, 118, 110, 0.2);
|
box-shadow: 0 20px 60px rgba(15, 118, 110, 0.25);
|
||||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ticket-preview:hover {
|
.ticket-preview:hover {
|
||||||
transform: translateY(-8px);
|
transform: translateY(-10px) scale(1.02);
|
||||||
box-shadow: 0 20px 50px rgba(15, 118, 110, 0.35);
|
box-shadow: 0 30px 80px rgba(15, 118, 110, 0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ticket-preview::before {
|
.ticket-preview::before {
|
||||||
|
|
@ -27,28 +27,45 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: url('/images/background.jpg') center/cover;
|
background: url('/images/background.jpg') center/cover;
|
||||||
opacity: 0.04;
|
opacity: 0.03;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Header dengan wave animation */
|
||||||
.ticket-header {
|
.ticket-header {
|
||||||
background: #0f766e;
|
background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #115e59 100%);
|
||||||
color: white;
|
color: white;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 25px 20px;
|
padding: 35px 25px 45px 25px;
|
||||||
position: relative;
|
position: relative;
|
||||||
border-bottom: 5px solid #14b8a6;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ticket-header::before {
|
.ticket-header::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
left: -50%;
|
||||||
|
width: 200%;
|
||||||
|
height: 100%;
|
||||||
|
background: radial-gradient(circle at 30% 50%, rgba(20, 184, 166, 0.3) 0%, transparent 50%);
|
||||||
|
animation: wave 15s ease-in-out infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ticket-header::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
bottom: -2px;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 35px;
|
||||||
background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, transparent 100%);
|
background: white;
|
||||||
z-index: 0;
|
border-radius: 50% 50% 0 0 / 100% 100% 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes wave {
|
||||||
|
0%, 100% { transform: translateX(0) translateY(0); }
|
||||||
|
50% { transform: translateX(10%) translateY(-5%); }
|
||||||
}
|
}
|
||||||
|
|
||||||
.ticket-header-content {
|
.ticket-header-content {
|
||||||
|
|
@ -56,43 +73,90 @@
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header-icon {
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
background: rgba(255, 255, 255, 0.2);
|
||||||
|
border-radius: 50%;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
border: 3px solid rgba(255, 255, 255, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-icon-inner {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
background: white;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
.ticket-header h5 {
|
.ticket-header h5 {
|
||||||
font-size: 24px;
|
font-size: 28px;
|
||||||
font-weight: 800;
|
font-weight: 900;
|
||||||
margin: 0 0 8px 0;
|
margin: 0 0 8px 0;
|
||||||
letter-spacing: 3px;
|
letter-spacing: 4px;
|
||||||
text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
|
text-shadow: 4px 4px 8px rgba(0,0,0,0.4);
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ticket-header small {
|
.ticket-header small {
|
||||||
font-size: 13px;
|
font-size: 14px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #ccfbf1;
|
color: #ccfbf1;
|
||||||
letter-spacing: 0.5px;
|
letter-spacing: 1.5px;
|
||||||
|
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* QR Section horizontal layout */
|
||||||
.ticket-qr-section {
|
.ticket-qr-section {
|
||||||
text-align: center;
|
display: flex;
|
||||||
padding: 25px 20px;
|
align-items: center;
|
||||||
background: #f0fdfa;
|
justify-content: space-between;
|
||||||
border-radius: 16px;
|
padding: 25px;
|
||||||
border: 3px solid #14b8a6;
|
background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
|
||||||
margin: 20px;
|
border-radius: 20px;
|
||||||
|
border: 4px dashed #14b8a6;
|
||||||
|
margin: 25px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
gap: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ticket-qr-section::before {
|
.ticket-qr-section::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -3px;
|
top: -4px;
|
||||||
left: -3px;
|
left: -4px;
|
||||||
right: -3px;
|
right: -4px;
|
||||||
bottom: -3px;
|
bottom: -4px;
|
||||||
background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
|
background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
|
||||||
border-radius: 16px;
|
border-radius: 20px;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
opacity: 0.1;
|
opacity: 0.08;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qr-left {
|
||||||
|
flex: 1;
|
||||||
|
text-align: center;
|
||||||
|
padding-right: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qr-right {
|
||||||
|
flex: 1;
|
||||||
|
text-align: center;
|
||||||
|
padding-left: 15px;
|
||||||
|
border-left: 3px solid #14b8a6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qr-label {
|
||||||
|
font-size: 11px;
|
||||||
|
color: #0f766e;
|
||||||
|
font-weight: 700;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.qr-wrapper {
|
.qr-wrapper {
|
||||||
|
|
@ -101,39 +165,46 @@
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
box-shadow: 0 6px 20px rgba(15, 118, 110, 0.25);
|
box-shadow: 0 6px 20px rgba(15, 118, 110, 0.25);
|
||||||
margin-bottom: 12px;
|
border: 4px solid #0f766e;
|
||||||
border: 3px solid #0f766e;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.ticket-code-display {
|
.ticket-code-display {
|
||||||
font-size: 20px;
|
font-size: 18px;
|
||||||
font-weight: 800;
|
font-weight: 900;
|
||||||
letter-spacing: 3px;
|
letter-spacing: 3px;
|
||||||
color: #0f766e;
|
color: #0f766e;
|
||||||
padding: 8px 16px;
|
padding: 10px 15px;
|
||||||
background: white;
|
background: white;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-top: 8px;
|
margin-top: 10px;
|
||||||
border: 2px solid #14b8a6;
|
border: 3px solid #14b8a6;
|
||||||
box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
|
box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.divider-line {
|
||||||
|
height: 4px;
|
||||||
|
background: linear-gradient(90deg, transparent 0%, #14b8a6 20%, #0f766e 50%, #14b8a6 80%, transparent 100%);
|
||||||
|
margin: 20px 25px;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
.ticket-info-box {
|
.ticket-info-box {
|
||||||
background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
|
background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
|
||||||
border-radius: 16px;
|
border-radius: 20px;
|
||||||
padding: 20px;
|
padding: 25px;
|
||||||
margin: 20px;
|
margin: 25px;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
border: 2px solid #ccfbf1;
|
border: 3px solid #ccfbf1;
|
||||||
|
box-shadow: 0 4px 15px rgba(15, 118, 110, 0.08);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ticket-info-row {
|
.ticket-info-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 12px 0;
|
padding: 14px 0;
|
||||||
border-bottom: 2px solid #e0f2fe;
|
border-bottom: 3px solid #e0f2fe;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ticket-info-row:last-child {
|
.ticket-info-row:last-child {
|
||||||
|
|
@ -143,7 +214,9 @@
|
||||||
.ticket-info-label {
|
.ticket-info-label {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
color: #0f766e;
|
color: #0f766e;
|
||||||
font-weight: 700;
|
font-weight: 800;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ticket-info-value {
|
.ticket-info-value {
|
||||||
|
|
@ -157,27 +230,46 @@
|
||||||
color: #0f766e;
|
color: #0f766e;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
background: #ccfbf1;
|
background: #ccfbf1;
|
||||||
padding: 4px 10px;
|
padding: 6px 12px;
|
||||||
border-radius: 6px;
|
border-radius: 8px;
|
||||||
|
font-weight: 900;
|
||||||
|
border: 2px solid #14b8a6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ticket-corners {
|
.ticket-corners {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 30px;
|
width: 40px;
|
||||||
height: 30px;
|
height: 40px;
|
||||||
border: 4px solid #14b8a6;
|
border: 5px solid #14b8a6;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 20px 0 0 0; }
|
.corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 24px 0 0 0; }
|
||||||
.corner-tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 20px 0 0; }
|
.corner-tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 24px 0 0; }
|
||||||
.corner-bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 20px; }
|
.corner-bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 24px; }
|
||||||
.corner-br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 20px 0; }
|
.corner-br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 24px 0; }
|
||||||
|
|
||||||
.divider-line {
|
/* Responsive untuk mobile */
|
||||||
height: 3px;
|
@media (max-width: 576px) {
|
||||||
background: linear-gradient(90deg, transparent 0%, #14b8a6 50%, transparent 100%);
|
.ticket-qr-section {
|
||||||
margin: 15px 20px;
|
flex-direction: column;
|
||||||
|
gap: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qr-left, .qr-right {
|
||||||
|
padding: 0;
|
||||||
|
border-left: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qr-right {
|
||||||
|
border-top: 3px solid #14b8a6;
|
||||||
|
padding-top: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ticket-code-display {
|
||||||
|
font-size: 16px;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@endpush
|
@endpush
|
||||||
|
|
@ -221,24 +313,33 @@
|
||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<div class="ticket-header">
|
<div class="ticket-header">
|
||||||
<div class="ticket-header-content">
|
<div class="ticket-header-content">
|
||||||
|
<div class="header-icon">
|
||||||
|
<div class="header-icon-inner"></div>
|
||||||
|
</div>
|
||||||
<h5>BANYU BIRU</h5>
|
<h5>BANYU BIRU</h5>
|
||||||
<small>Pemandian Air Panas Nganjuk</small>
|
<small>Pemandian Air Panas Nganjuk</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- QR Section -->
|
<!-- QR Section dengan layout horizontal -->
|
||||||
<div class="ticket-qr-section">
|
<div class="ticket-qr-section">
|
||||||
|
<div class="qr-left">
|
||||||
|
<div class="qr-label">Scan QR Code</div>
|
||||||
<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: 110px; height: 110px;" alt="QR Code">
|
<img src="{{ asset($item->qr_code_path) }}" style="width: 100px; height: 100px; display: block;" alt="QR Code">
|
||||||
@else
|
@else
|
||||||
<div style="width: 110px; height: 110px; background: #e5e7eb; display: flex; align-items: center; justify-content: center; border-radius: 8px;">
|
<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: 45px; color: #9ca3af;"></i>
|
<i class="fas fa-qrcode" style="font-size: 45px; color: #9ca3af;"></i>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="qr-right">
|
||||||
|
<div class="qr-label">Kode Tiket</div>
|
||||||
<div class="ticket-code-display">{{ $item->ticket_code }}</div>
|
<div class="ticket-code-display">{{ $item->ticket_code }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="divider-line"></div>
|
<div class="divider-line"></div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue