BOLTON-AI commited on
Commit
21f519c
·
verified ·
1 Parent(s): e287ef5

Enhanced Payment Confirmation with QR Code Generation

Browse files

I'll integrate the enhanced functionality you requested into the payment confirmation interface, including real QR code generation and countdown timer.

```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Payment Confirmation - Secure Checkout</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script src="https://cdn.jsdelivr.net/npm/qrcode@1.5.3/build/qrcode.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', system-ui, sans-serif;
}

:root {
--primary: #2563eb;
--success: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
--dark: #1f2937;
--light: #f9fafb;
}

body {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
color: var(--dark);
}

.container {
max-width: 900px;
width: 100%;
background: white;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 25px 50px rgba(0,0,0,0.15);
animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
from { transform: translateY(30px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}

header {
background: var(--dark);
color: white;
padding: 25px 30px;
display: flex;
justify-content: space-between;
align-items: center;
}

.logo {
display: flex;
align-items: center;
gap: 10px;
font-size: 24px;
font-weight: 700;
}

.logo i {
color: var(--primary);
}

.security-badge {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
background: rgba(255,255,255,0.1);
padding: 8px 15px;
border-radius: 50px;
}

.main-content {
display: flex;
flex-wrap: wrap;
}

.success-panel {
flex: 1;
min-width: 300px;
padding: 40px 30px;
background: var(--light);
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}

.success-icon {
width: 100px;
height: 100px;
background: var(--success);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}

.success-icon i {
font-size: 50px;
color: white;
}

h1 {
color: var(--success);
margin-bottom: 10px;
font-size: 28px;
}

.order-details-panel {
flex: 1;
min-width: 300px;
padding: 40px 30px;
background: white;
}

.order-id {
background: var(--light);
padding: 15px;
border-radius: 10px;
text-align: center;
margin-bottom: 25px;
border-left: 4px solid var(--primary);
}

.order-id h3 {
margin-bottom: 5px;
color: var(--dark);
}

.order-id-code {
font-size: 24px;
font-weight: 700;
letter-spacing: 2px;
color: var(--primary);
}

.detail-section {
margin-bottom: 25px;
}

.detail-section h3 {
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid #e5e7eb;
color: var(--dark);
}

.detail-row {
display: flex;
justify-content: space-between;
margin-bottom: 12px;
}

.detail-label {
color: #6b7280;
}

.detail-value {
font-weight: 600;
}

.qr-section {
text-align: center;
padding: 20px;
background: #f3f4f6;
border-radius: 10px;
margin: 20px 0;
}

.qr-code {
width: 150px;
height: 150px;
background: white;
margin: 0 auto 15px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 10px;
padding: 10px;
}

.qr-code canvas {
border-radius: 5px;
}

.countdown {
margin-top: 10px;
font-size: 14px;
color: var(--primary);
font-weight: 600;
}

.action-buttons {
display: flex;
gap: 15px;
margin-top: 30px;
flex-wrap: wrap;
}

.btn {
padding: 14px 25px;
border: none;
border-radius: 10px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
flex: 1;
min-width: 150px;
}

.btn-primary {
background: var(--primary);
color: white;
}

.btn-secondary {
background: #f1f5f9;
color: #475569;
}

.btn-success {
background: var(--success);
color: white;
}

.btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

footer {
background: var(--dark);
color: white;
padding: 25px 30px;
text-align: center;
}

.payment-logos {
display: flex;
justify-content: center;
gap: 20px;
margin: 20px 0;
flex-wrap: wrap;
}

.payment-logo {
background: white;
padding: 10px 15px;
border-radius: 8px;
display: flex;
align-items: center;
gap: 8px;
font-weight: 700;
color: var(--dark);
}

.legal-text {
font-size: 12px;
color: #9ca3af;
margin-top: 20px;
line-height: 1.5;
}

.copyright {
margin-top: 15px;
font-size: 12px;
color: #6b7280;
}

.timeline {
display: flex;
justify-content: space-between;
position: relative;
margin: 30px 0;
}

.timeline::before {
content: '';
position: absolute;
top: 15px;
left: 0;
right: 0;
height: 3px;
background: #e5e7eb;
z-index: 1;
}

.timeline-step {
display: flex;
flex-direction: column;
align-items: center;
z-index: 2;
}

.timeline-icon {
width: 35px;
height: 35px;
border-radius: 50%;
background: white;
border: 3px solid #e5e7eb;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 8px;
}

.timeline-step.active .timeline-icon {
border-color: var(--success);
background: var(--success);
color: white;
}

.timeline-text {
font-size: 12px;
text-align: center;
}

.notification {
position: fixed;
top: 20px;
right: 20px;
background: var(--success);
color: white;
padding: 15px 20px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
display: flex;
align-items: center;
gap: 10px;
z-index: 1000;
transform: translateX(150%);
transition: transform 0.3s ease;
}

.notification.show {
transform: translateX(0);
}

@media (max-width: 768px) {
.main-content {
flex-direction: column;
}

.action-buttons {
flex-direction: column;
}

.btn {
width: 100%;
}

.notification {
left: 20px;
right: 20px;
transform: translateY(-150%);
}

.notification.show {
transform: translateY(0);
}
}

@media print {
body {
background: white;
padding: 0;
}

.container {
box-shadow: none;
border-radius: 0;
}

.btn, .notification {
display: none;

Files changed (1) hide show
  1. README.md +8 -5
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Deepsite Project
3
- emoji: 🏢
4
- colorFrom: yellow
5
- colorTo: purple
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: DeepSite Project
3
+ colorFrom: gray
4
+ colorTo: pink
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://deepsite.hf.co).