waddou commited on
Commit
66a048c
·
verified ·
1 Parent(s): 1909f48

Add 2 files

Browse files
Files changed (2) hide show
  1. index.html +342 -38
  2. prompts.txt +1 -0
index.html CHANGED
@@ -1,41 +1,345 @@
1
  <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>My app</title>
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <meta charset="utf-8">
 
 
7
  <style>
8
- body {
9
- display: flex;
10
- justify-content: center;
11
- align-items: center;
12
- overflow: hidden;
13
- height: 100dvh;
14
- font-family: "Arial", sans-serif;
15
- text-align: center;
16
- }
17
- .arrow {
18
- position: absolute;
19
- bottom: 32px;
20
- left: 0px;
21
- width: 100px;
22
- transform: rotate(30deg);
23
- }
24
- h1 {
25
- font-size: 50px;
26
- }
27
- h1 span {
28
- color: #acacac;
29
- font-size: 32px;
30
- }
 
 
 
31
  </style>
32
- </head>
33
- <body>
34
- <h1>
35
- <span>I'm ready to work,</span><br />
36
- Ask me anything.
37
- </h1>
38
- <img src="https://enzostvs-deepsite.hf.space/arrow.svg" class="arrow" />
39
- <script></script>
40
- <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=waddou/jini" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
41
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>SimpleCMS - A Lightweight CMS</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
  <style>
10
+ /* Custom styles that can't be done with Tailwind */
11
+ .editor-toolbar {
12
+ transition: all 0.3s ease;
13
+ }
14
+ .sidebar {
15
+ transition: transform 0.3s ease;
16
+ }
17
+ .sidebar.collapsed {
18
+ transform: translateX(-100%);
19
+ }
20
+ .content-area {
21
+ transition: margin-left 0.3s ease;
22
+ }
23
+ .content-area.expanded {
24
+ margin-left: 0;
25
+ }
26
+ .page-item.active {
27
+ background-color: #3b82f6;
28
+ color: white;
29
+ }
30
+ .draggable-handle {
31
+ cursor: move;
32
+ }
33
+ #editor {
34
+ min-height: 300px;
35
+ }
36
  </style>
37
+ </head>
38
+ <body class="bg-gray-100 font-sans">
39
+ <!-- Admin Top Bar -->
40
+ <div class="bg-blue-600 text-white p-3 flex justify-between items-center shadow-md">
41
+ <div class="flex items-center space-x-4">
42
+ <button id="toggle-sidebar" class="text-white hover:text-blue-200">
43
+ <i class="fas fa-bars text-xl"></i>
44
+ </button>
45
+ <h1 class="text-xl font-bold">SimpleCMS</h1>
46
+ </div>
47
+ <div class="flex items-center space-x-4">
48
+ <div class="relative group">
49
+ <button class="flex items-center space-x-2 hover:text-blue-200">
50
+ <span>Admin</span>
51
+ <i class="fas fa-chevron-down text-sm"></i>
52
+ </button>
53
+ <div class="absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg z-10 hidden group-hover:block">
54
+ <div class="py-1">
55
+ <a href="#" class="block px-4 py-2 text-gray-800 hover:bg-blue-100">Profile</a>
56
+ <a href="#" class="block px-4 py-2 text-gray-800 hover:bg-blue-100">Settings</a>
57
+ <div class="border-t border-gray-200"></div>
58
+ <a href="#" class="block px-4 py-2 text-gray-800 hover:bg-blue-100">Logout</a>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ <button id="view-site" class="bg-blue-700 hover:bg-blue-800 px-4 py-1 rounded">
63
+ View Site
64
+ </button>
65
+ </div>
66
+ </div>
67
+
68
+ <div class="flex">
69
+ <!-- Sidebar -->
70
+ <div id="sidebar" class="sidebar bg-gray-800 text-white w-64 min-h-screen p-4 fixed h-full">
71
+ <div class="mb-8">
72
+ <h2 class="text-lg font-semibold mb-4 flex justify-between items-center">
73
+ <span>Navigation</span>
74
+ <button id="collapse-sidebar" class="text-gray-400 hover:text-white">
75
+ <i class="fas fa-chevron-left"></i>
76
+ </button>
77
+ </h2>
78
+ <ul class="space-y-2">
79
+ <li>
80
+ <a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700 active">
81
+ <i class="fas fa-home"></i>
82
+ <span>Dashboard</span>
83
+ </a>
84
+ </li>
85
+ <li>
86
+ <a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700">
87
+ <i class="fas fa-file-alt"></i>
88
+ <span>Pages</span>
89
+ </a>
90
+ </li>
91
+ <li>
92
+ <a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700">
93
+ <i class="fas fa-paint-brush"></i>
94
+ <span>Themes</span>
95
+ </a>
96
+ </li>
97
+ <li>
98
+ <a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700">
99
+ <i class="fas fa-puzzle-piece"></i>
100
+ <span>Plugins</span>
101
+ </a>
102
+ </li>
103
+ <li>
104
+ <a href="#" class="flex items-center space-x-2 p-2 rounded hover:bg-gray-700">
105
+ <i class="fas fa-cog"></i>
106
+ <span>Settings</span>
107
+ </a>
108
+ </li>
109
+ </ul>
110
+ </div>
111
+
112
+ <div class="mb-8">
113
+ <h2 class="text-lg font-semibold mb-4">Quick Actions</h2>
114
+ <div class="grid grid-cols-2 gap-2">
115
+ <button class="bg-blue-600 hover:bg-blue-700 p-2 rounded text-sm">
116
+ <i class="fas fa-plus mr-1"></i> New Page
117
+ </button>
118
+ <button class="bg-green-600 hover:bg-green-700 p-2 rounded text-sm">
119
+ <i class="fas fa-upload mr-1"></i> Upload
120
+ </button>
121
+ <button class="bg-purple-600 hover:bg-purple-700 p-2 rounded text-sm">
122
+ <i class="fas fa-palette mr-1"></i> Theme
123
+ </button>
124
+ <button class="bg-yellow-600 hover:bg-yellow-700 p-2 rounded text-sm">
125
+ <i class="fas fa-plug mr-1"></i> Plugin
126
+ </button>
127
+ </div>
128
+ </div>
129
+
130
+ <div>
131
+ <h2 class="text-lg font-semibold mb-4">Recent Pages</h2>
132
+ <ul class="space-y-2">
133
+ <li class="flex items-center justify-between p-2 rounded hover:bg-gray-700">
134
+ <a href="#" class="flex-1">Home</a>
135
+ <button class="text-gray-400 hover:text-white">
136
+ <i class="fas fa-ellipsis-v"></i>
137
+ </button>
138
+ </li>
139
+ <li class="flex items-center justify-between p-2 rounded hover:bg-gray-700">
140
+ <a href="#" class="flex-1">About Us</a>
141
+ <button class="text-gray-400 hover:text-white">
142
+ <i class="fas fa-ellipsis-v"></i>
143
+ </button>
144
+ </li>
145
+ <li class="flex items-center justify-between p-2 rounded hover:bg-gray-700">
146
+ <a href="#" class="flex-1">Contact</a>
147
+ <button class="text-gray-400 hover:text-white">
148
+ <i class="fas fa-ellipsis-v"></i>
149
+ </button>
150
+ </li>
151
+ </ul>
152
+ </div>
153
+ </div>
154
+
155
+ <!-- Main Content -->
156
+ <div id="content-area" class="content-area ml-64 p-6 flex-1 transition-all duration-300">
157
+ <div class="bg-white rounded-lg shadow-md p-6">
158
+ <div class="flex justify-between items-center mb-6">
159
+ <h2 class="text-2xl font-bold text-gray-800">Edit Page: Home</h2>
160
+ <div class="flex space-x-2">
161
+ <button class="bg-gray-200 hover:bg-gray-300 px-4 py-2 rounded">
162
+ <i class="fas fa-eye mr-2"></i> Preview
163
+ </button>
164
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded">
165
+ <i class="fas fa-save mr-2"></i> Save
166
+ </button>
167
+ </div>
168
+ </div>
169
+
170
+ <div class="mb-6">
171
+ <label class="block text-gray-700 font-medium mb-2" for="page-title">Page Title</label>
172
+ <input type="text" id="page-title" value="Welcome to SimpleCMS"
173
+ class="w-full px-4 py-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-500">
174
+ </div>
175
+
176
+ <div class="mb-6">
177
+ <label class="block text-gray-700 font-medium mb-2">Page Content</label>
178
+ <div class="editor-toolbar bg-gray-100 border border-gray-300 rounded-t-lg p-2 flex flex-wrap gap-1">
179
+ <button class="p-2 hover:bg-gray-200 rounded" title="Bold"><i class="fas fa-bold"></i></button>
180
+ <button class="p-2 hover:bg-gray-200 rounded" title="Italic"><i class="fas fa-italic"></i></button>
181
+ <button class="p-2 hover:bg-gray-200 rounded" title="Underline"><i class="fas fa-underline"></i></button>
182
+ <div class="border-l border-gray-400 mx-1 h-6"></div>
183
+ <button class="p-2 hover:bg-gray-200 rounded" title="Heading 1"><i class="fas fa-heading"></i> 1</button>
184
+ <button class="p-2 hover:bg-gray-200 rounded" title="Heading 2"><i class="fas fa-heading"></i> 2</button>
185
+ <div class="border-l border-gray-400 mx-1 h-6"></div>
186
+ <button class="p-2 hover:bg-gray-200 rounded" title="List"><i class="fas fa-list-ul"></i></button>
187
+ <button class="p-2 hover:bg-gray-200 rounded" title="Numbered List"><i class="fas fa-list-ol"></i></button>
188
+ <div class="border-l border-gray-400 mx-1 h-6"></div>
189
+ <button class="p-2 hover:bg-gray-200 rounded" title="Link"><i class="fas fa-link"></i></button>
190
+ <button class="p-2 hover:bg-gray-200 rounded" title="Image"><i class="fas fa-image"></i></button>
191
+ <button class="p-2 hover:bg-gray-200 rounded" title="Table"><i class="fas fa-table"></i></button>
192
+ <div class="border-l border-gray-400 mx-1 h-6"></div>
193
+ <button class="p-2 hover:bg-gray-200 rounded" title="Code"><i class="fas fa-code"></i></button>
194
+ <button class="p-2 hover:bg-gray-200 rounded" title="Quote"><i class="fas fa-quote-right"></i></button>
195
+ </div>
196
+ <div id="editor" class="border border-gray-300 rounded-b-lg p-4 min-h-64 focus:outline-none focus:ring-2 focus:ring-blue-500" contenteditable="true">
197
+ <h2>Welcome to SimpleCMS</h2>
198
+ <p>This is a lightweight content management system inspired by WonderCMS. You can edit this content directly in the editor.</p>
199
+ <p>Try adding your own content or formatting text using the toolbar above.</p>
200
+ <ul>
201
+ <li>Easy to use</li>
202
+ <li>No database required</li>
203
+ <li>Simple and intuitive interface</li>
204
+ </ul>
205
+ </div>
206
+ </div>
207
+
208
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
209
+ <div>
210
+ <label class="block text-gray-700 font-medium mb-2" for="page-url">Page URL</label>
211
+ <div class="flex">
212
+ <span class="inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500">
213
+ https://example.com/
214
+ </span>
215
+ <input type="text" id="page-url" value="home"
216
+ class="flex-1 rounded-r-md border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
217
+ </div>
218
+ </div>
219
+ <div>
220
+ <label class="block text-gray-700 font-medium mb-2" for="page-status">Status</label>
221
+ <select id="page-status" class="w-full px-4 py-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-500">
222
+ <option value="published">Published</option>
223
+ <option value="draft">Draft</option>
224
+ <option value="archived">Archived</option>
225
+ </select>
226
+ </div>
227
+ </div>
228
+
229
+ <div class="mb-6">
230
+ <label class="block text-gray-700 font-medium mb-2">SEO Settings</label>
231
+ <div class="space-y-4">
232
+ <div>
233
+ <label class="block text-gray-600 mb-1" for="meta-title">Meta Title</label>
234
+ <input type="text" id="meta-title" value="Welcome to SimpleCMS - A Lightweight CMS"
235
+ class="w-full px-4 py-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-500">
236
+ </div>
237
+ <div>
238
+ <label class="block text-gray-600 mb-1" for="meta-description">Meta Description</label>
239
+ <textarea id="meta-description" rows="2"
240
+ class="w-full px-4 py-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-500">SimpleCMS is a lightweight content management system that makes website creation easy and straightforward.</textarea>
241
+ </div>
242
+ <div>
243
+ <label class="block text-gray-600 mb-1" for="meta-keywords">Keywords (comma separated)</label>
244
+ <input type="text" id="meta-keywords" value="CMS, simple, lightweight, website"
245
+ class="w-full px-4 py-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-500">
246
+ </div>
247
+ </div>
248
+ </div>
249
+
250
+ <div class="flex justify-end space-x-3 pt-4 border-t border-gray-200">
251
+ <button class="bg-gray-200 hover:bg-gray-300 px-4 py-2 rounded">
252
+ Cancel
253
+ </button>
254
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded">
255
+ <i class="fas fa-save mr-2"></i> Save Changes
256
+ </button>
257
+ </div>
258
+ </div>
259
+ </div>
260
+ </div>
261
+
262
+ <script>
263
+ // Toggle sidebar visibility
264
+ document.getElementById('toggle-sidebar').addEventListener('click', function() {
265
+ const sidebar = document.getElementById('sidebar');
266
+ const contentArea = document.getElementById('content-area');
267
+
268
+ sidebar.classList.toggle('collapsed');
269
+ contentArea.classList.toggle('expanded');
270
+ contentArea.classList.toggle('ml-64');
271
+ });
272
+
273
+ // Collapse sidebar button
274
+ document.getElementById('collapse-sidebar').addEventListener('click', function() {
275
+ const sidebar = document.getElementById('sidebar');
276
+ const contentArea = document.getElementById('content-area');
277
+
278
+ sidebar.classList.add('collapsed');
279
+ contentArea.classList.add('expanded');
280
+ contentArea.classList.remove('ml-64');
281
+ });
282
+
283
+ // View site button
284
+ document.getElementById('view-site').addEventListener('click', function() {
285
+ alert('Viewing the live site (this would normally redirect to the frontend)');
286
+ });
287
+
288
+ // Simple editor functionality
289
+ const editorButtons = document.querySelectorAll('.editor-toolbar button');
290
+ editorButtons.forEach(button => {
291
+ button.addEventListener('click', function(e) {
292
+ e.preventDefault();
293
+ const command = this.getAttribute('title').toLowerCase();
294
+ document.execCommand(command, false, null);
295
+ document.getElementById('editor').focus();
296
+ });
297
+ });
298
+
299
+ // Simulate saving content
300
+ const saveButtons = document.querySelectorAll('button:contains("Save")');
301
+ saveButtons.forEach(button => {
302
+ button.addEventListener('click', function() {
303
+ const content = document.getElementById('editor').innerHTML;
304
+ const title = document.getElementById('page-title').value;
305
+
306
+ // In a real app, this would send data to a server
307
+ console.log('Saving page:', {
308
+ title: title,
309
+ content: content,
310
+ url: document.getElementById('page-url').value,
311
+ status: document.getElementById('page-status').value,
312
+ meta: {
313
+ title: document.getElementById('meta-title').value,
314
+ description: document.getElementById('meta-description').value,
315
+ keywords: document.getElementById('meta-keywords').value
316
+ }
317
+ });
318
+
319
+ // Show success message
320
+ alert('Page saved successfully!');
321
+ });
322
+ });
323
+
324
+ // Responsive behavior - collapse sidebar on small screens
325
+ function handleResize() {
326
+ const sidebar = document.getElementById('sidebar');
327
+ const contentArea = document.getElementById('content-area');
328
+
329
+ if (window.innerWidth < 768) {
330
+ sidebar.classList.add('collapsed');
331
+ contentArea.classList.add('expanded');
332
+ contentArea.classList.remove('ml-64');
333
+ } else {
334
+ sidebar.classList.remove('collapsed');
335
+ contentArea.classList.remove('expanded');
336
+ contentArea.classList.add('ml-64');
337
+ }
338
+ }
339
+
340
+ // Initial check and event listener
341
+ handleResize();
342
+ window.addEventListener('resize', handleResize);
343
+ </script>
344
+ <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=waddou/jini" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
345
+ </html>
prompts.txt CHANGED
@@ -0,0 +1 @@
 
 
1
+ Create a CMS like wondercms