Ahmed766 commited on
Commit
4716a13
·
verified ·
1 Parent(s): 32fad6e

Upload frontend/index.html with huggingface_hub

Browse files
Files changed (1) hide show
  1. frontend/index.html +365 -0
frontend/index.html ADDED
@@ -0,0 +1,365 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>AuraNexus - AI Content Orchestration Platform</title>
7
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
8
+ <style>
9
+ * {
10
+ margin: 0;
11
+ padding: 0;
12
+ box-sizing: border-box;
13
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
14
+ }
15
+
16
+ body {
17
+ background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
18
+ color: #fff;
19
+ min-height: 100vh;
20
+ }
21
+
22
+ .container {
23
+ max-width: 1200px;
24
+ margin: 0 auto;
25
+ padding: 20px;
26
+ }
27
+
28
+ header {
29
+ display: flex;
30
+ justify-content: space-between;
31
+ align-items: center;
32
+ padding: 20px 0;
33
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1);
34
+ }
35
+
36
+ .logo {
37
+ display: flex;
38
+ align-items: center;
39
+ gap: 10px;
40
+ font-size: 1.8rem;
41
+ font-weight: bold;
42
+ }
43
+
44
+ .logo i {
45
+ color: #4cc9f0;
46
+ }
47
+
48
+ nav ul {
49
+ display: flex;
50
+ list-style: none;
51
+ gap: 30px;
52
+ }
53
+
54
+ nav a {
55
+ color: white;
56
+ text-decoration: none;
57
+ font-weight: 500;
58
+ transition: color 0.3s;
59
+ }
60
+
61
+ nav a:hover {
62
+ color: #4cc9f0;
63
+ }
64
+
65
+ .hero {
66
+ text-align: center;
67
+ padding: 80px 0;
68
+ }
69
+
70
+ .hero h1 {
71
+ font-size: 3.5rem;
72
+ margin-bottom: 20px;
73
+ background: linear-gradient(to right, #4cc9f0, #f72585);
74
+ -webkit-background-clip: text;
75
+ -webkit-text-fill-color: transparent;
76
+ }
77
+
78
+ .hero p {
79
+ font-size: 1.2rem;
80
+ max-width: 700px;
81
+ margin: 0 auto 30px;
82
+ color: #e0e0e0;
83
+ }
84
+
85
+ .btn {
86
+ background: linear-gradient(45deg, #4361ee, #3a0ca3);
87
+ color: white;
88
+ border: none;
89
+ padding: 15px 30px;
90
+ font-size: 1.1rem;
91
+ border-radius: 50px;
92
+ cursor: pointer;
93
+ transition: transform 0.3s, box-shadow 0.3s;
94
+ text-decoration: none;
95
+ display: inline-block;
96
+ }
97
+
98
+ .btn:hover {
99
+ transform: translateY(-3px);
100
+ box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
101
+ }
102
+
103
+ .features {
104
+ display: grid;
105
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
106
+ gap: 30px;
107
+ margin: 80px 0;
108
+ }
109
+
110
+ .feature-card {
111
+ background: rgba(255, 255, 255, 0.05);
112
+ backdrop-filter: blur(10px);
113
+ border-radius: 15px;
114
+ padding: 30px;
115
+ text-align: center;
116
+ transition: transform 0.3s;
117
+ }
118
+
119
+ .feature-card:hover {
120
+ transform: translateY(-10px);
121
+ }
122
+
123
+ .feature-card i {
124
+ font-size: 3rem;
125
+ color: #4cc9f0;
126
+ margin-bottom: 20px;
127
+ }
128
+
129
+ .feature-card h3 {
130
+ font-size: 1.5rem;
131
+ margin-bottom: 15px;
132
+ }
133
+
134
+ .feature-card p {
135
+ color: #ccc;
136
+ }
137
+
138
+ .dashboard {
139
+ background: rgba(255, 255, 255, 0.05);
140
+ backdrop-filter: blur(10px);
141
+ border-radius: 15px;
142
+ padding: 30px;
143
+ margin: 50px 0;
144
+ }
145
+
146
+ .dashboard h2 {
147
+ text-align: center;
148
+ margin-bottom: 30px;
149
+ font-size: 2rem;
150
+ }
151
+
152
+ .input-group {
153
+ margin-bottom: 20px;
154
+ }
155
+
156
+ .input-group label {
157
+ display: block;
158
+ margin-bottom: 8px;
159
+ font-weight: 500;
160
+ }
161
+
162
+ .input-group input, .input-group select, .input-group textarea {
163
+ width: 100%;
164
+ padding: 12px 15px;
165
+ border-radius: 8px;
166
+ border: 1px solid rgba(255, 255, 255, 0.2);
167
+ background: rgba(0, 0, 0, 0.2);
168
+ color: white;
169
+ font-size: 1rem;
170
+ }
171
+
172
+ .input-group textarea {
173
+ min-height: 120px;
174
+ resize: vertical;
175
+ }
176
+
177
+ .output-container {
178
+ margin-top: 30px;
179
+ padding: 20px;
180
+ background: rgba(0, 0, 0, 0.2);
181
+ border-radius: 8px;
182
+ min-height: 150px;
183
+ }
184
+
185
+ .output-container h3 {
186
+ margin-bottom: 15px;
187
+ }
188
+
189
+ .output-content {
190
+ white-space: pre-wrap;
191
+ line-height: 1.6;
192
+ }
193
+
194
+ footer {
195
+ text-align: center;
196
+ padding: 30px 0;
197
+ margin-top: 50px;
198
+ border-top: 1px solid rgba(255, 255, 255, 0.1);
199
+ }
200
+
201
+ @media (max-width: 768px) {
202
+ .hero h1 {
203
+ font-size: 2.5rem;
204
+ }
205
+
206
+ nav ul {
207
+ gap: 15px;
208
+ }
209
+ }
210
+ </style>
211
+ </head>
212
+ <body>
213
+ <div class="container">
214
+ <header>
215
+ <div class="logo">
216
+ <i class="fas fa-brain"></i>
217
+ <span>AuraNexus</span>
218
+ </div>
219
+ <nav>
220
+ <ul>
221
+ <li><a href="#"><i class="fas fa-home"></i> Home</a></li>
222
+ <li><a href="#"><i class="fas fa-magic"></i> Create</a></li>
223
+ <li><a href="#"><i class="fas fa-chart-line"></i> Analytics</a></li>
224
+ <li><a href="#"><i class="fas fa-cog"></i> Settings</a></li>
225
+ </ul>
226
+ </nav>
227
+ </header>
228
+
229
+ <section class="hero">
230
+ <h1>AI-Powered Content Orchestration</h1>
231
+ <p>Automate your entire content lifecycle from ideation to publishing with our open-source platform. Generate, optimize, and distribute content across all platforms seamlessly.</p>
232
+ <button class="btn" onclick="document.getElementById('dashboard').scrollIntoView({behavior: 'smooth'})"><i class="fas fa-bolt"></i> Start Creating</button>
233
+ </section>
234
+
235
+ <section class="features">
236
+ <div class="feature-card">
237
+ <i class="fas fa-lightbulb"></i>
238
+ <h3>Ideation</h3>
239
+ <p>Generate creative ideas and topics based on trends and audience insights using AI.</p>
240
+ </div>
241
+ <div class="feature-card">
242
+ <i class="fas fa-paint-brush"></i>
243
+ <h3>Creation</h3>
244
+ <p>Create high-quality content including text, images, and videos with AI assistance.</p>
245
+ </div>
246
+ <div class="feature-card">
247
+ <i class="fas fa-sync-alt"></i>
248
+ <h3>Optimization</h3>
249
+ <p>Optimize content for different platforms and audiences automatically.</p>
250
+ </div>
251
+ <div class="feature-card">
252
+ <i class="fas fa-satellite"></i>
253
+ <h3>Distribution</h3>
254
+ <p>Publish content across multiple platforms with scheduled posting.</p>
255
+ </div>
256
+ <div class="feature-card">
257
+ <i class="fas fa-chart-bar"></i>
258
+ <h3>Analytics</h3>
259
+ <p>Track performance and get AI-powered insights for improvement.</p>
260
+ </div>
261
+ <div class="feature-card">
262
+ <i class="fas fa-shield-alt"></i>
263
+ <h3>Privacy First</h3>
264
+ <p>Self-hosted solution with complete control over your data and content.</p>
265
+ </div>
266
+ </section>
267
+
268
+ <section class="dashboard" id="dashboard">
269
+ <h2><i class="fas fa-magic"></i> Create Content</h2>
270
+ <div class="input-group">
271
+ <label for="topic">Topic or Idea</label>
272
+ <input type="text" id="topic" placeholder="Enter your topic or idea...">
273
+ </div>
274
+
275
+ <div class="input-group">
276
+ <label for="contentType">Content Type</label>
277
+ <select id="contentType">
278
+ <option value="social">Social Media Post</option>
279
+ <option value="blog">Blog Article</option>
280
+ <option value="video_script">Video Script</option>
281
+ <option value="newsletter">Newsletter Content</option>
282
+ </select>
283
+ </div>
284
+
285
+ <div class="input-group">
286
+ <label for="platform">Target Platform</label>
287
+ <select id="platform">
288
+ <option value="twitter">Twitter</option>
289
+ <option value="instagram">Instagram</option>
290
+ <option value="linkedin">LinkedIn</option>
291
+ <option value="youtube">YouTube</option>
292
+ <option value="blog">Blog</option>
293
+ </select>
294
+ </div>
295
+
296
+ <div class="input-group">
297
+ <label for="prompt">Additional Instructions (Optional)</label>
298
+ <textarea id="prompt" placeholder="Add any specific instructions or requirements..."></textarea>
299
+ </div>
300
+
301
+ <button class="btn" onclick="generateContent()" id="generateBtn">
302
+ <i class="fas fa-wand-magic-sparkles"></i> Generate Content
303
+ </button>
304
+
305
+ <div class="output-container">
306
+ <h3><i class="fas fa-file-alt"></i> Generated Content</h3>
307
+ <div class="output-content" id="outputContent">
308
+ Your generated content will appear here...
309
+ </div>
310
+ </div>
311
+ </section>
312
+
313
+ <footer>
314
+ <p>&copy; 2023 AuraNexus - Open Source AI Content Orchestration Platform</p>
315
+ <p>Self-hosted • Privacy-focused • Open Source</p>
316
+ </footer>
317
+ </div>
318
+
319
+ <script>
320
+ async function generateContent() {
321
+ const topic = document.getElementById('topic').value;
322
+ const contentType = document.getElementById('contentType').value;
323
+ const platform = document.getElementById('platform').value;
324
+ const prompt = document.getElementById('prompt').value;
325
+
326
+ if (!topic) {
327
+ alert('Please enter a topic or idea');
328
+ return;
329
+ }
330
+
331
+ const generateBtn = document.getElementById('generateBtn');
332
+ generateBtn.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Generating...';
333
+ generateBtn.disabled = true;
334
+
335
+ try {
336
+ // In a real implementation, this would call the backend API
337
+ // For demo purposes, we'll simulate the response
338
+ await new Promise(resolve => setTimeout(resolve, 2000));
339
+
340
+ const mockResponses = {
341
+ social: `Check this out: ${topic}\n\nThis is a sample social media post about "${topic}". Engage with us and share your thoughts! #${topic.replace(/\s+/g, '')} #AIContent`,
342
+ blog: `# ${topic}\n\n## Introduction\n\n${topic} is an important topic that deserves attention. In this article, we'll explore the key aspects and implications of this subject.\n\n## Main Points\n\n1. First key point about ${topic}\n2. Second important aspect\n3. Conclusion and future outlook\n\n## Conclusion\n\n${topic} represents a significant opportunity for innovation and growth.`,
343
+ video_script: `[INTRO]\nHost: "Welcome back to our channel! Today we're discussing ${topic}."\n\n[MAIN CONTENT]\nVoiceover: "${topic} has become increasingly relevant in today's world. Here's what you need to know..."\n\n[CALL TO ACTION]\nHost: "What are your thoughts on ${topic}? Share in the comments below!"`,
344
+ newsletter: `## This Week in ${topic}\n\n### Featured Story\n\n${topic} continues to evolve rapidly. Here's the latest update...\n\n### Key Takeaways\n\n- Important insight about ${topic}\n- Actionable tip for our readers\n- What to watch for next\n\nStay informed and keep growing!`
345
+ };
346
+
347
+ const response = mockResponses[contentType] || mockResponses.social;
348
+ document.getElementById('outputContent').textContent = response;
349
+ } catch (error) {
350
+ document.getElementById('outputContent').textContent = `Error: ${error.message}`;
351
+ } finally {
352
+ generateBtn.innerHTML = '<i class="fas fa-wand-magic-sparkles"></i> Generate Content';
353
+ generateBtn.disabled = false;
354
+ }
355
+ }
356
+
357
+ // Allow Enter key to trigger generation
358
+ document.getElementById('topic').addEventListener('keypress', function(event) {
359
+ if (event.key === 'Enter') {
360
+ generateContent();
361
+ }
362
+ });
363
+ </script>
364
+ </body>
365
+ </html>