-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient-area.html
236 lines (228 loc) · 9.54 KB
/
client-area.html
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
231
232
233
234
235
236
<!DOCTYPE html>
<html lang="de-DE">
<head>
<meta charset="UTF-8">
<title>Client Area - Request Payout</title>
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon.png">
<link rel="stylesheet" type="text/css" href="css/normalize.min.css" media="all" />
<link href="https://fonts.googleapis.com/css?family=Raleway&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/flexboxgrid.css" media="all" />
<link rel="stylesheet" type="text/css" href="css/theme.css" media="all" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
.membership-section {
background-color: #f9f9f9;
padding: 40px 20px;
text-align: center;
}
.membership-card {
display: inline-block;
width: calc(50% - 20px);
margin: 10px;
padding: 20px;
border-radius: 10px;
background-color: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s, box-shadow 0.3s;
cursor: pointer;
}
.membership-card:hover {
transform: scale(1.05);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.membership-card h3 {
margin-top: 0;
}
.membership-card .price {
font-size: 24px;
color: #333;
}
.membership-card button {
background-color: #007bff;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s;
}
.membership-card button:hover {
background-color: #0056b3;
}
.payment-options {
display: none;
margin-top: 20px;
text-align: center;
}
.payment-options button {
background-color: #007bff;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s;
}
.payment-options button:hover {
background-color: #0056b3;
}
.membership-container {
display: flex;
justify-content: center;
gap: 20px; /* Space between the two cards */
}
.sidenote-container {
display: flex;
justify-content: center;
margin-top: 20px; /* Space between the cards and the sidenote */
}
.sidenote-container p {
text-align: center;
font-size: 14px;
color: #333;
margin: 0;
}
.code-section {
display: none;
text-align: center;
margin-top: 20px;
}
.code-section p {
font-size: 20px;
color: #333;
}
</style>
</head>
<body>
<header class="fade-in">
<div class="navigation-bar flex middle-xs">
<img src="img/eclogo.png" class="logo" alt="Exclusives Club Logo">
<nav class="end-xs">
<ul>
<li><a href="/index.html">Home</a></li>
<li><a href="index.html#about-us">About us</a></li>
<li><a href="index.html#services">Services</a></li>
<li><a href="/client-area.html">Membership</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="/news.html">News</a></li>
</ul>
</nav>
</div>
<div class="hero flex middle-xs" style="background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7)), url('img/hero-image.jpg');">
<div class="hero-text">
<h1>Client Area</h1>
<h4>Select your membership plan and proceed with payment.</h4>
</div>
</div>
</header>
<div class="wrapper">
<main>
<section class="membership-section">
<div class="container">
<h2 class="section-title">Choose Your Membership</h2>
<div class="row membership-container">
<div class="col-md">
<div class="membership-card" data-price="10" data-type="basic" data-link="https://oxapay.com/pay/99211567">
<h3>Basic Membership</h3>
<p class="price">$10</p>
<p>Access to basic features and community benefits.</p>
<button type="button" class="select-button">Select</button>
</div>
</div>
<div class="col-md">
<div class="membership-card" data-price="50" data-type="premium" data-link="https://oxapay.com/pay/74806105">
<h3>Premium Membership</h3>
<p class="price">$50</p>
<p>All basic features plus premium access and exclusive services.</p>
<button type="button" class="select-button">Select</button>
</div>
</div>
</div>
<div class="sidenote-container">
<p>SIDE NOTE: Please contact us with your payment ID after completing the order.</p>
</div>
<div class="payment-options" id="paymentOptions">
<h2>Proceed with Payment</h2>
<button id="payButton">Pay Now</button>
</div>
<div class="code-section" id="codeSection">
<p id="codeDisplay"></p>
</div>
</div>
</section>
</main>
</div>
<footer>
<div class="container">
<div class="row margin-bottom-small">
<div class="col-md-8">
<h3>About us</h3>
<p>Exclusives Club is a community for business tycoons who are eager to collaborate, buy and sell companies, receive exclusive invitations in Dubai, and access complimentary services, among many other benefits. If you're under 18 and interested in starting your own physical stores, EC is the perfect choice! Join EC to take advantage of affordable items and much more.</p>
</div>
</div>
</div>
</footer>
<div class="row secondary-footer">
<div class="col-md">
<p>2024 Exclusivésé. All rights reserved.</p>
</div>
<div class="col-md end-md">
<p><a href="#">Imprint</a> | <a href="#">Data Protection</a></p>
</div>
</div>
<!-- Custom JavaScript -->
<script>
// Initialize local storage with codes if not already set
if (!localStorage.getItem('codes')) {
const codes = ["CODE123", "CODE456", "CODE789"];
localStorage.setItem('codes', JSON.stringify(codes));
}
let paymentLink = null;
document.querySelectorAll('.select-button').forEach(button => {
button.addEventListener('click', function() {
const membershipCard = this.closest('.membership-card');
paymentLink = membershipCard.dataset.link;
// Show the pay button
document.getElementById('paymentOptions').style.display = 'block';
});
});
document.getElementById('payButton').addEventListener('click', function() {
if (paymentLink === null) {
alert('Please select a membership plan first.');
return;
}
// Simulate payment
alert('Intial Payment Successful! You will now be redirected.');
// Display the code section
const codes = JSON.parse(localStorage.getItem('codes'));
if (codes.length > 0) {
const code = codes.pop(); // Get and remove the last code
localStorage.setItem('codes', JSON.stringify(codes)); // Update local storage
document.getElementById('codeDisplay').textContent = `Your code: ${code}`;
document.getElementById('codeSection').style.display = 'block';
} else {
alert('No codes available. Please contact support.');
}
// Redirect to the payment link
window.location.href = paymentLink;
});
// Check if the user returned with a successful payment
const urlParams = new URLSearchParams(window.location.search);
if (urlParams.get('payment') === 'success') {
// Display the code section
const codes = JSON.parse(localStorage.getItem('codes'));
if (codes.length > 0) {
const code = codes.pop(); // Get and remove the last code
localStorage.setItem('codes', JSON.stringify(codes)); // Update local storage
document.getElementById('codeDisplay').textContent = `Your code: ${code}`;
document.getElementById('codeSection').style.display = 'block';
} else {
document.getElementById('codeDisplay').textContent = 'No codes available. Please contact support.';
document.getElementById('codeSection').style.display = 'block';
}
}
</script>
</body>
</html>