docto41 commited on
Commit
046665b
·
verified ·
1 Parent(s): 4372aae

Add 2 files

Browse files
Files changed (2) hide show
  1. index.html +207 -9
  2. prompts.txt +2 -1
index.html CHANGED
@@ -53,6 +53,9 @@
53
  background-color: #4f46e5;
54
  color: white;
55
  }
 
 
 
56
  </style>
57
  </head>
58
  <body class="bg-gray-100 min-h-screen">
@@ -446,25 +449,220 @@
446
  }
447
 
448
  function generateSampleHTML() {
449
- // This would be more sophisticated in a real app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
450
  let html = `<!DOCTYPE html>
451
  <html lang="en">
452
  <head>
453
  <meta charset="UTF-8">
454
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
455
- <title>${getTitleBasedOnType()}</title>
456
  <script src="https://cdn.tailwindcss.com"><\/script>
457
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
458
  <style>
459
- ${getStyleBasedOnPreference()}
 
 
 
 
 
 
 
 
 
 
 
 
460
  </style>
461
  </head>
462
- <body class="${getBodyClasses()}">
463
- ${generateHeroSection()}
464
- ${generateFeaturesSection()}
465
- ${generateCTASection()}
466
- ${currentState.options.darkMode ? generateDarkModeToggle() : ''}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
467
  <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js"><\/script>
468
- ${currentState.options.darkMode ? generateDarkModeScript() : ''}
469
  <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=docto41/ultimate-ai-generator" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
470
  </html>
 
53
  background-color: #4f46e5;
54
  color: white;
55
  }
56
+ #preview-frame {
57
+ transition: width 0.3s ease;
58
+ }
59
  </style>
60
  </head>
61
  <body class="bg-gray-100 min-h-screen">
 
449
  }
450
 
451
  function generateSampleHTML() {
452
+ // Get user inputs
453
+ const steps = currentState.steps.filter(step => step.trim() !== '');
454
+ const hasHero = steps.some(step => step.toLowerCase().includes('hero'));
455
+ const hasFeatures = steps.some(step => step.toLowerCase().includes('feature'));
456
+
457
+ // Generate title based on website type
458
+ const titles = {
459
+ business: "Professional Business Website",
460
+ ecommerce: "Online Store",
461
+ portfolio: "Creative Portfolio",
462
+ blog: "Personal Blog",
463
+ landing: "High-Converting Landing Page",
464
+ webapp: "Web Application",
465
+ custom: "Custom Website"
466
+ };
467
+ const title = titles[currentState.websiteType] || "My Website";
468
+
469
+ // Generate style based on preference
470
+ const styles = {
471
+ modern: `
472
+ .hero {
473
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
474
+ color: white;
475
+ }
476
+ .feature-card {
477
+ transition: transform 0.3s ease;
478
+ }
479
+ .feature-card:hover {
480
+ transform: translateY(-5px);
481
+ }
482
+ `,
483
+ minimal: `
484
+ body {
485
+ font-family: 'Helvetica Neue', sans-serif;
486
+ }
487
+ .hero {
488
+ background: white;
489
+ color: #333;
490
+ }
491
+ .feature-card {
492
+ border: 1px solid #e2e8f0;
493
+ }
494
+ `,
495
+ vibrant: `
496
+ .hero {
497
+ background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
498
+ color: white;
499
+ }
500
+ .feature-card {
501
+ background: white;
502
+ box-shadow: 0 10px 20px rgba(0,0,0,0.1);
503
+ }
504
+ `,
505
+ elegant: `
506
+ body {
507
+ font-family: 'Georgia', serif;
508
+ }
509
+ .hero {
510
+ background: linear-gradient(to right, #434343 0%, black 100%);
511
+ color: white;
512
+ }
513
+ .feature-card {
514
+ background: #f8f9fa;
515
+ border-left: 4px solid #6c757d;
516
+ }
517
+ `,
518
+ dark: `
519
+ body {
520
+ background-color: #1a202c;
521
+ color: #e2e8f0;
522
+ }
523
+ .hero {
524
+ background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
525
+ color: white;
526
+ }
527
+ .feature-card {
528
+ background: #2d3748;
529
+ color: #e2e8f0;
530
+ }
531
+ `,
532
+ custom: `
533
+ .hero {
534
+ background: linear-gradient(135deg, #6e8efb, #a777e3);
535
+ color: white;
536
+ }
537
+ .feature-card {
538
+ background: white;
539
+ border-radius: 0.5rem;
540
+ box-shadow: 0 4px 6px rgba(0,0,0,0.1);
541
+ }
542
+ `
543
+ };
544
+ const style = styles[currentState.style] || styles.modern;
545
+
546
+ // Generate animations if enabled
547
+ const animations = currentState.options.animations ? `
548
+ @keyframes fadeIn {
549
+ from { opacity: 0; }
550
+ to { opacity: 1; }
551
+ }
552
+ .animate-fade-in {
553
+ animation: fadeIn 1s ease-in;
554
+ }
555
+ ` : '';
556
+
557
+ // Generate dark mode if enabled
558
+ const darkModeToggle = currentState.options.darkMode ? `
559
+ <button id="dark-mode-toggle" class="fixed bottom-4 right-4 bg-gray-800 text-white p-3 rounded-full shadow-lg">
560
+ <i class="fas fa-moon"></i>
561
+ </button>
562
+ ` : '';
563
+
564
+ const darkModeScript = currentState.options.darkMode ? `
565
+ <script>
566
+ const darkModeToggle = document.getElementById('dark-mode-toggle');
567
+ darkModeToggle.addEventListener('click', () => {
568
+ document.body.classList.toggle('dark-mode');
569
+ const icon = darkModeToggle.querySelector('i');
570
+ if (document.body.classList.contains('dark-mode')) {
571
+ icon.classList.remove('fa-moon');
572
+ icon.classList.add('fa-sun');
573
+ } else {
574
+ icon.classList.remove('fa-sun');
575
+ icon.classList.add('fa-moon');
576
+ }
577
+ });
578
+ <\/script>
579
+ ` : '';
580
+
581
+ // Generate HTML structure
582
  let html = `<!DOCTYPE html>
583
  <html lang="en">
584
  <head>
585
  <meta charset="UTF-8">
586
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
587
+ <title>${title}</title>
588
  <script src="https://cdn.tailwindcss.com"><\/script>
589
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
590
  <style>
591
+ ${style}
592
+ ${animations}
593
+ .dark-mode {
594
+ background-color: #1a202c;
595
+ color: #e2e8f0;
596
+ }
597
+ .dark-mode .hero {
598
+ background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
599
+ }
600
+ .dark-mode .feature-card {
601
+ background: #2d3748;
602
+ color: #e2e8f0;
603
+ }
604
  </style>
605
  </head>
606
+ <body class="${currentState.style === 'dark' ? 'bg-gray-900 text-white' : 'bg-white text-gray-800'}">
607
+ ${hasHero ? `
608
+ <!-- Hero Section -->
609
+ <section class="hero py-20 px-4 text-center ${currentState.options.animations ? 'animate-fade-in' : ''}">
610
+ <div class="max-w-4xl mx-auto">
611
+ <h1 class="text-4xl md:text-6xl font-bold mb-6">Welcome to ${title}</h1>
612
+ <p class="text-xl mb-8">${steps[0] || 'A beautifully designed website created with AI'}</p>
613
+ <button class="bg-white text-purple-600 hover:bg-gray-100 px-8 py-3 rounded-full text-lg font-semibold transition-all duration-300 transform hover:scale-105">
614
+ Get Started
615
+ </button>
616
+ </div>
617
+ </section>
618
+ ` : ''}
619
+
620
+ ${hasFeatures ? `
621
+ <!-- Features Section -->
622
+ <section class="py-16 px-4 ${currentState.options.animations ? 'animate-fade-in' : ''}">
623
+ <div class="max-w-6xl mx-auto">
624
+ <h2 class="text-3xl font-bold text-center mb-12">Key Features</h2>
625
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
626
+ <div class="feature-card p-8 rounded-lg">
627
+ <div class="text-purple-600 text-4xl mb-4">
628
+ <i class="fas fa-rocket"></i>
629
+ </div>
630
+ <h3 class="text-xl font-bold mb-3">${steps[1] ? steps[1].split(' ').slice(0, 3).join(' ') : 'Fast Performance'}</h3>
631
+ <p>${steps[1] || 'Our website is optimized for blazing fast loading speeds.'}</p>
632
+ </div>
633
+ <div class="feature-card p-8 rounded-lg">
634
+ <div class="text-purple-600 text-4xl mb-4">
635
+ <i class="fas fa-mobile-alt"></i>
636
+ </div>
637
+ <h3 class="text-xl font-bold mb-3">${currentState.options.responsive ? 'Responsive Design' : 'Mobile Friendly'}</h3>
638
+ <p>${steps[1] ? steps[1].split(' ').slice(0, 10).join(' ') : 'Looks great on all devices from desktop to mobile.'}</p>
639
+ </div>
640
+ <div class="feature-card p-8 rounded-lg">
641
+ <div class="text-purple-600 text-4xl mb-4">
642
+ <i class="fas fa-cog"></i>
643
+ </div>
644
+ <h3 class="text-xl font-bold mb-3">${currentState.options.seo ? 'SEO Optimized' : 'Customizable'}</h3>
645
+ <p>${steps[1] ? steps[1].split(' ').slice(0, 8).join(' ') : 'Easily customize to fit your brand and needs.'}</p>
646
+ </div>
647
+ </div>
648
+ </div>
649
+ </section>
650
+ ` : ''}
651
+
652
+ <!-- CTA Section -->
653
+ <section class="py-16 px-4 bg-gray-100 ${currentState.style === 'dark' ? 'bg-gray-800' : ''} ${currentState.options.animations ? 'animate-fade-in' : ''}">
654
+ <div class="max-w-4xl mx-auto text-center">
655
+ <h2 class="text-3xl font-bold mb-6">Ready to get started?</h2>
656
+ <p class="text-xl mb-8">Join thousands of satisfied customers today.</p>
657
+ <button class="bg-purple-600 hover:bg-purple-700 text-white px-8 py-3 rounded-full text-lg font-semibold transition-all duration-300 transform hover:scale-105">
658
+ Contact Us
659
+ </button>
660
+ </div>
661
+ </section>
662
+
663
+ ${darkModeToggle}
664
+
665
  <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js"><\/script>
666
+ ${darkModeScript}
667
  <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=docto41/ultimate-ai-generator" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
668
  </html>
prompts.txt CHANGED
@@ -1,3 +1,4 @@
1
  je veux le plus immense de générator de site web pro , par description en direct étape par étape je veux que le site est plus puissant 100000 fois que deep site , bolt.new.lovable ai toutes les imemense IA regrouper en une seul
2
  toutes les boutons ne sont pas cliquable faire une mise a jours complet afin toutes les boutons fonctionne
3
- aucun bouton sont cliquable reparer toute errreur
 
 
1
  je veux le plus immense de générator de site web pro , par description en direct étape par étape je veux que le site est plus puissant 100000 fois que deep site , bolt.new.lovable ai toutes les imemense IA regrouper en une seul
2
  toutes les boutons ne sont pas cliquable faire une mise a jours complet afin toutes les boutons fonctionne
3
+ aucun bouton sont cliquable reparer toute errreur
4
+ GENERATE WEBSITE ne fonctionne pas