File size: 15,811 Bytes
115b274
 
 
 
 
76dd5f1
 
115b274
 
76dd5f1
 
 
115b274
76dd5f1
 
115b274
76dd5f1
 
 
115b274
 
 
76dd5f1
115b274
76dd5f1
115b274
76dd5f1
115b274
 
76dd5f1
 
115b274
 
76dd5f1
 
 
 
 
 
115b274
 
 
 
 
 
76dd5f1
 
 
 
 
 
 
 
 
115b274
76dd5f1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115b274
 
 
 
76dd5f1
 
 
 
 
 
 
 
 
 
 
9173a27
 
 
 
76dd5f1
 
 
 
 
 
 
 
 
 
 
9173a27
 
 
76dd5f1
 
9173a27
76dd5f1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9173a27
76dd5f1
 
 
 
 
 
 
 
 
 
 
 
 
9173a27
 
 
 
 
76dd5f1
9173a27
76dd5f1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9173a27
 
76dd5f1
 
 
 
 
 
 
 
9173a27
76dd5f1
 
 
 
 
 
 
 
9173a27
 
76dd5f1
 
 
 
 
 
 
9173a27
 
 
76dd5f1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115b274
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MicroCreations - Make & Share Mini Creations</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        .creation-card:hover {
            transform: scale(1.03);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }
        .editor-tool {
            transition: all 0.2s ease;
        }
        .editor-tool:hover {
            transform: scale(1.1);
            background-color: #e2e8f0;
        }
    </style>
</head>
<body class="bg-gray-100">
    <!-- Navigation -->
    <nav class="bg-indigo-600 text-white shadow-lg">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between h-16 items-center">
                <div class="flex items-center">
                    <div class="flex-shrink-0 flex items-center">
                        <i class="fas fa-magic text-2xl mr-2"></i>
                        <span class="text-xl font-bold">MicroCreations</span>
                    </div>
                </div>
                <div class="hidden md:block">
                    <div class="ml-10 flex items-center space-x-4">
                        <a href="#" class="px-3 py-2 rounded-md text-sm font-medium bg-indigo-700">Explore</a>
                        <a href="#" class="px-3 py-2 rounded-md text-sm font-medium hover:bg-indigo-500">Create</a>
                        <a href="#" class="px-3 py-2 rounded-md text-sm font-medium hover:bg-indigo-500">Leaderboard</a>
                        <a href="#" class="px-3 py-2 rounded-md text-sm font-medium hover:bg-indigo-500">Sign In</a>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <!-- Hero Section -->
    <div class="bg-gradient-to-r from-indigo-500 to-purple-600 text-white py-16">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
            <h1 class="text-4xl md:text-6xl font-bold mb-6">Create & Share Mini Worlds</h1>
            <p class="text-xl mb-8 max-w-3xl mx-auto">Make tiny games, stories, and art in seconds. Share with anyone instantly!</p>
            <div class="flex justify-center space-x-4">
                <a href="#create" class="bg-white text-indigo-600 px-6 py-3 rounded-lg font-bold text-lg hover:bg-gray-100">Start Creating</a>
                <a href="#explore" class="bg-indigo-800 text-white px-6 py-3 rounded-lg font-bold text-lg hover:bg-indigo-700">Explore Creations</a>
            </div>
        </div>
    </div>

    <!-- Popular Creations -->
    <div id="explore" class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
        <h2 class="text-3xl font-bold text-gray-800 mb-8">Popular Right Now</h2>
        <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
            <!-- Creation Card 1 -->
            <div class="bg-white rounded-xl shadow-md overflow-hidden creation-card transition-all duration-300">
                <div class="h-48 bg-gradient-to-r from-blue-400 to-indigo-500 flex items-center justify-center">
                    <i class="fas fa-gamepad text-6xl text-white"></i>
                </div>
                <div class="p-6">
                    <h3 class="text-xl font-bold mb-2">Space Adventure</h3>
                    <p class="text-gray-600 mb-4">A mini platformer game by @stargazer</p>
                    <div class="flex justify-between items-center">
                        <span class="text-sm text-gray-500">32.4k plays</span>
                        <button class="bg-indigo-600 text-white px-4 py-1 rounded-lg text-sm hover:bg-indigo-700">Play</button>
                    </div>
                </div>
            </div>

            <!-- Creation Card 2 -->
            <div class="bg-white rounded-xl shadow-md overflow-hidden creation-card transition-all duration-300">
                <div class="h-48 bg-gradient-to-r from-purple-400 to-pink-500 flex items-center justify-center">
                    <i class="fas fa-book-open text-6xl text-white"></i>
                </div>
                <div class="p-6">
                    <h3 class="text-xl font-bold mb-2">The Lost Treasure</h3>
                    <p class="text-gray-600 mb-4">Interactive story by @storyteller</p>
                    <div class="flex justify-between items-center">
                        <span class="text-sm text-gray-500">18.7k plays</span>
                        <button class="bg-indigo-600 text-white px-4 py-1 rounded-lg text-sm hover:bg-indigo-700">Read</button>
                    </div>
                </div>
            </div>

            <!-- Creation Card 3 -->
            <div class="bg-white rounded-xl shadow-md overflow-hidden creation-card transition-all duration-300">
                <div class="h-48 bg-gradient-to-r from-green-400 to-teal-500 flex items-center justify-center">
                    <i class="fas fa-music text-6xl text-white"></i>
                </div>
                <div class="p-6">
                    <h3 class="text-xl font-bold mb-2">Chill Beats</h3>
                    <p class="text-gray-600 mb-4">Music loop by @beatmaster</p>
                    <div class="flex justify-between items-center">
                        <span class="text-sm text-gray-500">45.1k plays</span>
                        <button class="bg-indigo-600 text-white px-4 py-1 rounded-lg text-sm hover:bg-indigo-700">Listen</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Editor Section -->
    <div id="create" class="bg-gray-50 py-16">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <h2 class="text-3xl font-bold text-gray-800 mb-8 text-center">Create in Seconds</h2>
            
            <div class="bg-white rounded-xl shadow-lg overflow-hidden">
                <div class="grid grid-cols-1 lg:grid-cols-3">
                    <!-- Tools Panel -->
                    <div class="bg-gray-100 p-6 border-r border-gray-200">
                        <h3 class="text-xl font-bold mb-4">Tools</h3>
                        <div class="grid grid-cols-2 gap-3">
                            <button class="editor-tool bg-white p-4 rounded-lg shadow-sm flex flex-col items-center">
                                <i class="fas fa-square text-2xl mb-2 text-blue-500"></i>
                                <span>Shape</span>
                            </button>
                            <button class="editor-tool bg-white p-4 rounded-lg shadow-sm flex flex-col items-center">
                                <i class="fas fa-font text-2xl mb-2 text-green-500"></i>
                                <span>Text</span>
                            </button>
                            <button class="editor-tool bg-white p-4 rounded-lg shadow-sm flex flex-col items-center">
                                <i class="fas fa-image text-2xl mb-2 text-purple-500"></i>
                                <span>Image</span>
                            </button>
                            <button class="editor-tool bg-white p-4 rounded-lg shadow-sm flex flex-col items-center">
                                <i class="fas fa-music text-2xl mb-2 text-yellow-500"></i>
                                <span>Sound</span>
                            </button>
                            <button class="editor-tool bg-white p-4 rounded-lg shadow-sm flex flex-col items-center">
                                <i class="fas fa-play text-2xl mb-2 text-red-500"></i>
                                <span>Action</span>
                            </button>
                            <button class="editor-tool bg-white p-4 rounded-lg shadow-sm flex flex-col items-center">
                                <i class="fas fa-magic text-2xl mb-2 text-indigo-500"></i>
                                <span>AI Help</span>
                            </button>
                        </div>
                    </div>
                    
                    <!-- Canvas -->
                    <div class="lg:col-span-2 p-6">
                        <div class="border-2 border-dashed border-gray-300 rounded-lg h-96 flex items-center justify-center bg-gray-50">
                            <div class="text-center p-6">
                                <i class="fas fa-plus-circle text-4xl text-gray-400 mb-3"></i>
                                <h3 class="text-lg font-medium text-gray-700">Start creating!</h3>
                                <p class="text-gray-500 mt-1">Drag elements here or click the tools</p>
                            </div>
                        </div>
                        
                        <div class="mt-6 flex justify-between">
                            <button class="bg-gray-200 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-300">
                                <i class="fas fa-trash-alt mr-2"></i> Clear
                            </button>
                            <div>
                                <button class="bg-indigo-100 text-indigo-700 px-4 py-2 rounded-lg hover:bg-indigo-200 mr-3">
                                    <i class="fas fa-save mr-2"></i> Save Draft
                                </button>
                                <button class="bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700">
                                    <i class="fas fa-share-alt mr-2"></i> Publish & Share
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Footer -->
    <footer class="bg-gray-800 text-white py-12">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <h3 class="text-xl font-bold mb-4">MicroCreations</h3>
                    <p class="text-gray-400">Make tiny worlds, share big joy.</p>
                </div>
                <div>
                    <h4 class="text-lg font-semibold mb-4">Create</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white">Mini Games</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Stories</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Music</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Art</a></li>
                    </ul>
                </div>
                <div>
                    <h4 class="text-lg font-semibold mb-4">Explore</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white">Popular</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">New</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Categories</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Leaderboard</a></li>
                    </ul>
                </div>
                <div>
                    <h4 class="text-lg font-semibold mb-4">Company</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white">About</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Blog</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Careers</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white">Contact</a></li>
                    </ul>
                </div>
            </div>
            <div class="border-t border-gray-700 mt-8 pt-8 flex justify-between">
                <p class="text-gray-400">© 2023 MicroCreations. All rights reserved.</p>
                <div class="flex space-x-6">
                    <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-twitter"></i></a>
                    <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-instagram"></i></a>
                    <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-tiktok"></i></a>
                    <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-discord"></i></a>
                </div>
            </div>
        </div>
    </footer>

    <script>
        // Simple creation editor functionality
        document.querySelectorAll('.editor-tool').forEach(tool => {
            tool.addEventListener('click', function() {
                const icon = this.querySelector('i').className.split(' ')[1];
                let element;
                
                switch(icon) {
                    case 'fa-square':
                        element = '<div class="w-16 h-16 bg-blue-500 rounded cursor-move absolute"></div>';
                        break;
                    case 'fa-font':
                        element = '<div class="bg-white p-2 rounded cursor-move absolute">Edit me!</div>';
                        break;
                    case 'fa-image':
                        element = '<div class="w-16 h-16 bg-gray-300 flex items-center justify-center cursor-move absolute"><i class="fas fa-image text-gray-500"></i></div>';
                        break;
                    case 'fa-music':
                        // Would trigger sound upload in real implementation
                        alert('Sound upload would appear here');
                        return;
                    case 'fa-play':
                        // Would add interaction in real implementation
                        alert('Interaction editor would appear here');
                        return;
                    case 'fa-magic':
                        // AI suggestions
                        alert('AI would suggest improvements here');
                        return;
                }
                
                const canvas = document.querySelector('.border-dashed');
                canvas.innerHTML = canvas.innerHTML.replace('Start creating!', '') + element;
                
                // Make elements draggable (simplified for demo)
                const newElement = canvas.lastElementChild;
                newElement.addEventListener('mousedown', initDrag);
            });
        });

        function initDrag(e) {
            const element = e.target;
            let pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
            
            element.onmousedown = dragMouseDown;
            
            function dragMouseDown(e) {
                e = e || window.event;
                e.preventDefault();
                pos3 = e.clientX;
                pos4 = e.clientY;
                document.onmouseup = closeDragElement;
                document.onmousemove = elementDrag;
            }
            
            function elementDrag(e) {
                e = e || window.event;
                e.preventDefault();
                pos1 = pos3 - e.clientX;
                pos2 = pos4 - e.clientY;
                pos3 = e.clientX;
                pos4 = e.clientY;
                element.style.top = (element.offsetTop - pos2) + "px";
                element.style.left = (element.offsetLeft - pos1) + "px";
            }
            
            function closeDragElement() {
                document.onmouseup = null;
                document.onmousemove = null;
            }
        }
    </script>
</body>
</html>