File size: 21,589 Bytes
f128c36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI Tokenomics Advisor</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        .gradient-bg {
            background: linear-gradient(135deg, #6e8efb, #a777e3);
        }
        .token-card {
            transition: all 0.3s ease;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        .token-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }
        .chat-container {
            height: 500px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: #a777e3 #f1f1f1;
        }
        .chat-container::-webkit-scrollbar {
            width: 6px;
        }
        .chat-container::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
        .chat-container::-webkit-scrollbar-thumb {
            background-color: #a777e3;
            border-radius: 20px;
        }
        .pulse {
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0% {
                opacity: 1;
            }
            50% {
                opacity: 0.5;
            }
            100% {
                opacity: 1;
            }
        }
    </style>
</head>
<body class="bg-gray-100 font-sans">
    <div class="min-h-screen flex flex-col">
        <!-- Header -->
        <header class="gradient-bg text-white py-6 px-4 shadow-lg">
            <div class="container mx-auto flex justify-between items-center">
                <div class="flex items-center space-x-3">
                    <i class="fas fa-coins text-3xl"></i>
                    <h1 class="text-2xl font-bold">AI Tokenomics Advisor</h1>
                </div>
                <div class="hidden md:flex space-x-4">
                    <button class="px-4 py-2 bg-white bg-opacity-20 rounded-full hover:bg-opacity-30 transition">Dashboard</button>
                    <button class="px-4 py-2 bg-white bg-opacity-20 rounded-full hover:bg-opacity-30 transition">Reports</button>
                    <button class="px-4 py-2 bg-white bg-opacity-20 rounded-full hover:bg-opacity-30 transition">Settings</button>
                </div>
                <button class="md:hidden text-2xl">
                    <i class="fas fa-bars"></i>
                </button>
            </div>
        </header>

        <!-- Main Content -->
        <main class="flex-grow container mx-auto px-4 py-8">
            <div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
                <!-- Left Sidebar -->
                <div class="lg:col-span-1 space-y-6">
                    <!-- Token Quick Stats -->
                    <div class="bg-white rounded-xl shadow-md p-6 token-card">
                        <h2 class="text-xl font-semibold text-gray-800 mb-4">Token Quick Stats</h2>
                        <div class="space-y-4">
                            <div>
                                <p class="text-sm text-gray-500">Total Supply</p>
                                <p class="text-lg font-bold">1,000,000,000</p>
                            </div>
                            <div>
                                <p class="text-sm text-gray-500">Circulating Supply</p>
                                <p class="text-lg font-bold">350,000,000 (35%)</p>
                            </div>
                            <div>
                                <p class="text-sm text-gray-500">Market Cap</p>
                                <p class="text-lg font-bold">$5,250,000</p>
                            </div>
                            <div class="pt-4">
                                <div class="h-2 bg-gray-200 rounded-full">
                                    <div class="h-2 bg-purple-500 rounded-full" style="width: 35%"></div>
                                </div>
                                <p class="text-xs text-gray-500 mt-1">Circulating vs Total Supply</p>
                            </div>
                        </div>
                    </div>

                    <!-- Allocation Breakdown -->
                    <div class="bg-white rounded-xl shadow-md p-6 token-card">
                        <h2 class="text-xl font-semibold text-gray-800 mb-4">Allocation Breakdown</h2>
                        <div class="space-y-3">
                            <div class="flex justify-between">
                                <span class="text-sm">Team</span>
                                <span class="text-sm font-medium">20%</span>
                            </div>
                            <div class="h-2 bg-gray-200 rounded-full">
                                <div class="h-2 bg-blue-500 rounded-full" style="width: 20%"></div>
                            </div>
                            
                            <div class="flex justify-between">
                                <span class="text-sm">Ecosystem</span>
                                <span class="text-sm font-medium">30%</span>
                            </div>
                            <div class="h-2 bg-gray-200 rounded-full">
                                <div class="h-2 bg-green-500 rounded-full" style="width: 30%"></div>
                            </div>
                            
                            <div class="flex justify-between">
                                <span class="text-sm">Investors</span>
                                <span class="text-sm font-medium">25%</span>
                            </div>
                            <div class="h-2 bg-gray-200 rounded-full">
                                <div class="h-2 bg-yellow-500 rounded-full" style="width: 25%"></div>
                            </div>
                            
                            <div class="flex justify-between">
                                <span class="text-sm">Community</span>
                                <span class="text-sm font-medium">25%</span>
                            </div>
                            <div class="h-2 bg-gray-200 rounded-full">
                                <div class="h-2 bg-red-500 rounded-full" style="width: 25%"></div>
                            </div>
                        </div>
                    </div>

                    <!-- Vesting Schedule -->
                    <div class="bg-white rounded-xl shadow-md p-6 token-card">
                        <h2 class="text-xl font-semibold text-gray-800 mb-4">Vesting Schedule</h2>
                        <div class="space-y-4">
                            <div>
                                <p class="text-sm text-gray-500">Team</p>
                                <p class="text-sm">12 months cliff, 36 months linear</p>
                            </div>
                            <div>
                                <p class="text-sm text-gray-500">Investors</p>
                                <p class="text-sm">6 months cliff, 18 months linear</p>
                            </div>
                            <div>
                                <p class="text-sm text-gray-500">Advisors</p>
                                <p class="text-sm">6 months cliff, 12 months linear</p>
                            </div>
                            <div>
                                <p class="text-sm text-gray-500">Community</p>
                                <p class="text-sm">No vesting</p>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Chat Interface -->
                <div class="lg:col-span-2">
                    <div class="bg-white rounded-xl shadow-md overflow-hidden h-full flex flex-col">
                        <!-- Chat Header -->
                        <div class="gradient-bg text-white p-4">
                            <div class="flex items-center space-x-3">
                                <div class="relative">
                                    <div class="w-10 h-10 rounded-full bg-white flex items-center justify-center">
                                        <i class="fas fa-robot text-purple-600 text-xl"></i>
                                    </div>
                                    <span class="absolute bottom-0 right-0 w-3 h-3 bg-green-400 rounded-full border-2 border-white"></span>
                                </div>
                                <div>
                                    <h2 class="font-bold">Tokenomics Advisor AI</h2>
                                    <p class="text-xs opacity-80">Online - Ready to assist</p>
                                </div>
                            </div>
                        </div>

                        <!-- Chat Messages -->
                        <div class="chat-container p-4 flex-grow bg-gray-50">
                            <div class="space-y-4" id="chat-messages">
                                <!-- AI Welcome Message -->
                                <div class="flex items-start space-x-3">
                                    <div class="w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center">
                                        <i class="fas fa-robot text-purple-600"></i>
                                    </div>
                                    <div class="bg-white p-3 rounded-lg shadow-sm max-w-[80%]">
                                        <p class="text-sm">Hello! I'm your AI Tokenomics Advisor. I can help you analyze and optimize your token economy. How can I assist you today?</p>
                                        <p class="text-xs text-gray-500 mt-2">Here are some things I can help with:</p>
                                        <div class="mt-2 space-y-1">
                                            <button class="text-xs bg-purple-50 text-purple-600 px-2 py-1 rounded hover:bg-purple-100 transition" onclick="quickQuestion('How can I improve my token distribution?')">
                                                Improve token distribution
                                            </button>
                                            <button class="text-xs bg-purple-50 text-purple-600 px-2 py-1 rounded hover:bg-purple-100 transition" onclick="quickQuestion('What vesting schedule should I use?')">
                                                Vesting schedule advice
                                            </button>
                                            <button class="text-xs bg-purple-50 text-purple-600 px-2 py-1 rounded hover:bg-purple-100 transition" onclick="quickQuestion('How to prevent token dumping?')">
                                                Prevent token dumping
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- Input Area -->
                        <div class="border-t p-4 bg-white">
                            <div class="flex items-center space-x-2">
                                <input type="text" id="user-input" placeholder="Ask about tokenomics..." class="flex-grow px-4 py-2 border rounded-full focus:outline-none focus:ring-2 focus:ring-purple-200">
                                <button id="send-btn" class="w-10 h-10 rounded-full gradient-bg text-white flex items-center justify-center hover:opacity-90 transition">
                                    <i class="fas fa-paper-plane"></i>
                                </button>
                            </div>
                            <div class="flex justify-between mt-2 px-2">
                                <div class="flex space-x-2">
                                    <button class="text-xs text-gray-500 hover:text-purple-600 transition" onclick="quickQuestion('Show me token metrics')">
                                        <i class="fas fa-chart-line mr-1"></i> Metrics
                                    </button>
                                    <button class="text-xs text-gray-500 hover:text-purple-600 transition" onclick="quickQuestion('Analyze my tokenomics')">
                                        <i class="fas fa-search mr-1"></i> Analyze
                                    </button>
                                </div>
                                <button class="text-xs text-gray-500 hover:text-purple-600 transition" id="clear-chat">
                                    <i class="fas fa-trash-alt mr-1"></i> Clear
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>

        <!-- Footer -->
        <footer class="bg-gray-800 text-white py-6 px-4">
            <div class="container mx-auto">
                <div class="flex flex-col md:flex-row justify-between items-center">
                    <div class="mb-4 md:mb-0">
                        <h2 class="text-xl font-bold flex items-center">
                            <i class="fas fa-coins mr-2"></i> Tokenomics Advisor
                        </h2>
                        <p class="text-sm text-gray-400 mt-1">AI-powered token economy optimization</p>
                    </div>
                    <div class="flex space-x-6">
                        <a href="#" class="hover:text-purple-300 transition"><i class="fab fa-twitter"></i></a>
                        <a href="#" class="hover:text-purple-300 transition"><i class="fab fa-discord"></i></a>
                        <a href="#" class="hover:text-purple-300 transition"><i class="fab fa-github"></i></a>
                        <a href="#" class="hover:text-purple-300 transition"><i class="fas fa-envelope"></i></a>
                    </div>
                </div>
                <div class="border-t border-gray-700 mt-6 pt-6 text-sm text-gray-400 text-center">
                    <p>© 2023 AI Tokenomics Advisor. All rights reserved.</p>
                </div>
            </div>
        </footer>
    </div>

    <script>
        // Chat functionality
        const userInput = document.getElementById('user-input');
        const sendBtn = document.getElementById('send-btn');
        const chatMessages = document.getElementById('chat-messages');
        const clearChatBtn = document.getElementById('clear-chat');

        // Quick question buttons
        function quickQuestion(question) {
            userInput.value = question;
            sendMessage();
        }

        // Send message function
        function sendMessage() {
            const message = userInput.value.trim();
            if (message === '') return;

            // Add user message to chat
            addMessage(message, 'user');
            userInput.value = '';

            // Show typing indicator
            const typingIndicator = document.createElement('div');
            typingIndicator.className = 'flex items-start space-x-3';
            typingIndicator.innerHTML = `
                <div class="w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center">
                    <i class="fas fa-robot text-purple-600"></i>
                </div>
                <div class="bg-white p-3 rounded-lg shadow-sm max-w-[80%]">
                    <div class="flex space-x-2">
                        <div class="w-2 h-2 rounded-full bg-purple-400 pulse"></div>
                        <div class="w-2 h-2 rounded-full bg-purple-400 pulse" style="animation-delay: 0.2s"></div>
                        <div class="w-2 h-2 rounded-full bg-purple-400 pulse" style="animation-delay: 0.4s"></div>
                    </div>
                </div>
            `;
            chatMessages.appendChild(typingIndicator);
            chatMessages.scrollTop = chatMessages.scrollHeight;

            // Simulate AI response after delay
            setTimeout(() => {
                // Remove typing indicator
                chatMessages.removeChild(typingIndicator);
                
                // Add AI response
                const response = generateAIResponse(message);
                addMessage(response, 'ai');
            }, 1500);
        }

        // Add message to chat
        function addMessage(message, sender) {
            const messageDiv = document.createElement('div');
            messageDiv.className = 'flex items-start space-x-3';
            
            if (sender === 'user') {
                messageDiv.innerHTML = `
                    <div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center">
                        <i class="fas fa-user text-blue-600"></i>
                    </div>
                    <div class="bg-blue-50 p-3 rounded-lg shadow-sm max-w-[80%]">
                        <p class="text-sm">${message}</p>
                    </div>
                `;
            } else {
                messageDiv.innerHTML = `
                    <div class="w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center">
                        <i class="fas fa-robot text-purple-600"></i>
                    </div>
                    <div class="bg-white p-3 rounded-lg shadow-sm max-w-[80%]">
                        <p class="text-sm">${message}</p>
                    </div>
                `;
            }
            
            chatMessages.appendChild(messageDiv);
            chatMessages.scrollTop = chatMessages.scrollHeight;
        }

        // Generate AI response (simplified for demo)
        function generateAIResponse(message) {
            const responses = {
                "How can I improve my token distribution?": "Based on your current allocation, I'd recommend increasing the community allocation to at least 30% and reducing team allocation to 15%. This creates better decentralization and community engagement. Also consider adding a staking mechanism to incentivize long-term holding.",
                "What vesting schedule should I use?": "For a balanced approach:\n\n- Team: 12 month cliff, then 24-36 month linear vesting\n- Investors: 6 month cliff, then 12-18 month linear vesting\n- Advisors: 6 month cliff, then 12 month linear vesting\n\nThis prevents immediate dumping while allowing gradual distribution.",
                "How to prevent token dumping?": "Several strategies:\n1. Implement vesting schedules\n2. Add staking rewards with lock-up periods\n3. Create utility beyond speculation\n4. Gradual release of tokens\n5. Community incentives for long-term holders\n\nWould you like me to analyze your specific case?",
                "Show me token metrics": "Here are your key token metrics:\n\n- Circulating Supply: 35% (good for initial liquidity)\n- Market Cap: $5.25M\n- FDV: $15M\n\nYour inflation rate is currently 2% monthly from vesting releases. Consider adjusting vesting schedules if this is too aggressive.",
                "Analyze my tokenomics": "Analyzing your tokenomics...\n\nStrengths:\n- Good initial circulating supply\n- Clear allocation breakdown\n\nAreas for improvement:\n1. Team allocation is slightly high (20%)\n2. No staking mechanism implemented\n3. Ecosystem fund could be better structured\n\nI can provide detailed recommendations if you'd like."
            };

            if (responses[message]) {
                return responses[message];
            } else {
                return "I can provide expert advice on token distribution, vesting schedules, economic models, and preventing token dumping. Could you clarify your question about: '" + message + "'?";
            }
        }

        // Event listeners
        sendBtn.addEventListener('click', sendMessage);
        userInput.addEventListener('keypress', (e) => {
            if (e.key === 'Enter') {
                sendMessage();
            }
        });
        clearChatBtn.addEventListener('click', () => {
            chatMessages.innerHTML = `
                <div class="flex items-start space-x-3">
                    <div class="w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center">
                        <i class="fas fa-robot text-purple-600"></i>
                    </div>
                    <div class="bg-white p-3 rounded-lg shadow-sm max-w-[80%]">
                        <p class="text-sm">Hello! I'm your AI Tokenomics Advisor. I can help you analyze and optimize your token economy. How can I assist you today?</p>
                    </div>
                </div>
            `;
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=ket2/ai-agent" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>