-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
407 lines (357 loc) · 11.9 KB
/
index.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RUPE - The Meme Coin</title>
<style>
/* General styling for iframes */
iframe {
border: none;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
border-radius: 10px;
margin-top: 20px;
width: 100%;
height: 600px;
}
@media (max-width: 768px) {
iframe {
margin-top: 10px;
}
}
body {
font-family: 'Comic Sans MS', cursive, sans-serif;
margin: 0;
padding: 0;
background-color: #e0f7fa;
color: black;
}
header {
background-color: #00695c;
color: white;
padding: 1rem 0;
text-align: center;
}
header h1 {
margin: 0;
}
nav ul {
list-style-type: none;
padding: 0;
}
nav ul li {
display: inline;
margin: 0 1rem;
}
nav ul li a, nav ul li button {
color: white;
text-decoration: none;
font-size: 1.2rem;
border: none;
background: none;
cursor: pointer;
}
nav ul li button {
background-color: #0288d1;
padding: 0.5rem 1rem;
border-radius: 5px;
transition: background-color 0.3s, transform 0.3s;
}
nav ul li button:hover {
background-color: #0277bd;
transform: scale(1.05);
}
main {
padding: 2rem;
text-align: center;
}
.hero {
background-color: #4fc3f7;
padding: 2rem;
border-radius: 10px;
margin: 2rem auto;
max-width: 800px;
animation: fadeIn 2s ease-in;
}
.hero h2 {
margin-top: 0;
}
.hero img {
max-width: 100%;
height: auto;
transition: transform 0.3s;
}
.hero img:hover {
transform: scale(1.1);
}
.section {
padding: 1rem;
border-radius: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin: 2rem auto;
max-width: 600px;
text-align: left;
animation: fadeInUp 1s ease-in;
}
.section h2 {
margin-top: 0;
}
.account-section {
background-color: #e0f7fa;
}
.about {
background-color: #ffeb3b;
}
.features {
background-color: #c8e6c9;
}
.roadmap {
background-color: #ffccbc;
}
.staking {
background-color: #b3e5fc;
}
.team {
background-color: #d1c4e9;
}
.faq {
background-color: #ffccbc;
}
footer {
background-color: #00695c;
color: white;
text-align: center;
padding: 1rem 0;
}
footer .social-media a {
color: white;
text-decoration: none;
margin: 0 1rem;
transition: color 0.3s;
}
footer .social-media a:hover {
color: #ff9800;
}
/* Dark Mode Styles */
body.dark-mode {
background-color: #121212;
color: white;
}
header.dark-mode {
background-color: #1e1e1e;
}
footer.dark-mode {
background-color: #1e1e1e;
}
button.dark-mode {
background-color: #333;
color: white;
}
button.dark-mode:hover {
background-color: #444;
}
.section.dark-mode {
background-color: #263238;
}
.about.dark-mode {
background-color: #fdd835;
}
.features.dark-mode {
background-color: #81c784;
}
.roadmap.dark-mode {
background-color: #ffab91;
}
.staking.dark-mode {
background-color: #4fc3f7;
}
.team.dark-mode {
background-color: #9575cd;
}
.faq.dark-mode {
background-color: #ffab91;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 768px) {
header h1 {
font-size: 1.5rem;
}
nav ul li {
display: block;
margin: 0.5rem 0;
}
main {
padding: 1rem;
}
.hero {
padding: 1rem;
margin: 1rem auto;
}
.section {
padding: 1rem;
margin: 1rem auto;
}
}
</style>
</head>
<body>
<header>
<h1>RUPE - The Meme Coin</h1>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#features">Features</a></li>
<li><a href="#roadmap">Roadmap</a></li>
<li><a href="#staking">Staking</a></li>
<li><a href="#team">Team</a></li>
<li><a href="#faq">FAQ</a></li>
<li><button id="connectButton" aria-label="Connect wallet">Connect MetaMask</button></li>
<li><button id="darkModeToggle" aria-label="Dark Mode">Toggle Dark Mode</button></li>
</ul>
</nav>
</header>
<main>
<section class="hero">
<h2>Welcome to RUPE</h2>
<p>The funniest and most rewarding meme coin on the polygon blockchain.</p>
<img src="rupe.png" alt="RUPE Meme Coin" />
</section>
<section class="section account-section">
<h2>Your Account</h2>
<div id="account">Not connected</div>
<div id="balance"></div>
</section>
<section id="about" class="section about">
<h2>About RUPE</h2>
<p>RUPE is a meme coin with a mission to bring joy and value to the crypto community.</p>
</section>
<section id="features" class="section features">
<h2>Features</h2>
<ul>
<li>Decentralized</li>
<li>Community-driven</li>
<li>Secure and Transparent</li>
</ul>
</section>
<section id="roadmap" class="section roadmap">
<h2>Roadmap</h2>
<p>Our journey to revolutionize the meme coin space is just beginning. Stay tuned for updates!</p>
</section>
<section id="staking" class="section staking">
<h2>Staking</h2>
<p>Stake your RUPE tokens and earn rewards!</p>
<form id="stakingForm" aria-labelledby="stakeAmount">
<label for="stakeAmount">Amount to Stake:</label>
<input type="number" id="stakeAmount" name="stakeAmount" required aria-required="true">
<button type="submit">Stake</button>
</form>
<div id="stakeMessage" role="alert"></div>
</section>
<section id="team" class="section team">
<h2>Team</h2>
<p>Meet the team behind RUPE.</p>
<!-- Team members' details can be added here -->
</section>
<section id="faq" class="section faq">
<h2>FAQ</h2>
<p>Find answers to common questions.</p>
<!-- FAQ details can be added here -->
</section>
<section id="uniswap" class="section uniswap">
<h2>Buy/Sell RUPE on Uniswap</h2>
<iframe src="https://app.uniswap.org/#/swap?outputCurrency=YOUR_TOKEN_ADDRESS" id="uniswap-iframe"></iframe>
</section>
</main>
<footer>
<p>© 2024 RUPE. All rights reserved.</p>
<div class="social-media">
<a href="https://twitter.com/yourprofile" target="_blank" aria-label="Twitter">Twitter</a>
<a href="https://discord.com/yourprofile" target="_blank" aria-label="Discord">Discord</a>
<a href="https://telegram.org/yourprofile" target="_blank" aria-label="Telegram">Telegram</a>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/web3/dist/web3.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const connectButton = document.getElementById('connectButton');
const accountDiv = document.getElementById('account');
const balanceDiv = document.getElementById('balance');
const darkModeToggle = document.getElementById('darkModeToggle');
const body = document.body;
let account;
let web3;
// MetaMask connection
connectButton.addEventListener('click', async () => {
connectButton.textContent = 'Connecting...';
if (typeof window.ethereum !== 'undefined') {
web3 = new Web3(window.ethereum);
try {
await window.ethereum.request({ method: 'eth_requestAccounts' });
const accounts = await web3.eth.getAccounts();
account = accounts[0];
accountDiv.textContent = `Connected: ${account}`;
const balance = await web3.eth.getBalance(account);
balanceDiv.textContent = `Balance: ${web3.utils.fromWei(balance, 'ether')} ETH`;
} catch (error) {
console.error(error);
} finally {
connectButton.textContent = 'Connect MetaMask';
}
} else {
alert('MetaMask not detected');
connectButton.textContent = 'Connect MetaMask';
}
});
// Dark mode toggle
darkModeToggle.addEventListener('click', () => {
body.classList.toggle('dark-mode');
document.querySelectorAll('header, footer, button, .section').forEach(el => {
el.classList.toggle('dark-mode');
});
});
// Staking form submission
const stakingForm = document.getElementById('stakingForm');
const stakeMessage = document.getElementById('stakeMessage');
stakingForm.addEventListener('submit', async (event) => {
event.preventDefault();
const stakeAmount = document.getElementById('stakeAmount').value;
if (stakeAmount <= 0) {
stakeMessage.textContent = 'Please enter a valid amount to stake.';
return;
}
if (account && web3) {
try {
// Placeholder for staking logic
stakeMessage.textContent = `You have staked ${stakeAmount} RUPE tokens.`;
// Reset form
stakingForm.reset();
} catch (error) {
console.error(error);
stakeMessage.textContent = 'Staking failed. Please try again.';
}
} else {
stakeMessage.textContent = 'Please connect your wallet first.';
}
});
});
</script>
</body>
</html>