S-Dreamer commited on
Commit
5d9f280
·
verified ·
1 Parent(s): b703c38

Add 2 files

Browse files
Files changed (2) hide show
  1. index.html +371 -18
  2. prompts.txt +2 -1
index.html CHANGED
@@ -74,6 +74,187 @@
74
  transform: translateY(-5px);
75
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
76
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  </style>
78
  </head>
79
  <body class="bg-light text-dark">
@@ -107,8 +288,8 @@
107
  <h1 class="text-4xl md:text-5xl font-bold leading-tight mb-6">Build Stunning Landing Pages <span class="text-primary">Powered by AI</span></h1>
108
  <p class="text-lg text-gray-600 mb-8">Our AI analyzes your business and generates high-converting landing pages in minutes. No design skills required.</p>
109
  <div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4">
110
- <button class="gradient-bg text-white px-6 py-3 rounded-lg font-medium hover:opacity-90 transition flex items-center justify-center">
111
- <i class="fas fa-bolt mr-2"></i> Generate Your Page Now
112
  </button>
113
  <button class="border border-primary text-primary px-6 py-3 rounded-lg font-medium hover:bg-primary hover:text-white transition flex items-center justify-center">
114
  <i class="fas fa-play-circle mr-2"></i> Watch Demo
@@ -488,8 +669,178 @@
488
  </div>
489
  </footer>
490
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
491
  <script>
492
- // Simple demo of the AI processing
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
493
  document.getElementById('generateBtn').addEventListener('click', function() {
494
  const description = document.getElementById('businessDescription').value;
495
 
@@ -506,24 +857,26 @@
506
 
507
  // Simulate AI processing delay
508
  setTimeout(function() {
509
- alert('Your AI-generated landing page is ready! This is a demo - in a real implementation, you would be redirected to your new page editor.');
 
 
 
 
 
 
 
 
 
 
 
 
510
  }, 3000);
511
  });
512
 
513
- // Style selection
514
- const styleOptions = document.querySelectorAll('.style-option');
515
- styleOptions.forEach(option => {
516
- option.addEventListener('click', function() {
517
- // Remove active class from all options
518
- styleOptions.forEach(opt => {
519
- opt.classList.remove('border-white', 'border-opacity-50');
520
- opt.classList.add('border-transparent');
521
- });
522
-
523
- // Add active class to clicked option
524
- this.classList.remove('border-transparent');
525
- this.classList.add('border-white', 'border-opacity-50');
526
- });
527
  });
528
  </script>
529
  <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=S-Dreamer/landingai" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
 
74
  transform: translateY(-5px);
75
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
76
  }
77
+
78
+ /* Chat interface styles */
79
+ .chat-container {
80
+ position: fixed;
81
+ bottom: 20px;
82
+ right: 20px;
83
+ width: 350px;
84
+ max-height: 500px;
85
+ background: white;
86
+ border-radius: 12px;
87
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
88
+ overflow: hidden;
89
+ transform: translateY(20px);
90
+ opacity: 0;
91
+ transition: all 0.3s ease;
92
+ z-index: 1000;
93
+ }
94
+
95
+ .chat-container.open {
96
+ transform: translateY(0);
97
+ opacity: 1;
98
+ }
99
+
100
+ .chat-header {
101
+ background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
102
+ color: white;
103
+ padding: 12px 16px;
104
+ display: flex;
105
+ justify-content: space-between;
106
+ align-items: center;
107
+ }
108
+
109
+ .chat-messages {
110
+ height: 300px;
111
+ overflow-y: auto;
112
+ padding: 16px;
113
+ background: #f9fafb;
114
+ }
115
+
116
+ .message {
117
+ margin-bottom: 12px;
118
+ max-width: 80%;
119
+ padding: 8px 12px;
120
+ border-radius: 12px;
121
+ font-size: 14px;
122
+ }
123
+
124
+ .user-message {
125
+ background: #e0e7ff;
126
+ margin-left: auto;
127
+ border-bottom-right-radius: 4px;
128
+ }
129
+
130
+ .ai-message {
131
+ background: white;
132
+ border: 1px solid #e5e7eb;
133
+ margin-right: auto;
134
+ border-bottom-left-radius: 4px;
135
+ }
136
+
137
+ .chat-input {
138
+ display: flex;
139
+ padding: 12px;
140
+ border-top: 1px solid #e5e7eb;
141
+ background: white;
142
+ }
143
+
144
+ .chat-input input {
145
+ flex: 1;
146
+ padding: 8px 12px;
147
+ border: 1px solid #e5e7eb;
148
+ border-radius: 8px;
149
+ outline: none;
150
+ }
151
+
152
+ .chat-input button {
153
+ margin-left: 8px;
154
+ background: #6366f1;
155
+ color: white;
156
+ border: none;
157
+ border-radius: 8px;
158
+ padding: 8px 12px;
159
+ cursor: pointer;
160
+ }
161
+
162
+ .chat-toggle {
163
+ position: fixed;
164
+ bottom: 20px;
165
+ right: 20px;
166
+ width: 60px;
167
+ height: 60px;
168
+ background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
169
+ color: white;
170
+ border-radius: 50%;
171
+ display: flex;
172
+ justify-content: center;
173
+ align-items: center;
174
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
175
+ cursor: pointer;
176
+ z-index: 1000;
177
+ }
178
+
179
+ /* Live preview editor */
180
+ .editor-panel {
181
+ position: fixed;
182
+ top: 0;
183
+ right: 0;
184
+ width: 400px;
185
+ height: 100vh;
186
+ background: white;
187
+ box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
188
+ transform: translateX(100%);
189
+ transition: transform 0.3s ease;
190
+ z-index: 999;
191
+ overflow-y: auto;
192
+ }
193
+
194
+ .editor-panel.open {
195
+ transform: translateX(0);
196
+ }
197
+
198
+ .editor-header {
199
+ padding: 16px;
200
+ border-bottom: 1px solid #e5e7eb;
201
+ display: flex;
202
+ justify-content: space-between;
203
+ align-items: center;
204
+ }
205
+
206
+ .editor-content {
207
+ padding: 16px;
208
+ }
209
+
210
+ .form-group {
211
+ margin-bottom: 16px;
212
+ }
213
+
214
+ .form-group label {
215
+ display: block;
216
+ margin-bottom: 8px;
217
+ font-weight: 500;
218
+ }
219
+
220
+ .form-group input, .form-group textarea, .form-group select {
221
+ width: 100%;
222
+ padding: 8px 12px;
223
+ border: 1px solid #e5e7eb;
224
+ border-radius: 6px;
225
+ }
226
+
227
+ .color-picker {
228
+ display: flex;
229
+ gap: 8px;
230
+ }
231
+
232
+ .color-option {
233
+ width: 30px;
234
+ height: 30px;
235
+ border-radius: 50%;
236
+ cursor: pointer;
237
+ border: 2px solid transparent;
238
+ }
239
+
240
+ .color-option.selected {
241
+ border-color: #6366f1;
242
+ }
243
+
244
+ .toggle-editor {
245
+ position: fixed;
246
+ top: 50%;
247
+ right: 0;
248
+ transform: translateY(-50%);
249
+ background: #6366f1;
250
+ color: white;
251
+ padding: 12px 8px;
252
+ border-top-left-radius: 8px;
253
+ border-bottom-left-radius: 8px;
254
+ cursor: pointer;
255
+ z-index: 998;
256
+ box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
257
+ }
258
  </style>
259
  </head>
260
  <body class="bg-light text-dark">
 
288
  <h1 class="text-4xl md:text-5xl font-bold leading-tight mb-6">Build Stunning Landing Pages <span class="text-primary">Powered by AI</span></h1>
289
  <p class="text-lg text-gray-600 mb-8">Our AI analyzes your business and generates high-converting landing pages in minutes. No design skills required.</p>
290
  <div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4">
291
+ <button id="startBuildingBtn" class="gradient-bg text-white px-6 py-3 rounded-lg font-medium hover:opacity-90 transition flex items-center justify-center">
292
+ <i class="fas fa-bolt mr-2"></i> Start Building Now
293
  </button>
294
  <button class="border border-primary text-primary px-6 py-3 rounded-lg font-medium hover:bg-primary hover:text-white transition flex items-center justify-center">
295
  <i class="fas fa-play-circle mr-2"></i> Watch Demo
 
669
  </div>
670
  </footer>
671
 
672
+ <!-- AI Chat Assistant -->
673
+ <div class="chat-toggle" id="chatToggle">
674
+ <i class="fas fa-comment-dots"></i>
675
+ </div>
676
+
677
+ <div class="chat-container" id="chatContainer">
678
+ <div class="chat-header">
679
+ <div class="flex items-center">
680
+ <i class="fas fa-robot mr-2"></i>
681
+ <span>LandingAI Assistant</span>
682
+ </div>
683
+ <button id="closeChat"><i class="fas fa-times"></i></button>
684
+ </div>
685
+ <div class="chat-messages" id="chatMessages">
686
+ <div class="message ai-message">
687
+ Hi there! I'm your LandingAI assistant. How can I help you build your perfect landing page today?
688
+ </div>
689
+ </div>
690
+ <div class="chat-input">
691
+ <input type="text" id="chatInput" placeholder="Ask me anything about landing pages...">
692
+ <button id="sendMessage"><i class="fas fa-paper-plane"></i></button>
693
+ </div>
694
+ </div>
695
+
696
+ <!-- Live Editor Panel -->
697
+ <div class="editor-panel" id="editorPanel">
698
+ <div class="editor-header">
699
+ <h3>Page Editor</h3>
700
+ <button id="closeEditor"><i class="fas fa-times"></i></button>
701
+ </div>
702
+ <div class="editor-content">
703
+ <div class="form-group">
704
+ <label for="pageTitle">Page Title</label>
705
+ <input type="text" id="pageTitle" value="Welcome to My Business">
706
+ </div>
707
+ <div class="form-group">
708
+ <label for="pageSubtitle">Subtitle</label>
709
+ <input type="text" id="pageSubtitle" value="The best solution for your needs">
710
+ </div>
711
+ <div class="form-group">
712
+ <label>Primary Color</label>
713
+ <div class="color-picker">
714
+ <div class="color-option selected" style="background-color: #6366f1;" data-color="primary"></div>
715
+ <div class="color-option" style="background-color: #3b82f6;" data-color="blue"></div>
716
+ <div class="color-option" style="background-color: #10b981;" data-color="green"></div>
717
+ <div class="color-option" style="background-color: #f59e0b;" data-color="orange"></div>
718
+ <div class="color-option" style="background-color: #ef4444;" data-color="red"></div>
719
+ </div>
720
+ </div>
721
+ <div class="form-group">
722
+ <label for="ctaText">Button Text</label>
723
+ <input type="text" id="ctaText" value="Get Started Now">
724
+ </div>
725
+ <div class="form-group">
726
+ <label for="pageContent">Content</label>
727
+ <textarea id="pageContent" rows="4">Our AI-generated landing page will help you convert more visitors into customers with optimized design and compelling copy.</textarea>
728
+ </div>
729
+ <button class="w-full gradient-bg text-white py-3 rounded-lg font-medium mt-4 hover:opacity-90 transition">
730
+ Save Changes
731
+ </button>
732
+ </div>
733
+ </div>
734
+
735
+ <div class="toggle-editor" id="toggleEditor">
736
+ <i class="fas fa-pencil-alt"></i>
737
+ </div>
738
+
739
  <script>
740
+ // Chat interface functionality
741
+ const chatToggle = document.getElementById('chatToggle');
742
+ const chatContainer = document.getElementById('chatContainer');
743
+ const closeChat = document.getElementById('closeChat');
744
+ const chatMessages = document.getElementById('chatMessages');
745
+ const chatInput = document.getElementById('chatInput');
746
+ const sendMessage = document.getElementById('sendMessage');
747
+
748
+ // Editor panel functionality
749
+ const editorPanel = document.getElementById('editorPanel');
750
+ const toggleEditor = document.getElementById('toggleEditor');
751
+ const closeEditor = document.getElementById('closeEditor');
752
+
753
+ // Toggle chat interface
754
+ chatToggle.addEventListener('click', () => {
755
+ chatContainer.classList.toggle('open');
756
+ });
757
+
758
+ closeChat.addEventListener('click', () => {
759
+ chatContainer.classList.remove('open');
760
+ });
761
+
762
+ // Toggle editor panel
763
+ toggleEditor.addEventListener('click', () => {
764
+ editorPanel.classList.toggle('open');
765
+ });
766
+
767
+ closeEditor.addEventListener('click', () => {
768
+ editorPanel.classList.remove('open');
769
+ });
770
+
771
+ // Send message in chat
772
+ sendMessage.addEventListener('click', sendChatMessage);
773
+ chatInput.addEventListener('keypress', (e) => {
774
+ if (e.key === 'Enter') {
775
+ sendChatMessage();
776
+ }
777
+ });
778
+
779
+ function sendChatMessage() {
780
+ const message = chatInput.value.trim();
781
+ if (message) {
782
+ // Add user message
783
+ const userMessage = document.createElement('div');
784
+ userMessage.className = 'message user-message';
785
+ userMessage.textContent = message;
786
+ chatMessages.appendChild(userMessage);
787
+
788
+ // Clear input
789
+ chatInput.value = '';
790
+
791
+ // Scroll to bottom
792
+ chatMessages.scrollTop = chatMessages.scrollHeight;
793
+
794
+ // Simulate AI response after delay
795
+ setTimeout(() => {
796
+ const responses = [
797
+ "I can help you with that! Based on your business description, I recommend focusing on clear value propositions and strong call-to-actions.",
798
+ "Great question! Our AI analyzes top-performing pages in your industry to create designs that convert.",
799
+ "For your type of business, I suggest using a modern design with vibrant colors to attract attention.",
800
+ "You can customize any aspect of your page in the editor panel. Would you like me to open it for you?",
801
+ "Our data shows that pages with video backgrounds convert 30% better. Consider adding one!",
802
+ "I notice you haven't selected a template yet. Would you like me to recommend one based on your business type?"
803
+ ];
804
+
805
+ const randomResponse = responses[Math.floor(Math.random() * responses.length)];
806
+
807
+ const aiMessage = document.createElement('div');
808
+ aiMessage.className = 'message ai-message';
809
+ aiMessage.textContent = randomResponse;
810
+ chatMessages.appendChild(aiMessage);
811
+
812
+ // Scroll to bottom
813
+ chatMessages.scrollTop = chatMessages.scrollHeight;
814
+ }, 1000);
815
+ }
816
+ }
817
+
818
+ // Style selection
819
+ const styleOptions = document.querySelectorAll('.style-option');
820
+ styleOptions.forEach(option => {
821
+ option.addEventListener('click', function() {
822
+ // Remove active class from all options
823
+ styleOptions.forEach(opt => {
824
+ opt.classList.remove('border-white', 'border-opacity-50');
825
+ opt.classList.add('border-transparent');
826
+ });
827
+
828
+ // Add active class to clicked option
829
+ this.classList.remove('border-transparent');
830
+ this.classList.add('border-white', 'border-opacity-50');
831
+ });
832
+ });
833
+
834
+ // Color selection in editor
835
+ const colorOptions = document.querySelectorAll('.color-option');
836
+ colorOptions.forEach(option => {
837
+ option.addEventListener('click', function() {
838
+ colorOptions.forEach(opt => opt.classList.remove('selected'));
839
+ this.classList.add('selected');
840
+ });
841
+ });
842
+
843
+ // Page generation
844
  document.getElementById('generateBtn').addEventListener('click', function() {
845
  const description = document.getElementById('businessDescription').value;
846
 
 
857
 
858
  // Simulate AI processing delay
859
  setTimeout(function() {
860
+ // Show editor panel
861
+ editorPanel.classList.add('open');
862
+
863
+ // Show chat with initial message
864
+ chatContainer.classList.add('open');
865
+
866
+ const aiMessage = document.createElement('div');
867
+ aiMessage.className = 'message ai-message';
868
+ aiMessage.textContent = "Your landing page is ready! I've opened the editor so you can customize it. Let me know if you need any help!";
869
+ chatMessages.appendChild(aiMessage);
870
+
871
+ // Scroll to bottom
872
+ chatMessages.scrollTop = chatMessages.scrollHeight;
873
  }, 3000);
874
  });
875
 
876
+ // Start building button
877
+ document.getElementById('startBuildingBtn').addEventListener('click', function() {
878
+ // Scroll to generator section
879
+ document.querySelector('.gradient-bg').scrollIntoView({ behavior: 'smooth' });
 
 
 
 
 
 
 
 
 
 
880
  });
881
  </script>
882
  <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=S-Dreamer/landingai" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
prompts.txt CHANGED
@@ -1 +1,2 @@
1
- Ai powered landing page building
 
 
1
+ Ai powered landing page building
2
+ Add real-time ai support to create real landing pages