Files
qris_bank_jatim/components/PembayaranGagal.vue
bagus-arie05 b5eacacef2 final update 2
2025-11-13 11:54:07 +07:00

341 lines
6.2 KiB
Vue

<template>
<div class="payment-step">
<div class="logo-section-contact">
<div class="logo-group-contact">
<v-img
src="/JatimLogo.png"
width="50"
height="50"
class="logo-img-contact"
contain
/>
<v-img
src="/rssalogo.png"
width="50"
height="50"
class="logo-img-contact"
contain
/>
<v-img
src="/BerakhlakLogo.png"
width="50"
height="50"
class="logo-img-contact"
contain
/>
<v-img
src="karslogo.png"
width="50"
height="50"
class="logo-img-contact"
contain
/>
</div>
</div>
<div class="payment-wrapper">
<v-card-text class="payment-content text-center">
<div class="failure-container">
<div class="icon-container">
<v-icon
icon="mdi-account-clock-outline"
size="100"
class="text-grey animated-icon"
/>
</div>
<h2 class="failure-title">Pembayaran Pending</h2>
<p class="failure-message">
Pembayaran Anda ditunda.
</p>
<!-- Uncomment jika butuh buttons -->
<!-- <div class="button-group">
<v-btn
color="primary"
size="large"
variant="flat"
rounded="xl"
@click="retryPayment"
class="action-btn"
>
Coba Lagi
</v-btn>
<v-btn
color="grey-darken-1"
size="large"
variant="outlined"
rounded="xl"
@click="paymentStore.reset"
class="action-btn"
>
Kembali ke Awal
</v-btn>
</div> -->
</div>
</v-card-text>
</div>
</div>
</template>
<script setup>
import { usePaymentStore } from "~/stores/payment";
const paymentStore = usePaymentStore();
const retryPayment = () => {
console.log("Mencoba pembayaran lagi...");
paymentStore.setPaymentStatus("aktif");
};
</script>
<style scoped>
.payment-step {
background: #ff9248;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 1.5rem;
}
.logo-section-contact {
position: absolute;
top: 20px;
left: 0;
right: 0;
display: flex;
background: rgb(255, 255, 255);
border-radius: 24px;
padding: 1rem 1rem;
margin: 0 auto;
width: fit-content;
justify-content: center;
z-index: 10;
}
.logo-group-contact {
display: flex;
gap: 1.5rem;
align-items: center;
flex-wrap: wrap;
justify-content: center;
}
.payment-wrapper {
width: 100%;
max-width: 600px;
}
.payment-content {
background: rgba(255, 255, 255, 0.95);
border-radius: 24px;
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
padding: 3rem 2rem !important;
}
.failure-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.icon-container {
margin-bottom: 2rem;
}
.animated-icon {
animation: errorPulse 2s ease-in-out infinite;
filter: drop-shadow(0 4px 20px rgba(244, 67, 54, 0.3));
}
@keyframes errorPulse {
0%,
100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.05);
opacity: 0.8;
}
}
.text-grey {
color: #817f7e !important;
}
.failure-title {
font-size: 2rem;
font-weight: 800;
background:#777676 ;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
line-height: 1.3;
margin-bottom: 1rem;
}
.failure-message {
font-size: 1.1rem;
font-weight: 500;
color: #666;
line-height: 1.6;
margin-bottom: 2rem;
}
.button-group {
display: flex;
flex-direction: column;
gap: 1rem;
width: 100%;
max-width: 300px;
margin-top: 1rem;
}
.action-btn {
font-weight: 600 !important;
text-transform: none !important;
transition: all 0.3s ease !important;
}
.action-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}
/* Portrait Phone - Small */
@media (max-width: 480px) and (orientation: portrait) {
.payment-step {
padding: 1rem;
}
.payment-content {
padding: 2rem 1.25rem !important;
}
.animated-icon {
font-size: 80px !important;
}
.failure-title {
font-size: 1.75rem;
}
.failure-message {
font-size: 1rem;
}
.icon-container {
margin-bottom: 1.5rem;
}
.button-group {
max-width: 100%;
}
}
/* Portrait Phone - Medium */
@media (min-width: 481px) and (max-width: 767px) and (orientation: portrait) {
.payment-content {
padding: 2.5rem 1.5rem !important;
}
.failure-title {
font-size: 1.85rem;
}
}
/* Portrait Tablet */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
.payment-step {
padding: 2rem;
}
.logo-section-contact {
padding: 20px 12px;
margin-top: 40px;
margin-bottom: 40px;
}
.logo-img-contact {
width: 80px !important;
height: 80px !important;
}
.payment-wrapper {
max-width: 700px;
}
.payment-content {
padding: 3.5rem 2.5rem !important;
}
.animated-icon {
font-size: 120px !important;
}
.failure-title {
font-size: 2.25rem;
}
.failure-message {
font-size: 1.2rem;
}
}
/* Landscape Mode - Compact */
@media (max-height: 600px) and (orientation: landscape) {
.payment-step {
padding: 1rem;
}
.payment-content {
padding: 1.5rem !important;
}
.icon-container {
margin-bottom: 1rem;
}
.animated-icon {
font-size: 70px !important;
}
.failure-title {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}
.failure-message {
font-size: 0.95rem;
margin-bottom: 1rem;
}
}
/* Landscape Tablet */
@media (min-width: 768px) and (orientation: landscape) {
.payment-wrapper {
max-width: 650px;
}
}
/* Very Small Screens */
@media (max-width: 360px) {
.payment-content {
padding: 1.5rem 1rem !important;
}
.animated-icon {
font-size: 70px !important;
}
.failure-title {
font-size: 1.5rem;
}
.failure-message {
font-size: 0.9rem;
}
}
</style>