-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPremiumCard Studio.US(WEB).py
More file actions
230 lines (210 loc) · 7.49 KB
/
PremiumCard Studio.US(WEB).py
File metadata and controls
230 lines (210 loc) · 7.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
from flask import Flask, render_template_string, request, jsonify
import random
import smtplib
from email.mime.text import MIMEText
from datetime import datetime, timedelta
app = Flask(__name__)
SMTP_SERVER = 'smtp.gmail.com'
SMTP_PORT = 587
EMAIL_ADDRESS = 'yourgmail@gmail.com'
EMAIL_PASSWORD = 'Your_Code_Application_GOOGLE'
CARD_FEATURES = [
"NFC", "Hologram", "Fingerprint Sensor", "Dynamic CVV", "Dual Interface",
"Biometric Security", "Contactless", "3D Secure", "Magstripe Backup"
]
CARD_BRANDS = ["Visa", "MasterCard"]
FLAGS = ["USA", "RPA"]
COLORS = ["glass", "gradient", "black", "white", "blue", "sky", "lightred", "pink", "purple"]
TEMPLATE = '''
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Premium Card Ordering</title>
<h1><center>PremiumCard Studio</center></h1>
<h2><center>Design your own premium payment card with smart features and stunning styles.
Choose your color, brand, and security options — all in one click.
NFC, biometric security, and a personalized look, just for you.
Fast, secure delivery right to your doorstep.</center></h2>
<h2><center>Premium cards from the USA and South Africa — top quality, full personalization, and advanced security.</center></h2>
<style>
body {
background: #111;
color: white;
font-family: 'Segoe UI', sans-serif;
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 20px;
}
.card {
width: 320px; height: 200px;
margin: 15px; padding: 20px;
border-radius: 20px;
position: relative;
display: flex; flex-direction: column;
justify-content: space-between;
box-shadow: 0 0 10px rgba(255,255,255,0.2);
transition: transform 0.3s;
cursor: pointer;
}
.card:hover { transform: scale(1.05); }
.card:hover .card-info { transform: translateY(0); opacity: 1; }
.card.selected { box-shadow: 0 0 30px cyan; }
.card-info {
position: absolute;
left: 10px; bottom: 10px;
background: rgba(0,0,0,0.6);
padding: 8px 12px;
border-radius: 10px;
font-size: 13px;
max-width: 80%;
transition: all 0.4s ease;
transform: translateY(20px);
opacity: 0;
}
.chip {
width: 50px; height: 35px;
border-radius: 8px;
background: linear-gradient(135deg, gold, #d4af37);
margin-bottom: 10px;
}
.flag-emoji {
position: absolute;
top: 10px; right: 15px;
font-size: 24px;
}
.brand-label {
position: absolute;
bottom: 10px; right: 15px;
font-weight: bold; font-size: 20px;
text-shadow: 0 0 5px black;
}
/* COLORS */
.glass { backdrop-filter: blur(8px); background: rgba(255,255,255,0.1); }
.gradient { background: linear-gradient(135deg, red, orange, yellow, green); }
.black { background: #000; }
.white { background: #fff; color: #000; }
.blue { background: #3498db; }
.sky { background: #87CEEB; color: #000; }
.lightred { background: #ff6b6b; }
.pink { background: #ff69b4; }
.purple { background: #8e44ad; }
.form {
position: fixed;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
background: #222;
padding: 30px;
border-radius: 15px;
display: none;
flex-direction: column; gap: 10px;
width: 50%;
}
input, button {
padding: 10px; border-radius: 8px;
border: none; font-size: 16px;
}
button:disabled { background: grey; }
#buyBtn:enabled { background: dodgerblue; color: white; }
#success {
position: fixed;
top: -100px; left: 0; right: 0;
background: lime; color: black;
text-align: center;
padding: 20px;
transition: top 0.5s;
}
</style>
</head>
<body>
<div id="success">Success! Your card has been ordered.</div>
{% for c in cards %}
<div class="card {{ c.color }}" onclick="openForm('{{c.id}}','{{c.brand}}','{{c.color}}', this)">
<div class="chip"></div>
<div class="flag-emoji">{{ c.flag }}</div>
<div><span class="card-number">1234 5678 9012 3456</span></div>
<div><span class="card-name">JOHN DOE</span></div>
<div>CVV: <span class="card-cvv">***</span></div>
<div class="brand-label">{{ c.brand }}</div>
<div class="card-info">Secure {{ c.brand }} card with unique design ({{ c.color }})</div>
</div>
{% endfor %}
<div class="form" id="form">
<input placeholder="Full name" id="name" oninput="updateCard()">
<input placeholder="Email address" id="email" oninput="checkForm()">
<input placeholder="Card number (16 digits)" maxlength="16" id="cardnum" oninput="updateCard()">
<input placeholder="CVV (3 digits)" maxlength="3" id="cvv" oninput="updateCard()">
<button onclick="submitForm()" id="buyBtn" disabled>Order Now</button>
<button onclick="closeForm()">Close</button>
</div>
<script>
let selectedCard = {}, lastCardDiv = null;
function openForm(id, brand, color, el) {
selectedCard = {id, brand, color};
document.getElementById('form').style.display = 'flex';
if (lastCardDiv) lastCardDiv.classList.remove("selected");
el.classList.add("selected");
lastCardDiv = el;
}
function closeForm() {
document.getElementById('form').style.display = 'none';
}
function updateCard() {
document.querySelector(".card-name").innerText = document.getElementById('name').value || "JOHN DOE";
document.querySelector(".card-number").innerText = document.getElementById('cardnum').value || "1234 5678 9012 3456";
document.querySelector(".card-cvv").innerText = document.getElementById('cvv').value || "***";
checkForm();
}
function checkForm() {
const filled = document.getElementById('name').value &&
document.getElementById('email').value &&
document.getElementById('cardnum').value.length === 16 &&
document.getElementById('cvv').value.length === 3;
document.getElementById('buyBtn').disabled = !filled;
}
function submitForm() {
fetch('/buy', {
method: 'POST',
headers: {'Content-Type':'application/json'},
body: JSON.stringify({
name: document.getElementById('name').value,
email: document.getElementById('email').value,
...selectedCard
})
}).then(() => {
document.getElementById('form').style.display='none';
document.getElementById('success').style.top='0px';
setTimeout(()=> document.getElementById('success').style.top='-100px', 3000);
});
}
</script>
</body>
</html>
'''
@app.route("/")
def index():
cards = []
for i in range(12):
cards.append({
"id": i,
"brand": random.choice(CARD_BRANDS),
"color": random.choice(COLORS),
"flag": random.choice(FLAGS)
})
return render_template_string(TEMPLATE, cards=cards)
@app.route("/buy", methods=["POST"])
def buy():
data = request.json
name, email = data['name'], data['email']
brand, color = data['brand'], data['color']
delivery = datetime.now() + timedelta(days=random.randint(3,14))
msg = MIMEText(f"Dear {name},\n\nYour {brand} card in {color} color is being prepared for shipment.\nExpected delivery date: {delivery:%B %d, %Y}.\n\nThank you for your order!\n\nBest regards,\nCardTeam by O.K.")
msg['Subject'] = f"Your {brand} Card Order Confirmation"
msg['From'], msg['To'] = EMAIL_ADDRESS, email
with smtplib.SMTP(SMTP_SERVER, SMTP_PORT) as smtp:
smtp.starttls(); smtp.login(EMAIL_ADDRESS, EMAIL_PASSWORD); smtp.send_message(msg)
return jsonify(status="ok")
if __name__ == "__main__":
app.run(debug=True)