-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
169 lines (163 loc) · 6 KB
/
index.html
File metadata and controls
169 lines (163 loc) · 6 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
<!DOCTYPE html>
<html>
<head>
<title>Nexus Emoji Rain</title>
<script src="https://cdn.jsdelivr.net/npm/web3@1.7.5/dist/web3.min.js"></script>
<style>
body {
background: radial-gradient(ellipse at center, #1a237e 0%, #0a0a1a 100%);
color: #fff;
font-family: 'Segoe UI', Arial, sans-serif;
text-align: center;
margin: 0;
height: 100vh;
overflow: hidden;
}
#container {
margin-top: 6vh;
}
#nexusLogo {
display: block;
margin: 0 auto 18px auto;
max-width: 260px;
width: 60vw;
height: auto;
padding-top: 12px;
}
#connectWallet {
padding: 12px 28px;
font-size: 1.1em;
border: none;
border-radius: 8px;
background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
color: #fff;
margin: 10px 0 0 0;
cursor: pointer;
box-shadow: 0 4px 16px #0006;
transition: background 0.2s;
}
#connectWallet:hover {
background: linear-gradient(90deg, #0072ff 0%, #00c6ff 100%);
}
#wallet {
margin: 8px 0 0 0;
font-size: 1em;
color: #b3e5fc;
}
#timer {
font-size: 2em;
margin: 10px 0;
}
#score {
font-size: 2.2em;
margin: 10px 0 20px 0;
color: #00e6ff;
}
#message {
font-size: 1.3em;
margin: 20px 0 10px 0;
min-height: 2.5em;
}
#restartBtn {
padding: 14px 36px;
font-size: 1.2em;
border: none;
border-radius: 8px;
background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
color: #fff;
margin: 0 0 24px 0;
cursor: pointer;
box-shadow: 0 4px 16px #0006;
transition: background 0.2s;
display: block;
margin-left: auto;
margin-right: auto;
}
#restartBtn:hover {
background: linear-gradient(90deg, #0072ff 0%, #00c6ff 100%);
}
#gameArea {
position: relative;
width: 100vw;
height: 60vh;
margin: 0 auto;
overflow: hidden;
background: rgba(0,0,0,0.08);
border-radius: 18px;
box-shadow: 0 0 32px #00e6ff33;
}
.emoji {
position: absolute;
font-size: 2.5em;
cursor: pointer;
user-select: none;
transition: transform 0.1s;
filter: drop-shadow(0 0 8px #00e6ff99);
}
.emoji:active {
transform: scale(1.2);
filter: drop-shadow(0 0 16px #fff);
}
/* Social Links Styles */
.social-links {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 20px;
z-index: 1000;
}
.social-link {
color: #b3e5fc;
text-decoration: none;
font-size: 1.1em;
padding: 8px 16px;
border-radius: 6px;
background: rgba(0, 198, 255, 0.1);
border: 1px solid rgba(0, 198, 255, 0.3);
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
}
.social-link:hover {
background: rgba(0, 198, 255, 0.2);
border-color: rgba(0, 198, 255, 0.5);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 198, 255, 0.2);
}
.social-link img {
width: 20px;
height: 20px;
filter: brightness(0) invert(1);
}
</style>
</head>
<body>
<div id="container">
<img id="nexusLogo" src="nexus_wordmark-only_white.png" alt="Nexus Logo">
<h1>Nexus Emoji Rain</h1>
<button id="connectWallet">Connect to Nexus</button>
<div id="wallet">Wallet: Not connected</div>
<div id="timer">30.0</div>
<div id="score">0</div>
<div id="message"></div>
<button id="restartBtn" style="display:none;">Play Again</button>
<div id="gameArea"></div>
</div>
<audio id="popSound" src="https://pixabay.com/sound-effects/pop-91931" preload="auto"></audio>
<!-- Social Links -->
<div class="social-links">
<a href="https://x.com/NexusLabs" target="_blank" class="social-link">
<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTE4LjI0NCAyLjI1aDMuMTA4bC0xLjM1IDUuNDY4TDcuNDc4IDE2LjM4OGgtNC4xNmw0LjU4My0yLjY4Mi0xLjA4My00LjI1NS0yLjg1MSAxLjY4NEwzLjY2OCAyLjI1aDcuMTY0bC0yLjMxOSA5LjUyMkwyMC4yNDYgMi4yNXptLTEuOTUxIDcuMjkzTDkuNDc4IDI0LjI1aC0yLjg1Mmw4LjM2NS0xNC41ODR6Ii8+PC9zdmc+" alt="X (Twitter)">
Follow on X
</a>
<a href="https://nexus.xyz/" target="_blank" class="social-link">
<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTEyIDJDNi40NzcgMiAyIDYuNDc3IDIgMTJzNC40NzcgMTAgMTAgMTAgMTAtNC40NzcgMTAtMTBTMTcuNTIzIDIgMTIgMnptMCAxOGMtNC40MTggMC04LTMuNTgyLTgtOHMzLjU4Mi04IDgtOCA4IDMuNTgyIDggOC0zLjU4MiA4LTggOHoiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMTIgNmMtMy4xNDQgMC02IDIuNjg2LTYgNnMyLjY4NiA2IDYgNiA2LTIuNjg2IDYtNi0yLjY4Ni02LTYtNnptMCAxMGMtMi4yMDkgMC00LTEuNzkxLTQtNHMxLjc5MS00IDQtNCA0IDEuNzkxIDQgNC0xLjc5MSA0LTQgNHoiLz48L3N2Zz4=" alt="Website">
Visit Website
</a>
</div>
<script src="emoji-rain.js"></script>
</body>
</html>