-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathp2p.html
More file actions
469 lines (453 loc) · 19.8 KB
/
p2p.html
File metadata and controls
469 lines (453 loc) · 19.8 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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>P2P Trading - TruthWeb</title>
<!-- TailwindCSS CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Font Awesome CDN -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet"/>
<!-- Google Fonts: Poppins -->
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet"/>
<style>
:root {
--primary-color: #000000;
--secondary-color: #FFFFFF;
--highlight-color: #CCCCCC;
--text-color: #FFFFFF;
--button-bg-color: #000000;
--button-text-color: #FFFFFF;
--button-hover-bg-color: #FFFFFF;
--button-hover-text-color: #000000;
--background-color: #FFFFFF;
}
body {
background: var(--background-color);
color: var(--primary-color);
font-family: 'Poppins', sans-serif;
overflow-x: hidden;
}
.hero {
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
border: 2px solid var(--highlight-color);
padding: 1rem;
background: var(--primary-color);
animation: fadeIn 1.5s ease-in-out;
}
.hero::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
opacity: 0.5;
animation: float 6s infinite ease-in-out, pulseGlow 3s infinite alternate;
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-20px); }
}
@keyframes pulseGlow {
0% { opacity: 0.5; }
100% { opacity: 0.8; }
}
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
.glow-text {
font-size: 2rem;
font-weight: bold;
color: var(--text-color);
text-shadow: 0 0 10px var(--highlight-color), 0 0 20px var(--highlight-color);
animation: glow 2s infinite alternate, bounce 3s infinite ease-in-out;
}
@keyframes glow {
0% { text-shadow: 0 0 10px var(--highlight-color), 0 0 20px var(--highlight-color); }
100% { text-shadow: 0 0 20px var(--highlight-color), 0 0 30px var(--highlight-color); }
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.card {
background: var(--secondary-color);
border: 2px solid var(--highlight-color);
border-radius: 10px;
padding: 1rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
animation: slideIn 1s ease-in-out;
}
.card:hover {
transform: translateY(-10px) rotate(2deg);
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}
@keyframes slideIn {
0% { opacity: 0; transform: translateX(-50px); }
100% { opacity: 1; transform: translateX(0); }
}
.btn {
background: var(--button-bg-color);
color: var(--button-text-color);
padding: 0.75rem 1.5rem;
border: 2px solid var(--highlight-color);
border-radius: 20px;
cursor: pointer;
transition: all 0.3s ease;
animation: pulse 2s infinite;
display: inline-block;
text-align: center;
}
.btn:hover {
background: var(--button-hover-bg-color);
color: var(--button-hover-text-color);
transform: scale(1.1) rotate(3deg);
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
footer {
background: var(--primary-color);
color: var(--text-color);
text-align: center;
padding: 2rem;
animation: fadeIn 1.5s ease-in-out;
}
html {
scroll-behavior: smooth;
}
.sticky-header {
position: sticky;
top: 0;
z-index: 50;
background: var(--primary-color);
color: var(--text-color);
transition: background 0.3s ease, color 0.3s ease;
animation: slideDown 1s ease-in-out;
display: flex;
justify-content: space-between;
align-items: center;
height: 64px;
padding: 0 1rem;
}
.sticky-header.scrolled {
background: var(--secondary-color);
color: var(--primary-color);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.sticky-header .logo-text {
font-size: 1.5rem;
font-weight: 700;
transition: font-size 0.3s ease;
}
.sticky-header.scrolled .logo-text {
font-size: 1.25rem;
}
.sticky-header .icon {
color: inherit;
}
@keyframes slideDown {
0% { transform: translateY(-100%); }
100% { transform: translateY(0); }
}
.nav-item {
transition: transform 0.3s ease;
animation: fadeInUp 0.5s ease-in-out forwards;
}
.nav-item:hover {
transform: scale(1.1) translateY(-5px);
}
@keyframes fadeInUp {
0% { opacity: 0; transform: translateY(20px); }
100% { opacity: 1; transform: translateY(0); }
}
.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }
.nav-item:nth-child(6) { animation-delay: 0.6s; }
.nav-item:nth-child(7) { animation-delay: 0.7s; }
.floating-effect {
transition: transform 0.3s ease;
}
.floating-effect:hover {
transform: translateY(-5px) rotate(5deg);
}
.active {
color: var(--highlight-color);
text-decoration: underline;
}
.error {
border-color: #ff0000;
}
.success {
border-color: #00ff00;
}
</style>
</head>
<body>
<!-- Sticky Header -->
<header class="sticky-header">
<div class="flex items-center">
<a class="text-inherit mr-4 flex items-center" href="index.html">
<span class="logo-text ml-2">TruthWeb</span>
</a>
</div>
<div class="flex items-center">
<a class="mr-4 icon floating-effect" href="marketplace.html">
<i class="fas fa-shopping-cart text-xl sm:text-2xl"></i>
</a>
<a class="mr-4 icon floating-effect" href="profile.html">
<i class="fas fa-user text-xl sm:text-2xl"></i>
</a>
<a class="icon floating-effect" href="wallet.html">
<i class="fas fa-wallet text-xl sm:text-2xl"></i>
</a>
</div>
</header>
<!-- Navigation Bar -->
<nav class="bg-[var(--primary-color)] py-4">
<ul class="flex flex-wrap justify-center space-x-4">
<li class="nav-item"><a class="text-[var(--text-color)] hover:text-[var(--highlight-color)] floating-effect" href="index.html">Home</a></li>
<li class="nav-item"><a class="text-[var(--text-color)] hover:text-[var(--highlight-color)] floating-effect active" href="marketplace.html">Marketplace</a></li>
<li class="nav-item"><a class="text-[var(--text-color)] hover:text-[var(--highlight-color)] floating-effect" href="profile.html">Profile</a></li>
<li class="nav-item"><a class="text-[var(--text-color)] hover:text-[var(--highlight-color)] floating-effect" href="wallet.html">Wallet</a></li>
<li class="nav-item"><a class="text-[var(--text-color)] hover:text-[var(--highlight-color)] floating-effect" href="community.html">Community</a></li>
<li class="nav-item"><a class="text-[var(--text-color)] hover:text-[var(--highlight-color)] floating-effect" href="developers.html">Developers</a></li>
<li class="nav-item"><a class="text-[var(--text-color)] hover:text-[var(--highlight-color)] floating-effect" href="about.html">About</a></li>
</ul>
</nav>
<!-- Hero Section -->
<div class="hero flex flex-col items-center justify-center min-h-screen">
<h1 class="glow-text fade-in text-5xl md:text-7xl font-bold">P2P Trading</h1>
<p class="text-xl mt-4 text-center fade-in" style="animation-delay: 0.5s; color: var(--text-color);">
Trade Pi Directly with Other Pioneers in a Secure, Peer-to-Peer Environment
</p>
<a href="#p2p" class="btn mt-8">Start Trading</a>
</div>
<!-- P2P Trading Section -->
<section id="p2p" class="py-16 px-4">
<h2 class="text-3xl font-bold text-center mb-8">Peer-to-Peer Trading Hub</h2>
<div class="max-w-4xl mx-auto mb-12">
<p class="text-lg text-center text-gray-600">Connect directly with other Pioneers to trade Pi securely, with built-in escrow and dispute resolution for peace of mind.</p>
</div>
<!-- How It Works -->
<div class="max-w-6xl mx-auto mb-12">
<h3 class="text-2xl font-semibold mb-6">How P2P Trading Works</h3>
<div class="grid grid-cols-1 sm:grid-cols-3 gap-8">
<div class="card">
<img src="https://placehold.co/200x200" alt="Post Offer" class="w-full h-48 object-cover mb-4">
<h4 class="text-xl font-semibold mb-2">1. Post Offer</h4>
<p class="text-gray-600 mb-4">Create a buy or sell offer with your terms.</p>
</div>
<div class="card">
<img src="https://placehold.co/200x200" alt="Match & Trade" class="w-full h-48 object-cover mb-4">
<h4 class="text-xl font-semibold mb-2">2. Match & Trade</h4>
<p class="text-gray-600 mb-4">Connect with a Pioneer and lock Pi in escrow.</p>
</div>
<div class="card">
<img src="https://placehold.co/200x200" alt="Complete Transaction" class="w-full h-48 object-cover mb-4">
<h4 class="text-xl font-semibold mb-2">3. Complete Transaction</h4>
<p class="text-gray-600 mb-4">Confirm delivery, release funds securely.</p>
</div>
</div>
</div>
<!-- Active Offers -->
<div class="max-w-6xl mx-auto mb-12">
<h3 class="text-2xl font-semibold mb-6">Active P2P Offers</h3>
<!-- Filter Bar -->
<div class="flex flex-wrap justify-between items-center mb-8">
<input type="text" id="offer-search" placeholder="Search offers..." class="p-2 border border-gray-300 rounded w-full sm:w-1/2 lg:w-1/3">
<div class="mt-4 sm:mt-0 space-x-2">
<button class="btn" onclick="filterOffers('all')">All</button>
<button class="btn" onclick="filterOffers('buy')">Buy</button>
<button class="btn" onclick="filterOffers('sell')">Sell</button>
</div>
</div>
<div id="offers-grid" class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8">
<div class="card offer-sell">
<h4 class="text-xl font-semibold mb-2">Sell 500 Pi <i class="fas fa-arrow-up text-green-500 ml-2"></i></h4>
<p class="text-gray-600 mb-2">Seller: PioneerA</p>
<p class="text-gray-600 mb-2">Rate: 0.025 USD/Pi</p>
<p class="text-gray-600 mb-4">Payment: Bank Transfer</p>
<a href="#" class="btn w-full">Trade Now</a>
</div>
<div class="card offer-buy">
<h4 class="text-xl font-semibold mb-2">Buy 300 Pi <i class="fas fa-arrow-down text-red-500 ml-2"></i></h4>
<p class="text-gray-600 mb-2">Buyer: PioneerB</p>
<p class="text-gray-600 mb-2">Rate: 0.028 USD/Pi</p>
<p class="text-gray-600 mb-4">Payment: PayPal</p>
<a href="#" class="btn w-full">Trade Now</a>
</div>
<div class="card offer-sell">
<h4 class="text-xl font-semibold mb-2">Sell 1,000 Pi <i class="fas fa-arrow-up text-green-500 ml-2"></i></h4>
<p class="text-gray-600 mb-2">Seller: PioneerC</p>
<p class="text-gray-600 mb-2">Rate: 0.026 USD/Pi</p>
<p class="text-gray-600 mb-4">Payment: Crypto (BTC)</p>
<a href="#" class="btn w-full">Trade Now</a>
</div>
</div>
</div>
<!-- Create Offer Form -->
<div class="max-w-4xl mx-auto mb-12 text-center">
<h3 class="text-2xl font-semibold mb-6">Create Your P2P Offer</h3>
<div class="card p-6 mx-auto max-w-md">
<form id="create-offer-form">
<div class="mb-4">
<label class="block text-left text-gray-700 mb-2" for="trade-type">Trade Type:</label>
<select id="trade-type" class="p-2 border border-gray-300 rounded w-full text-gray-600">
<option value="buy">Buy Pi</option>
<option value="sell">Sell Pi</option>
</select>
</div>
<div class="mb-4">
<label class="block text-left text-gray-700 mb-2" for="amount">Amount (Pi):</label>
<input type="number" id="amount" placeholder="Enter amount" min="1" class="p-2 border border-gray-300 rounded w-full text-gray-600" required>
</div>
<div class="mb-4">
<label class="block text-left text-gray-700 mb-2" for="rate">Rate (USD/Pi):</label>
<input type="number" id="rate" placeholder="Enter rate" step="0.001" min="0.001" class="p-2 border border-gray-300 rounded w-full text-gray-600" required>
</div>
<div class="mb-4">
<label class="block text-left text-gray-700 mb-2" for="payment">Payment Method:</label>
<input type="text" id="payment" placeholder="e.g., PayPal, Bank" class="p-2 border border-gray-300 rounded w-full text-gray-600" required>
</div>
<button type="submit" class="btn w-full">Post Offer</button>
</form>
<p id="form-message" class="mt-4 text-sm hidden"></p>
</div>
</div>
<!-- Fraud Protection -->
<div class="max-w-6xl mx-auto mb-12">
<h3 class="text-2xl font-semibold text-center mb-8">Fraud Protection</h3>
<div class="card p-6 mx-auto max-w-2xl">
<div class="flex items-center mb-4">
<i class="fas fa-shield-alt text-3xl mr-4 text-[var(--primary-color)]"></i>
<h4 class="text-xl font-semibold">Secure Pi Payments</h4>
</div>
<p class="text-gray-600 mb-4">Pi payments are held in escrow until both parties confirm the trade, preventing scams and ensuring your funds are protected.</p>
<a href="#" class="btn">Learn More</a>
</div>
</div>
<!-- Benefits -->
<div class="max-w-4xl mx-auto mb-12">
<h3 class="text-2xl font-semibold text-center mb-8">Why P2P Trading?</h3>
<div class="grid grid-cols-1 sm:grid-cols-3 gap-8">
<div class="card text-center">
<h4 class="text-lg font-semibold mb-2">Direct Trading</h4>
<p class="text-gray-600">No intermediaries, just you and another Pioneer.</p>
</div>
<div class="card text-center">
<h4 class="text-lg font-semibold mb-2">Secure Escrow</h4>
<p class="text-gray-600">Pi held safely until trade is complete.</p>
</div>
<div class="card text-center">
<h4 class="text-lg font-semibold mb-2">Flexible Terms</h4>
<p class="text-gray-600">Set your own rates and payment methods.</p>
</div>
</div>
</div>
<!-- Call to Action -->
<div class="text-center mt-12">
<h3 class="text-2xl font-semibold mb-4">Ready to Trade?</h3>
<p class="text-lg text-gray-600 mb-6 max-w-2xl mx-auto">Join the P2P trading community and start exchanging Pi securely today!</p>
<a href="marketplace.html" class="btn">Explore Marketplace</a>
</div>
</section>
<!-- Footer -->
<footer class="bg-[var(--primary-color)] py-8">
<div class="container mx-auto text-center">
<div class="mb-4">
<a class="text-[var(--text-color)] mx-2 floating-effect" href="https://www.facebook.com/reimaginetruthofficial/" target="_blank"><i class="fab fa-facebook-f"></i></a>
<a class="text-[var(--text-color)] mx-2 floating-effect" href="https://x.com/reimagine_truth" target="_blank"><i class="fab fa-twitter"></i></a>
<a class="text-[var(--text-color)] mx-2 floating-effect" href="https://t.me/TruthWebOfficial" target="_blank"><i class="fab fa-telegram"></i></a>
<a class="text-[var(--text-color)] mx-2 floating-effect" href="https://www.youtube.com/@ReimagineTruth" target="_blank"><i class="fab fa-youtube"></i></a>
<a class="text-[var(--text-color)] mx-2 floating-effect" href="https://github.com/username/TruthWeb" target="_blank"><i class="fab fa-github"></i></a>
</div>
<p class="text-[var(--text-color)] mb-4">© 2025 TruthWeb. All rights reserved.</p>
<div class="text-[var(--text-color)] text-sm">
<a href="about.html" class="mx-2 hover:text-[var(--highlight-color)]">About Us</a> |
<a href="terms.html" class="mx-2 hover:text-[var(--highlight-color)]">Terms & Conditions</a> |
<a href="privacy.html" class="mx-2 hover:text-[var(--highlight-color)]">Privacy Policy</a> |
<a href="contact.html" class="mx-2 hover:text-[var(--highlight-color)]">Contact</a>
</div>
</div>
</footer>
<!-- Scripts -->
<script>
// Sticky Header
window.addEventListener('scroll', function() {
const header = document.querySelector('.sticky-header');
if (window.scrollY > 50) {
header.classList.add('scrolled');
} else {
header.classList.remove('scrolled');
}
});
// Filter Offers
function filterOffers(type) {
const offers = document.querySelectorAll('#offers-grid .card');
offers.forEach(offer => {
if (type === 'all' || offer.classList.contains(`offer-${type}`)) {
offer.style.display = 'block';
} else {
offer.style.display = 'none';
}
});
}
// Search Offers
document.getElementById('offer-search').addEventListener('input', function(e) {
const searchTerm = e.target.value.toLowerCase();
const offers = document.querySelectorAll('#offers-grid .card');
offers.forEach(offer => {
const text = offer.textContent.toLowerCase();
offer.style.display = text.includes(searchTerm) ? 'block' : 'none';
});
});
// Form Validation
document.getElementById('create-offer-form').addEventListener('submit', function(e) {
e.preventDefault();
const amount = document.getElementById('amount');
const rate = document.getElementById('rate');
const payment = document.getElementById('payment');
const message = document.getElementById('form-message');
let isValid = true;
[amount, rate, payment].forEach(input => {
input.classList.remove('error', 'success');
if (!input.value.trim()) {
input.classList.add('error');
isValid = false;
} else {
input.classList.add('success');
}
});
message.classList.remove('hidden');
if (isValid) {
message.textContent = 'Offer posted successfully! (Demo)';
message.style.color = '#00ff00';
setTimeout(() => {
this.reset();
[amount, rate, payment].forEach(input => input.classList.remove('success'));
message.classList.add('hidden');
}, 2000);
} else {
message.textContent = 'Please fill all fields.';
message.style.color = '#ff0000';
}
});
</script>
</body>
</html>