Spaces:
Running
Running
File size: 31,557 Bytes
3880e20 d97ce8a |
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 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NXPLUG - AI-Powered WordPress Page Builder</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 0%, #a777e3 100%);
}
.sidebar {
transition: all 0.3s ease;
}
.element-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.canvas-area {
min-height: 80vh;
background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
.droppable {
min-height: 100px;
border: 2px dashed #a777e3;
background-color: rgba(167, 119, 227, 0.1);
}
.ai-suggestion {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(167, 119, 227, 0.4); }
70% { box-shadow: 0 0 0 10px rgba(167, 119, 227, 0); }
100% { box-shadow: 0 0 0 0 rgba(167, 119, 227, 0); }
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<!-- Header -->
<header class="gradient-bg text-white shadow-lg">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fas fa-cube text-2xl"></i>
<h1 class="text-2xl font-bold">NXPLUG Page Builder</h1>
</div>
<div class="flex space-x-4">
<button class="px-4 py-2 bg-white text-purple-600 rounded-lg font-medium hover:bg-gray-100 transition">
<i class="fas fa-save mr-2"></i>Save
</button>
<button class="px-4 py-2 bg-purple-800 text-white rounded-lg font-medium hover:bg-purple-900 transition">
<i class="fas fa-eye mr-2"></i>Preview
</button>
<button class="px-4 py-2 bg-green-500 text-white rounded-lg font-medium hover:bg-green-600 transition">
<i class="fas fa-rocket mr-2"></i>Publish
</button>
</div>
</div>
</header>
<div class="flex h-screen pt-16">
<!-- Left Sidebar - Elements -->
<div class="sidebar w-64 bg-white shadow-lg overflow-y-auto">
<div class="p-4 border-b">
<h2 class="font-bold text-lg flex items-center">
<i class="fas fa-shapes mr-2 text-purple-600"></i> Elements
</h2>
<div class="mt-2 relative">
<input type="text" placeholder="Search elements..." class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-300">
<i class="fas fa-search absolute right-3 top-3 text-gray-400"></i>
</div>
</div>
<div class="p-4 space-y-4">
<!-- Basic Elements -->
<div>
<h3 class="font-medium text-gray-700 mb-2 flex items-center">
<i class="fas fa-cubes mr-2 text-blue-500"></i> Basic
</h3>
<div class="grid grid-cols-2 gap-3">
<div class="element-card bg-white p-3 rounded-lg border cursor-pointer shadow-sm hover:shadow-md transition">
<div class="flex items-center">
<div class="w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center mr-2">
<i class="fas fa-heading text-blue-500"></i>
</div>
<span class="text-sm">Heading</span>
</div>
</div>
<div class="element-card bg-white p-3 rounded-lg border cursor-pointer shadow-sm hover:shadow-md transition">
<div class="flex items-center">
<div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center mr-2">
<i class="fas fa-paragraph text-green-500"></i>
</div>
<span class="text-sm">Text</span>
</div>
</div>
<div class="element-card bg-white p-3 rounded-lg border cursor-pointer shadow-sm hover:shadow-md transition">
<div class="flex items-center">
<div class="w-8 h-8 bg-yellow-100 rounded-full flex items-center justify-center mr-2">
<i class="fas fa-image text-yellow-500"></i>
</div>
<span class="text-sm">Image</span>
</div>
</div>
<div class="element-card bg-white p-3 rounded-lg border cursor-pointer shadow-sm hover:shadow-md transition">
<div class="flex items-center">
<div class="w-8 h-8 bg-red-100 rounded-full flex items-center justify-center mr-2">
<i class="fas fa-video text-red-500"></i>
</div>
<span class="text-sm">Video</span>
</div>
</div>
</div>
</div>
<!-- Layout Elements -->
<div>
<h3 class="font-medium text-gray-700 mb-2 flex items-center">
<i class="fas fa-th-large mr-2 text-purple-500"></i> Layout
</h3>
<div class="grid grid-cols-2 gap-3">
<div class="element-card bg-white p-3 rounded-lg border cursor-pointer shadow-sm hover:shadow-md transition">
<div class="flex items-center">
<div class="w-8 h-8 bg-indigo-100 rounded-full flex items-center justify-center mr-2">
<i class="fas fa-columns text-indigo-500"></i>
</div>
<span class="text-sm">Columns</span>
</div>
</div>
<div class="element-card bg-white p-3 rounded-lg border cursor-pointer shadow-sm hover:shadow-md transition">
<div class="flex items-center">
<div class="w-8 h-8 bg-pink-100 rounded-full flex items-center justify-center mr-2">
<i class="fas fa-boxes text-pink-500"></i>
</div>
<span class="text-sm">Container</span>
</div>
</div>
<div class="element-card bg-white p-3 rounded-lg border cursor-pointer shadow-sm hover:shadow-md transition">
<div class="flex items-center">
<div class="w-8 h-8 bg-teal-100 rounded-full flex items-center justify-center mr-2">
<i class="fas fa-table text-teal-500"></i>
</div>
<span class="text-sm">Table</span>
</div>
</div>
<div class="element-card bg-white p-3 rounded-lg border cursor-pointer shadow-sm hover:shadow-md transition">
<div class="flex items-center">
<div class="w-8 h-8 bg-orange-100 rounded-full flex items-center justify-center mr-2">
<i class="fas fa-tabs text-orange-500"></i>
</div>
<span class="text-sm">Tabs</span>
</div>
</div>
</div>
</div>
<!-- WordPress Elements -->
<div>
<h3 class="font-medium text-gray-700 mb-2 flex items-center">
<i class="fab fa-wordpress mr-2 text-blue-500"></i> WordPress
</h3>
<div class="grid grid-cols-2 gap-3">
<div class="element-card bg-white p-3 rounded-lg border cursor-pointer shadow-sm hover:shadow-md transition">
<div class="flex items-center">
<div class="w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center mr-2">
<i class="fas fa-newspaper text-blue-500"></i>
</div>
<span class="text-sm">Post Grid</span>
</div>
</div>
<div class="element-card bg-white p-3 rounded-lg border cursor-pointer shadow-sm hover:shadow-md transition">
<div class="flex items-center">
<div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center mr-2">
<i class="fas fa-comments text-green-500"></i>
</div>
<span class="text-sm">Comments</span>
</div>
</div>
<div class="element-card bg-white p-3 rounded-lg border cursor-pointer shadow-sm hover:shadow-md transition">
<div class="flex items-center">
<div class="w-8 h-8 bg-yellow-100 rounded-full flex items-center justify-center mr-2">
<i class="fas fa-search text-yellow-500"></i>
</div>
<span class="text-sm">Search Form</span>
</div>
</div>
<div class="element-card bg-white p-3 rounded-lg border cursor-pointer shadow-sm hover:shadow-md transition">
<div class="flex items-center">
<div class="w-8 h-8 bg-red-100 rounded-full flex items-center justify-center mr-2">
<i class="fas fa-user text-red-500"></i>
</div>
<span class="text-sm">Login Form</span>
</div>
</div>
</div>
</div>
<!-- AI Suggestions -->
<div class="ai-suggestion bg-purple-50 border border-purple-200 rounded-lg p-3">
<div class="flex items-start">
<div class="w-8 h-8 bg-purple-100 rounded-full flex items-center justify-center mr-2 flex-shrink-0">
<i class="fas fa-robot text-purple-500"></i>
</div>
<div>
<h4 class="font-medium text-purple-800">AI Suggestion</h4>
<p class="text-sm text-purple-700">Based on your content, I recommend adding a Call-to-Action section here.</p>
<button class="mt-2 text-xs bg-purple-500 text-white px-2 py-1 rounded hover:bg-purple-600 transition">Add CTA</button>
</div>
</div>
</div>
</div>
</div>
<!-- Main Canvas Area -->
<div class="flex-1 overflow-auto">
<div class="container mx-auto px-4 py-6">
<div class="bg-white rounded-xl shadow-lg overflow-hidden">
<!-- Toolbar -->
<div class="bg-gray-100 px-4 py-3 flex justify-between items-center border-b">
<div class="flex space-x-2">
<button class="p-2 rounded hover:bg-gray-200 transition">
<i class="fas fa-desktop"></i>
</button>
<button class="p-2 rounded hover:bg-gray-200 transition">
<i class="fas fa-tablet-alt"></i>
</button>
<button class="p-2 rounded hover:bg-gray-200 transition">
<i class="fas fa-mobile-alt"></i>
</button>
</div>
<div class="flex space-x-2">
<button class="p-2 rounded hover:bg-gray-200 transition">
<i class="fas fa-undo"></i>
</button>
<button class="p-2 rounded hover:bg-gray-200 transition">
<i class="fas fa-redo"></i>
</button>
<button class="p-2 rounded hover:bg-gray-200 transition">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
<!-- Actual Canvas -->
<div class="canvas-area p-6">
<div class="max-w-4xl mx-auto">
<div class="droppable rounded-lg mb-6 p-4 flex items-center justify-center">
<p class="text-gray-500">Drag elements here or click the + button to add content</p>
<button class="ml-4 w-8 h-8 bg-purple-500 text-white rounded-full hover:bg-purple-600 transition">
<i class="fas fa-plus"></i>
</button>
</div>
<!-- Sample Content -->
<div class="bg-white rounded-lg border mb-6 overflow-hidden">
<div class="p-4 border-b bg-gray-50 flex justify-between items-center">
<div class="flex items-center">
<i class="fas fa-heading text-blue-500 mr-2"></i>
<span>Heading</span>
</div>
<div class="flex space-x-2">
<button class="p-1 text-gray-500 hover:text-gray-700">
<i class="fas fa-cog"></i>
</button>
<button class="p-1 text-gray-500 hover:text-gray-700">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
<div class="p-4">
<h2 class="text-3xl font-bold" contenteditable="true">Welcome to My WordPress Site</h2>
</div>
</div>
<div class="bg-white rounded-lg border mb-6 overflow-hidden">
<div class="p-4 border-b bg-gray-50 flex justify-between items-center">
<div class="flex items-center">
<i class="fas fa-paragraph text-green-500 mr-2"></i>
<span>Text</span>
</div>
<div class="flex space-x-2">
<button class="p-1 text-gray-500 hover:text-gray-700">
<i class="fas fa-cog"></i>
</button>
<button class="p-1 text-gray-500 hover:text-gray-700">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
<div class="p-4">
<p class="text-gray-700" contenteditable="true">This is a sample paragraph that you can edit right on the page. The NXPLUG Page Builder makes it easy to create beautiful layouts without any coding knowledge. Try adding more elements to see how it works!</p>
</div>
</div>
<div class="grid grid-cols-2 gap-6 mb-6">
<div class="bg-white rounded-lg border overflow-hidden">
<div class="p-4 border-b bg-gray-50 flex justify-between items-center">
<div class="flex items-center">
<i class="fas fa-image text-yellow-500 mr-2"></i>
<span>Image</span>
</div>
<div class="flex space-x-2">
<button class="p-1 text-gray-500 hover:text-gray-700">
<i class="fas fa-cog"></i>
</button>
<button class="p-1 text-gray-500 hover:text-gray-700">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
<div class="p-4">
<div class="bg-gray-200 h-40 flex items-center justify-center text-gray-500">
<i class="fas fa-image fa-2x"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg border overflow-hidden">
<div class="p-4 border-b bg-gray-50 flex justify-between items-center">
<div class="flex items-center">
<i class="fas fa-button text-red-500 mr-2"></i>
<span>Button</span>
</div>
<div class="flex space-x-2">
<button class="p-1 text-gray-500 hover:text-gray-700">
<i class="fas fa-cog"></i>
</button>
<button class="p-1 text-gray-500 hover:text-gray-700">
<i class="fas fa-trash"></i>
</button>
</div>
</div>
<div class="p-4">
<button class="px-6 py-2 bg-blue-500 text-white rounded hover:bg-blue-600 transition" contenteditable="true">Click Me</button>
</div>
</div>
</div>
<div class="droppable rounded-lg p-4 flex items-center justify-center">
<p class="text-gray-500">Add more content here</p>
<button class="ml-4 w-8 h-8 bg-purple-500 text-white rounded-full hover:bg-purple-600 transition">
<i class="fas fa-plus"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Right Sidebar - Settings -->
<div class="sidebar w-80 bg-white shadow-lg overflow-y-auto border-l">
<div class="p-4 border-b">
<h2 class="font-bold text-lg flex items-center">
<i class="fas fa-sliders-h mr-2 text-purple-600"></i> Settings
</h2>
</div>
<div class="p-4">
<div class="mb-6">
<h3 class="font-medium text-gray-700 mb-3 flex items-center">
<i class="fas fa-layer-group mr-2 text-blue-500"></i> Page Settings
</h3>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Page Title</label>
<input type="text" class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-300" value="Homepage">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Page Layout</label>
<select class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-300">
<option>Full Width</option>
<option>Boxed</option>
<option>Left Sidebar</option>
<option>Right Sidebar</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Background</label>
<div class="flex space-x-2">
<div class="w-8 h-8 rounded border cursor-pointer bg-white"></div>
<div class="w-8 h-8 rounded border cursor-pointer bg-gray-100"></div>
<div class="w-8 h-8 rounded border cursor-pointer bg-gray-200"></div>
<div class="w-8 h-8 rounded border cursor-pointer bg-gradient-to-r from-blue-400 to-purple-500"></div>
<div class="w-8 h-8 rounded border cursor-pointer flex items-center justify-center text-gray-500">
<i class="fas fa-image"></i>
</div>
</div>
</div>
</div>
</div>
<div class="mb-6">
<h3 class="font-medium text-gray-700 mb-3 flex items-center">
<i class="fas fa-cog mr-2 text-green-500"></i> Element Settings
</h3>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Typography</label>
<div class="grid grid-cols-2 gap-2">
<select class="col-span-2 px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-300">
<option>Default Font</option>
<option>Open Sans</option>
<option>Roboto</option>
<option>Montserrat</option>
</select>
<select class="px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-300">
<option>Normal</option>
<option>Bold</option>
<option>Light</option>
</select>
<select class="px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-300">
<option>16px</option>
<option>14px</option>
<option>18px</option>
<option>20px</option>
</select>
</div>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Spacing</label>
<div class="grid grid-cols-4 gap-2">
<div>
<label class="text-xs block text-center text-gray-500">Top</label>
<input type="number" class="w-full px-2 py-1 border rounded focus:outline-none focus:ring-1 focus:ring-purple-300" value="10">
</div>
<div>
<label class="text-xs block text-center text-gray-500">Right</label>
<input type="number" class="w-full px-2 py-1 border rounded focus:outline-none focus:ring-1 focus:ring-purple-300" value="10">
</div>
<div>
<label class="text-xs block text-center text-gray-500">Bottom</label>
<input type="number" class="w-full px-2 py-1 border rounded focus:outline-none focus:ring-1 focus:ring-purple-300" value="10">
</div>
<div>
<label class="text-xs block text-center text-gray-500">Left</label>
<input type="number" class="w-full px-2 py-1 border rounded focus:outline-none focus:ring-1 focus:ring-purple-300" value="10">
</div>
</div>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Animation</label>
<select class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-300">
<option>None</option>
<option>Fade In</option>
<option>Slide Up</option>
<option>Zoom In</option>
<option>Bounce</option>
</select>
</div>
</div>
</div>
<div class="ai-suggestion bg-purple-50 border border-purple-200 rounded-lg p-3">
<div class="flex items-start">
<div class="w-8 h-8 bg-purple-100 rounded-full flex items-center justify-center mr-2 flex-shrink-0">
<i class="fas fa-robot text-purple-500"></i>
</div>
<div>
<h4 class="font-medium text-purple-800">AI Optimization</h4>
<p class="text-sm text-purple-700">Your page could benefit from better SEO. Would you like me to optimize your headings and content?</p>
<button class="mt-2 text-xs bg-purple-500 text-white px-2 py-1 rounded hover:bg-purple-600 transition">Optimize Now</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- AI Assistant Floating Button -->
<div class="fixed bottom-6 right-6">
<button class="w-14 h-14 bg-purple-600 text-white rounded-full shadow-lg hover:bg-purple-700 transition flex items-center justify-center">
<i class="fas fa-robot text-2xl"></i>
</button>
</div>
<script>
// Simple drag and drop functionality
document.addEventListener('DOMContentLoaded', function() {
const elements = document.querySelectorAll('.element-card');
const droppableAreas = document.querySelectorAll('.droppable');
elements.forEach(element => {
element.addEventListener('dragstart', function(e) {
e.dataTransfer.setData('text/plain', element.innerText.trim());
element.classList.add('opacity-50');
});
element.addEventListener('dragend', function() {
element.classList.remove('opacity-50');
});
});
droppableAreas.forEach(area => {
area.addEventListener('dragover', function(e) {
e.preventDefault();
area.classList.add('bg-purple-100');
});
area.addEventListener('dragleave', function() {
area.classList.remove('bg-purple-100');
});
area.addEventListener('drop', function(e) {
e.preventDefault();
area.classList.remove('bg-purple-100');
const elementType = e.dataTransfer.getData('text/plain');
alert(`Dropped ${elementType} element! In a real app, this would add the element to the page.`);
});
});
// AI Assistant button click
const aiButton = document.querySelector('.fixed button');
aiButton.addEventListener('click', function() {
alert('NXPLUG AI Assistant: How can I help you design your perfect page today?');
});
});
</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=XXXMARK/page-builder" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>
|