From 1bfe4e88c0ce00d3860d756916c73359f60df8e3 Mon Sep 17 00:00:00 2001 From: ardhikaxx Date: Wed, 25 Feb 2026 10:17:35 +0700 Subject: [PATCH] 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 --- resources/views/pdf/ticket.blade.php | 190 +++++++++++------- .../views/user/tickets/download.blade.php | 156 ++++++++------ 2 files changed, 214 insertions(+), 132 deletions(-) diff --git a/resources/views/pdf/ticket.blade.php b/resources/views/pdf/ticket.blade.php index 95e2df2..b30a8ae 100644 --- a/resources/views/pdf/ticket.blade.php +++ b/resources/views/pdf/ticket.blade.php @@ -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; } @@ -245,8 +283,10 @@
-

BANYU BIRU

-

Pemandian Air Panas Nganjuk

+
+

BANYU BIRU

+

Pemandian Air Panas Nganjuk

+
@@ -255,12 +295,14 @@
@if(file_exists(public_path($item->qr_code_path))) - QR Code + QR Code @endif
{{ $item->ticket_code }}
+
+
@@ -283,7 +325,7 @@
diff --git a/resources/views/user/tickets/download.blade.php b/resources/views/user/tickets/download.blade.php index 5dcb2f2..c6360fd 100644 --- a/resources/views/user/tickets/download.blade.php +++ b/resources/views/user/tickets/download.blade.php @@ -5,18 +5,18 @@ @push('styles') @endpush @@ -184,24 +220,28 @@
-
BANYU BIRU
- Pemandian Air Panas Nganjuk +
+
BANYU BIRU
+ Pemandian Air Panas Nganjuk +
@if(file_exists(public_path($item->qr_code_path))) - QR Code + QR Code @else -
- +
+
@endif
{{ $item->ticket_code }}
+
+