Spaces:
Running

File size: 15,140 Bytes
3f5825d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
399a9e4
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Mintory - Solana Meme Coin Launchpad</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
    <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/@solana/web3.js@1.73.0/lib/index.iife.min.js"></script>
    <style>
        .gradient-bg {
            background: linear-gradient(135deg, #9c27b0 0%, #4caf50 50%, #f5f5f5 100%);
        }
        body {
            border-left: 1px solid #e5e7eb;
            border-right: 1px solid #e5e7eb;
            background-color: #f5f5f5;
        }
        .gradient-text {
            background: linear-gradient(135deg, #9c27b0 0%, #4caf50 50%, #ffffff 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .token-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .connect-btn {
            transition: all 0.3s ease;
        }
        .connect-btn:hover {
            transform: scale(1.05);
        }
    </style>
</head>
<body class="bg-gray-100 text-gray-900 min-h-screen">
    <!-- Animated Background -->
    <div id="vanta-bg" class="fixed inset-0 -z-10 opacity-10"></div>

    <!-- Navigation -->
    <nav class="border-b border-gray-200 py-4 bg-white">
        <div class="container mx-auto px-4 flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <i data-feather="zap" class="text-green-500"></i>
                <h1 class="text-2xl font-bold bg-clip-text text-transparent gradient-bg">Mintory</h1>
            </div>
            <div class="flex items-center space-x-4">
                <a href="https://twitter.com/mintory" target="_blank" class="hover:text-green-600 transition">
                    <i data-feather="twitter" class="w-5 h-5"></i>
                </a>
                <a href="https://t.me/mintory" target="_blank" class="hover:text-green-600 transition">
                    <i data-feather="send" class="w-5 h-5"></i>
                </a>
                <button id="connectWallet" class="connect-btn bg-green-500 hover:bg-green-600 px-4 py-2 rounded-lg font-medium flex items-center text-white">
                    <i data-feather="wallet" class="mr-2"></i>
                    Connect Wallet
                </button>
            </div>
        </div>
    </nav>

    <!-- Hero Section -->
    <section class="py-20">
        <div class="container mx-auto px-4 text-center">
            <h1 class="text-5xl font-bold mb-6" data-aos="fade-up">Launch Your <span class="gradient-text">Meme Coin</span> on Solana</h1>
            <p class="text-xl text-gray-600 mb-10 max-w-2xl mx-auto" data-aos="fade-up" data-aos-delay="100">
                Mintory is the easiest way to create and launch your own meme coin on Solana in minutes.
            </p>
            <div class="flex justify-center" data-aos="fade-up" data-aos-delay="200">
                <button class="bg-green-500 hover:bg-green-600 px-6 py-3 rounded-lg font-medium text-white">
                    Create Token
                </button>
            </div>
        </div>
    </section>

    <!-- Token Creation Form -->
    <section class="py-16 bg-white backdrop-blur-lg rounded-none border-t border-b border-gray-200" data-aos="fade-up">
        <div class="container mx-auto px-4">
            <h2 class="text-3xl font-bold mb-8 text-center">Create Your Token</h2>
            <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                <div>
                    <label class="block text-gray-600 mb-2">Token Name</label>
                    <input type="text" class="w-full bg-white border border-gray-200 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-green-500" placeholder="e.g. DogeCoin">
                </div>
                <div>
                    <label class="block text-gray-600 mb-2">Token Symbol</label>
                    <input type="text" class="w-full bg-white border border-gray-200 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-green-500" placeholder="e.g. DOGE">
                </div>
                <div>
                    <label class="block text-gray-600 mb-2">Total Supply</label>
                    <input type="number" class="w-full bg-white border border-gray-200 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-green-500" placeholder="e.g. 1000000">
                </div>
                <div>
                    <label class="block text-gray-600 mb-2">Decimals</label>
                    <input type="number" value="9" class="w-full bg-white border border-gray-200 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-green-500">
                </div>
                <div class="md:col-span-2">
                    <label class="block text-gray-300 mb-2">Token Logo</label>
                    <div class="flex items-center justify-center w-full">
                        <label class="flex flex-col items-center justify-center w-full h-32 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-white hover:bg-gray-50">
                            <div class="flex flex-col items-center justify-center pt-5 pb-6">
                                <i data-feather="upload" class="w-8 h-8 mb-3 text-gray-400"></i>
                                <p class="mb-2 text-sm text-gray-400">Click to upload logo</p>
                                <p class="text-xs text-gray-500">PNG, JPG (max. 2MB)</p>
                            </div>
                            <input id="token-logo" type="file" class="hidden" accept="image/*" />
                        </label>
                    </div>
                </div>
                <div class="md:col-span-2">
                    <label class="block text-gray-300 mb-2">Token Banner</label>
                    <div class="flex items-center justify-center w-full">
                        <label class="flex flex-col items-center justify-center w-full h-32 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-white hover:bg-gray-50">
                            <div class="flex flex-col items-center justify-center pt-5 pb-6">
                                <i data-feather="image" class="w-8 h-8 mb-3 text-gray-400"></i>
                                <p class="mb-2 text-sm text-gray-400">Click to upload banner</p>
                                <p class="text-xs text-gray-500">PNG, JPG (max. 5MB)</p>
                            </div>
                            <input id="token-banner" type="file" class="hidden" accept="image/*" />
                        </label>
                    </div>
                </div>
                <div>
                    <label class="block text-gray-600 mb-2">Twitter URL</label>
                    <input type="text" class="w-full bg-white border border-gray-200 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-green-500" placeholder="https://twitter.com/yourcoin">
                </div>
                <div>
                    <label class="block text-gray-600 mb-2">Telegram URL</label>
                    <input type="text" class="w-full bg-white border border-gray-200 rounded-lg px-4 py-3 focus:outline-none focus:ring-2 focus:ring-green-500" placeholder="https://t.me/yourcoin">
                </div>
            </div>
            <div class="mt-8 text-center">
                <button class="gradient-bg hover:opacity-90 px-8 py-3 rounded-lg font-medium text-white">
                    Mint Token (0.25 SOL)
                </button>
            </div>
        </div>
    </section>

    <!-- DexScreener Widget -->
    <section class="py-16 bg-white border-t border-b border-gray-200">
        <div class="container mx-auto px-4">
            <h2 class="text-3xl font-bold mb-8 text-center">Live Market Data</h2>
            <div class="bg-white rounded-none p-6 border border-gray-200">
                <iframe 
                    src="https://dexscreener.com/solana/?embed=1&theme=dark" 
                    width="100%" 
                    height="500" 
                    frameborder="0"
                    class="rounded-lg"
                    title="DexScreener"
                    allowtransparency="true"
                ></iframe>
            </div>
        </div>
    </section>

    <script>
        // DexScreener API integration
        async function fetchTopMemeCoins() {
            try {
                const response = await fetch('https://api.dexscreener.com/latest/dex/tokens/solana');
                const data = await response.json();
                console.log('Top meme coins:', data);
                // Process and display the data as needed
            } catch (error) {
                console.error('Error fetching DexScreener data:', error);
            }
        }

        // Call the function when page loads
        window.addEventListener('load', () => {
            fetchTopMemeCoins();
            // Initialize other components...
        });
    </script>

    <!-- Features -->
    <section class="py-20 bg-white border-t border-b border-gray-200">
        <div class="container mx-auto px-4">
            <h2 class="text-3xl font-bold mb-16 text-center">Why Choose Mintory?</h2>
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div class="text-center" data-aos="fade-up">
                    <div class="gradient-bg p-4 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4">
                        <i data-feather="zap" class="text-white w-8 h-8"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">Instant Launch</h3>
                    <p class="text-gray-600">Create and launch your token in minutes with just a few clicks.</p>
                </div>
                <div class="text-center" data-aos="fade-up" data-aos-delay="100">
                    <div class="gradient-bg p-4 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4">
                        <i data-feather="shield" class="text-white w-8 h-8"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">Secure</h3>
                    <p class="text-gray-600">Built on Solana blockchain with audited smart contracts.</p>
                </div>
                <div class="text-center" data-aos="fade-up" data-aos-delay="200">
                    <div class="gradient-bg p-4 rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-4">
                        <i data-feather="trending-up" class="text-white w-8 h-8"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">Liquidity</h3>
                    <p class="text-gray-600">Automatic liquidity pool creation for seamless trading.</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="py-10 border-t border-b border-gray-200 bg-white">
        <div class="container mx-auto px-4">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="flex items-center space-x-2 mb-4 md:mb-0">
                    <i data-feather="zap" class="text-green-500"></i>
                    <h1 class="text-xl font-bold">Mintory</h1>
                </div>
                <div class="flex space-x-6">
                    <a href="https://twitter.com/mintory" target="_blank" class="hover:text-green-600 transition flex items-center">
                        <i data-feather="twitter" class="w-5 h-5 mr-1"></i> Twitter
                    </a>
                    <a href="https://t.me/mintory" target="_blank" class="hover:text-green-600 transition flex items-center">
                        <i data-feather="send" class="w-5 h-5 mr-1"></i> Telegram
                    </a>
                </div>
            </div>
            <div class="mt-8 text-center text-gray-400 text-sm">
                © 2025 Mintory. All rights reserved.
            </div>
        </div>
    </footer>

    <script>
        // Image preview handlers
        document.getElementById('token-logo').addEventListener('change', function(e) {
            const file = e.target.files[0];
            if (file) {
                const reader = new FileReader();
                reader.onload = function(event) {
                    // You can store the base64 image or process it further
                    console.log('Logo uploaded:', event.target.result);
                };
                reader.readAsDataURL(file);
            }
        });

        document.getElementById('token-banner').addEventListener('change', function(e) {
            const file = e.target.files[0];
            if (file) {
                const reader = new FileReader();
                reader.onload = function(event) {
                    // You can store the base64 image or process it further
                    console.log('Banner uploaded:', event.target.result);
                };
                reader.readAsDataURL(file);
            }
        });

        // Initialize animations
        AOS.init({
            duration: 800,
            easing: 'ease-in-out',
            once: true
        });

        // Initialize feather icons
        feather.replace();

        // Wallet connection
        document.getElementById('connectWallet').addEventListener('click', async () => {
            try {
                if (window.solana && window.solana.isPhantom) {
                    const response = await window.solana.connect();
                    const publicKey = response.publicKey.toString();
                    console.log('Connected to Phantom wallet:', publicKey);
                    document.getElementById('connectWallet').innerHTML = `<i data-feather="user" class="mr-2"></i>${publicKey.slice(0, 4)}...${publicKey.slice(-4)}`;
                    feather.replace();
                } else {
                    window.open('https://phantom.app/', '_blank');
                }
            } catch (err) {
                console.error('Error connecting wallet:', err);
            }
        });

        // Vanta.js background
        VANTA.GLOBE({
            el: "#vanta-bg",
            mouseControls: true,
            touchControls: true,
            gyroControls: false,
            minHeight: 200.00,
            minWidth: 200.00,
            scale: 1.00,
            scaleMobile: 1.00,
            color: 0x4caf50,
            backgroundColor: 0xffffff,
            size: 0.8
        });
    </script>
</body>
</html>