makestx-frontend 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/next.config.js +9 -0
- package/package.json +30 -0
- package/postcss.config.js +6 -0
- package/src/components/NFTCard.tsx +64 -0
- package/src/components/Navbar.tsx +137 -0
- package/src/hooks/useContract.ts +74 -0
- package/src/hooks/useWallet.tsx +75 -0
- package/src/pages/_app.tsx +11 -0
- package/src/pages/_document.tsx +18 -0
- package/src/pages/auto-mint.tsx +286 -0
- package/src/pages/explore.tsx +107 -0
- package/src/pages/index.tsx +241 -0
- package/src/pages/mint.tsx +182 -0
- package/src/pages/multi-mint.tsx +358 -0
- package/src/pages/my-nfts.tsx +55 -0
- package/src/styles/globals.css +264 -0
- package/tailwind.config.js +33 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Share+Tech+Mono&family=Rajdhani:wght@300;400;500;600;700&display=swap');
|
|
2
|
+
|
|
3
|
+
@tailwind base;
|
|
4
|
+
@tailwind components;
|
|
5
|
+
@tailwind utilities;
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
--bg: #030308;
|
|
9
|
+
--surface: #080812;
|
|
10
|
+
--surface2: #0d0d1f;
|
|
11
|
+
--border: #1a1a3a;
|
|
12
|
+
--accent: #00f5ff; /* cyan neon */
|
|
13
|
+
--accent2: #ff0080; /* magenta neon */
|
|
14
|
+
--accent3: #7b00ff; /* purple */
|
|
15
|
+
--neon: #00f5ff;
|
|
16
|
+
--text: #e0e8ff;
|
|
17
|
+
--muted: #4a5080;
|
|
18
|
+
--warning: #ffaa00;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
* { box-sizing: border-box; }
|
|
22
|
+
html { scroll-behavior: smooth; }
|
|
23
|
+
|
|
24
|
+
body {
|
|
25
|
+
background-color: var(--bg);
|
|
26
|
+
color: var(--text);
|
|
27
|
+
font-family: 'Rajdhani', sans-serif;
|
|
28
|
+
min-height: 100vh;
|
|
29
|
+
overflow-x: hidden;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* ── Scrollbar ───────────────────────────────────────── */
|
|
33
|
+
::-webkit-scrollbar { width: 4px; }
|
|
34
|
+
::-webkit-scrollbar-track { background: var(--surface); }
|
|
35
|
+
::-webkit-scrollbar-thumb {
|
|
36
|
+
background: var(--accent);
|
|
37
|
+
border-radius: 2px;
|
|
38
|
+
box-shadow: 0 0 6px var(--accent);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* ── Scan-line overlay ───────────────────────────────── */
|
|
42
|
+
body::after {
|
|
43
|
+
content: '';
|
|
44
|
+
position: fixed;
|
|
45
|
+
top: 0; left: 0;
|
|
46
|
+
width: 100%; height: 100%;
|
|
47
|
+
background: repeating-linear-gradient(
|
|
48
|
+
0deg,
|
|
49
|
+
transparent,
|
|
50
|
+
transparent 2px,
|
|
51
|
+
rgba(0, 245, 255, 0.012) 2px,
|
|
52
|
+
rgba(0, 245, 255, 0.012) 4px
|
|
53
|
+
);
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
z-index: 9999;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* ── Grid bg ─────────────────────────────────────────── */
|
|
59
|
+
.grid-bg {
|
|
60
|
+
background-image:
|
|
61
|
+
linear-gradient(rgba(0, 245, 255, 0.04) 1px, transparent 1px),
|
|
62
|
+
linear-gradient(90deg, rgba(0, 245, 255, 0.04) 1px, transparent 1px),
|
|
63
|
+
linear-gradient(rgba(255, 0, 128, 0.02) 1px, transparent 1px),
|
|
64
|
+
linear-gradient(90deg, rgba(255, 0, 128, 0.02) 1px, transparent 1px);
|
|
65
|
+
background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* ── Typography ──────────────────────────────────────── */
|
|
69
|
+
.font-display { font-family: 'Orbitron', monospace; }
|
|
70
|
+
.font-mono { font-family: 'Share Tech Mono', monospace; }
|
|
71
|
+
|
|
72
|
+
/* ── Gradient text ───────────────────────────────────── */
|
|
73
|
+
.gradient-text {
|
|
74
|
+
background: linear-gradient(90deg, #00f5ff 0%, #ff0080 50%, #7b00ff 100%);
|
|
75
|
+
-webkit-background-clip: text;
|
|
76
|
+
-webkit-text-fill-color: transparent;
|
|
77
|
+
background-clip: text;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.gradient-text-cyan {
|
|
81
|
+
background: linear-gradient(90deg, #00f5ff, #00aaff);
|
|
82
|
+
-webkit-background-clip: text;
|
|
83
|
+
-webkit-text-fill-color: transparent;
|
|
84
|
+
background-clip: text;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* ── Glow ────────────────────────────────────────────── */
|
|
88
|
+
.glow-cyan { box-shadow: 0 0 15px rgba(0,245,255,0.4), 0 0 40px rgba(0,245,255,0.1); }
|
|
89
|
+
.glow-magenta { box-shadow: 0 0 15px rgba(255,0,128,0.4), 0 0 40px rgba(255,0,128,0.1); }
|
|
90
|
+
.glow-purple { box-shadow: 0 0 15px rgba(123,0,255,0.4), 0 0 40px rgba(123,0,255,0.1); }
|
|
91
|
+
|
|
92
|
+
.text-glow-cyan { text-shadow: 0 0 10px rgba(0,245,255,0.8), 0 0 30px rgba(0,245,255,0.4); }
|
|
93
|
+
.text-glow-magenta { text-shadow: 0 0 10px rgba(255,0,128,0.8), 0 0 30px rgba(255,0,128,0.4); }
|
|
94
|
+
|
|
95
|
+
/* ── Buttons ─────────────────────────────────────────── */
|
|
96
|
+
.btn-primary {
|
|
97
|
+
background: transparent;
|
|
98
|
+
border: 1px solid var(--accent);
|
|
99
|
+
color: var(--accent);
|
|
100
|
+
font-family: 'Orbitron', monospace;
|
|
101
|
+
font-size: 12px;
|
|
102
|
+
letter-spacing: 0.1em;
|
|
103
|
+
text-transform: uppercase;
|
|
104
|
+
transition: all 0.2s;
|
|
105
|
+
position: relative;
|
|
106
|
+
overflow: hidden;
|
|
107
|
+
}
|
|
108
|
+
.btn-primary::before {
|
|
109
|
+
content: '';
|
|
110
|
+
position: absolute;
|
|
111
|
+
inset: 0;
|
|
112
|
+
background: var(--accent);
|
|
113
|
+
opacity: 0;
|
|
114
|
+
transition: opacity 0.2s;
|
|
115
|
+
}
|
|
116
|
+
.btn-primary:hover {
|
|
117
|
+
color: #000;
|
|
118
|
+
box-shadow: 0 0 20px rgba(0,245,255,0.6), 0 0 60px rgba(0,245,255,0.2);
|
|
119
|
+
}
|
|
120
|
+
.btn-primary:hover::before { opacity: 1; }
|
|
121
|
+
.btn-primary > * { position: relative; z-index: 1; }
|
|
122
|
+
.btn-primary span { position: relative; z-index: 1; }
|
|
123
|
+
|
|
124
|
+
.btn-magenta {
|
|
125
|
+
background: transparent;
|
|
126
|
+
border: 1px solid var(--accent2);
|
|
127
|
+
color: var(--accent2);
|
|
128
|
+
font-family: 'Orbitron', monospace;
|
|
129
|
+
font-size: 12px;
|
|
130
|
+
letter-spacing: 0.1em;
|
|
131
|
+
text-transform: uppercase;
|
|
132
|
+
transition: all 0.2s;
|
|
133
|
+
position: relative;
|
|
134
|
+
overflow: hidden;
|
|
135
|
+
}
|
|
136
|
+
.btn-magenta:hover {
|
|
137
|
+
color: #fff;
|
|
138
|
+
box-shadow: 0 0 20px rgba(255,0,128,0.6);
|
|
139
|
+
background: rgba(255,0,128,0.15);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.btn-outline {
|
|
143
|
+
background: transparent;
|
|
144
|
+
border: 1px solid var(--border);
|
|
145
|
+
color: var(--muted);
|
|
146
|
+
transition: all 0.2s;
|
|
147
|
+
}
|
|
148
|
+
.btn-outline:hover {
|
|
149
|
+
border-color: var(--accent);
|
|
150
|
+
color: var(--accent);
|
|
151
|
+
background: rgba(0,245,255,0.05);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* ── Cards ───────────────────────────────────────────── */
|
|
155
|
+
.card-cyber {
|
|
156
|
+
background: var(--surface);
|
|
157
|
+
border: 1px solid var(--border);
|
|
158
|
+
position: relative;
|
|
159
|
+
}
|
|
160
|
+
.card-cyber::before {
|
|
161
|
+
content: '';
|
|
162
|
+
position: absolute;
|
|
163
|
+
top: 0; left: 0;
|
|
164
|
+
width: 40px; height: 2px;
|
|
165
|
+
background: var(--accent);
|
|
166
|
+
box-shadow: 0 0 8px var(--accent);
|
|
167
|
+
}
|
|
168
|
+
.card-cyber::after {
|
|
169
|
+
content: '';
|
|
170
|
+
position: absolute;
|
|
171
|
+
bottom: 0; right: 0;
|
|
172
|
+
width: 40px; height: 2px;
|
|
173
|
+
background: var(--accent2);
|
|
174
|
+
box-shadow: 0 0 8px var(--accent2);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.card-dark {
|
|
178
|
+
background: var(--surface);
|
|
179
|
+
border: 1px solid var(--border);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* ── NFT Card ────────────────────────────────────────── */
|
|
183
|
+
.nft-card {
|
|
184
|
+
background: var(--surface);
|
|
185
|
+
border: 1px solid var(--border);
|
|
186
|
+
transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
|
|
187
|
+
}
|
|
188
|
+
.nft-card:hover {
|
|
189
|
+
border-color: var(--accent);
|
|
190
|
+
transform: translateY(-6px);
|
|
191
|
+
box-shadow: 0 0 20px rgba(0,245,255,0.2), 0 20px 40px rgba(0,0,0,0.6);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/* ── Hex badge ───────────────────────────────────────── */
|
|
195
|
+
.tag {
|
|
196
|
+
display: inline-flex;
|
|
197
|
+
align-items: center;
|
|
198
|
+
padding: 2px 10px;
|
|
199
|
+
border-radius: 0;
|
|
200
|
+
font-family: 'Share Tech Mono', monospace;
|
|
201
|
+
font-size: 10px;
|
|
202
|
+
letter-spacing: 0.08em;
|
|
203
|
+
text-transform: uppercase;
|
|
204
|
+
clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
|
|
205
|
+
}
|
|
206
|
+
.tag-cyan {
|
|
207
|
+
background: rgba(0,245,255,0.15);
|
|
208
|
+
color: var(--accent);
|
|
209
|
+
border: 1px solid rgba(0,245,255,0.3);
|
|
210
|
+
}
|
|
211
|
+
.tag-magenta {
|
|
212
|
+
background: rgba(255,0,128,0.15);
|
|
213
|
+
color: var(--accent2);
|
|
214
|
+
border: 1px solid rgba(255,0,128,0.3);
|
|
215
|
+
}
|
|
216
|
+
.tag-purple {
|
|
217
|
+
background: rgba(123,0,255,0.15);
|
|
218
|
+
color: #a855f7;
|
|
219
|
+
border: 1px solid rgba(123,0,255,0.3);
|
|
220
|
+
}
|
|
221
|
+
.tag-green {
|
|
222
|
+
background: rgba(0,255,128,0.15);
|
|
223
|
+
color: #00ff80;
|
|
224
|
+
border: 1px solid rgba(0,255,128,0.3);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* ── Shimmer ─────────────────────────────────────────── */
|
|
228
|
+
.shimmer {
|
|
229
|
+
background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
|
|
230
|
+
background-size: 200% 100%;
|
|
231
|
+
animation: shimmer 1.5s infinite;
|
|
232
|
+
}
|
|
233
|
+
@keyframes shimmer {
|
|
234
|
+
0% { background-position: -200% 0; }
|
|
235
|
+
100% { background-position: 200% 0; }
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* ── Flicker animation ───────────────────────────────── */
|
|
239
|
+
@keyframes flicker {
|
|
240
|
+
0%, 100% { opacity: 1; }
|
|
241
|
+
92% { opacity: 1; }
|
|
242
|
+
93% { opacity: 0.8; }
|
|
243
|
+
94% { opacity: 1; }
|
|
244
|
+
96% { opacity: 0.6; }
|
|
245
|
+
97% { opacity: 1; }
|
|
246
|
+
}
|
|
247
|
+
.flicker { animation: flicker 4s infinite; }
|
|
248
|
+
|
|
249
|
+
/* ── Pulse neon ──────────────────────────────────────── */
|
|
250
|
+
@keyframes neon-pulse {
|
|
251
|
+
0%, 100% { box-shadow: 0 0 5px var(--accent), 0 0 20px rgba(0,245,255,0.3); }
|
|
252
|
+
50% { box-shadow: 0 0 20px var(--accent), 0 0 60px rgba(0,245,255,0.5); }
|
|
253
|
+
}
|
|
254
|
+
.neon-pulse { animation: neon-pulse 2s ease-in-out infinite; }
|
|
255
|
+
|
|
256
|
+
/* ── Tailwind aliases (ps- prefix kept for compatibility) */
|
|
257
|
+
.bg-ps-bg { background-color: var(--bg); }
|
|
258
|
+
.bg-ps-surface { background-color: var(--surface); }
|
|
259
|
+
.border-ps-border { border-color: var(--border); }
|
|
260
|
+
.text-ps-text { color: var(--text); }
|
|
261
|
+
.text-ps-muted { color: var(--muted); }
|
|
262
|
+
.text-ps-accent { color: var(--accent); }
|
|
263
|
+
.text-ps-accent2 { color: var(--accent2); }
|
|
264
|
+
.text-ps-neon { color: var(--neon); }
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** @type {import('tailwindcss').Config} */
|
|
2
|
+
module.exports = {
|
|
3
|
+
content: ['./src/**/*.{js,ts,jsx,tsx}'],
|
|
4
|
+
theme: {
|
|
5
|
+
extend: {
|
|
6
|
+
colors: {
|
|
7
|
+
'ms-bg': '#030308',
|
|
8
|
+
'ms-surface': '#080812',
|
|
9
|
+
'ms-border': '#1a1a3a',
|
|
10
|
+
'ms-cyan': '#00f5ff',
|
|
11
|
+
'ms-magenta': '#ff0080',
|
|
12
|
+
'ms-purple': '#7b00ff',
|
|
13
|
+
'ms-text': '#e0e8ff',
|
|
14
|
+
'ms-muted': '#4a5080',
|
|
15
|
+
// ps- aliases for compat
|
|
16
|
+
'ps-bg': '#030308',
|
|
17
|
+
'ps-surface': '#080812',
|
|
18
|
+
'ps-border': '#1a1a3a',
|
|
19
|
+
'ps-accent': '#00f5ff',
|
|
20
|
+
'ps-accent2': '#ff0080',
|
|
21
|
+
'ps-neon': '#00f5ff',
|
|
22
|
+
'ps-text': '#e0e8ff',
|
|
23
|
+
'ps-muted': '#4a5080',
|
|
24
|
+
},
|
|
25
|
+
fontFamily: {
|
|
26
|
+
display: ['Orbitron', 'monospace'],
|
|
27
|
+
mono: ['Share Tech Mono', 'monospace'],
|
|
28
|
+
sans: ['Rajdhani', 'sans-serif'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
plugins: [],
|
|
33
|
+
};
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2017",
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"module": "esnext",
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"jsx": "preserve",
|
|
15
|
+
"incremental": true,
|
|
16
|
+
"plugins": [{ "name": "next" }],
|
|
17
|
+
"paths": { "@/*": ["./src/*"] }
|
|
18
|
+
},
|
|
19
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
20
|
+
"exclude": ["node_modules"]
|
|
21
|
+
}
|