auranexus / frontend /index.html
Ahmed766's picture
Upload frontend/index.html with huggingface_hub
4716a13 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AuraNexus - AI Content Orchestration Platform</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
color: #fff;
min-height: 100vh;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo {
display: flex;
align-items: center;
gap: 10px;
font-size: 1.8rem;
font-weight: bold;
}
.logo i {
color: #4cc9f0;
}
nav ul {
display: flex;
list-style: none;
gap: 30px;
}
nav a {
color: white;
text-decoration: none;
font-weight: 500;
transition: color 0.3s;
}
nav a:hover {
color: #4cc9f0;
}
.hero {
text-align: center;
padding: 80px 0;
}
.hero h1 {
font-size: 3.5rem;
margin-bottom: 20px;
background: linear-gradient(to right, #4cc9f0, #f72585);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero p {
font-size: 1.2rem;
max-width: 700px;
margin: 0 auto 30px;
color: #e0e0e0;
}
.btn {
background: linear-gradient(45deg, #4361ee, #3a0ca3);
color: white;
border: none;
padding: 15px 30px;
font-size: 1.1rem;
border-radius: 50px;
cursor: pointer;
transition: transform 0.3s, box-shadow 0.3s;
text-decoration: none;
display: inline-block;
}
.btn:hover {
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin: 80px 0;
}
.feature-card {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 30px;
text-align: center;
transition: transform 0.3s;
}
.feature-card:hover {
transform: translateY(-10px);
}
.feature-card i {
font-size: 3rem;
color: #4cc9f0;
margin-bottom: 20px;
}
.feature-card h3 {
font-size: 1.5rem;
margin-bottom: 15px;
}
.feature-card p {
color: #ccc;
}
.dashboard {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 30px;
margin: 50px 0;
}
.dashboard h2 {
text-align: center;
margin-bottom: 30px;
font-size: 2rem;
}
.input-group {
margin-bottom: 20px;
}
.input-group label {
display: block;
margin-bottom: 8px;
font-weight: 500;
}
.input-group input, .input-group select, .input-group textarea {
width: 100%;
padding: 12px 15px;
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.2);
background: rgba(0, 0, 0, 0.2);
color: white;
font-size: 1rem;
}
.input-group textarea {
min-height: 120px;
resize: vertical;
}
.output-container {
margin-top: 30px;
padding: 20px;
background: rgba(0, 0, 0, 0.2);
border-radius: 8px;
min-height: 150px;
}
.output-container h3 {
margin-bottom: 15px;
}
.output-content {
white-space: pre-wrap;
line-height: 1.6;
}
footer {
text-align: center;
padding: 30px 0;
margin-top: 50px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
.hero h1 {
font-size: 2.5rem;
}
nav ul {
gap: 15px;
}
}
</style>
</head>
<body>
<div class="container">
<header>
<div class="logo">
<i class="fas fa-brain"></i>
<span>AuraNexus</span>
</div>
<nav>
<ul>
<li><a href="#"><i class="fas fa-home"></i> Home</a></li>
<li><a href="#"><i class="fas fa-magic"></i> Create</a></li>
<li><a href="#"><i class="fas fa-chart-line"></i> Analytics</a></li>
<li><a href="#"><i class="fas fa-cog"></i> Settings</a></li>
</ul>
</nav>
</header>
<section class="hero">
<h1>AI-Powered Content Orchestration</h1>
<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>
<button class="btn" onclick="document.getElementById('dashboard').scrollIntoView({behavior: 'smooth'})"><i class="fas fa-bolt"></i> Start Creating</button>
</section>
<section class="features">
<div class="feature-card">
<i class="fas fa-lightbulb"></i>
<h3>Ideation</h3>
<p>Generate creative ideas and topics based on trends and audience insights using AI.</p>
</div>
<div class="feature-card">
<i class="fas fa-paint-brush"></i>
<h3>Creation</h3>
<p>Create high-quality content including text, images, and videos with AI assistance.</p>
</div>
<div class="feature-card">
<i class="fas fa-sync-alt"></i>
<h3>Optimization</h3>
<p>Optimize content for different platforms and audiences automatically.</p>
</div>
<div class="feature-card">
<i class="fas fa-satellite"></i>
<h3>Distribution</h3>
<p>Publish content across multiple platforms with scheduled posting.</p>
</div>
<div class="feature-card">
<i class="fas fa-chart-bar"></i>
<h3>Analytics</h3>
<p>Track performance and get AI-powered insights for improvement.</p>
</div>
<div class="feature-card">
<i class="fas fa-shield-alt"></i>
<h3>Privacy First</h3>
<p>Self-hosted solution with complete control over your data and content.</p>
</div>
</section>
<section class="dashboard" id="dashboard">
<h2><i class="fas fa-magic"></i> Create Content</h2>
<div class="input-group">
<label for="topic">Topic or Idea</label>
<input type="text" id="topic" placeholder="Enter your topic or idea...">
</div>
<div class="input-group">
<label for="contentType">Content Type</label>
<select id="contentType">
<option value="social">Social Media Post</option>
<option value="blog">Blog Article</option>
<option value="video_script">Video Script</option>
<option value="newsletter">Newsletter Content</option>
</select>
</div>
<div class="input-group">
<label for="platform">Target Platform</label>
<select id="platform">
<option value="twitter">Twitter</option>
<option value="instagram">Instagram</option>
<option value="linkedin">LinkedIn</option>
<option value="youtube">YouTube</option>
<option value="blog">Blog</option>
</select>
</div>
<div class="input-group">
<label for="prompt">Additional Instructions (Optional)</label>
<textarea id="prompt" placeholder="Add any specific instructions or requirements..."></textarea>
</div>
<button class="btn" onclick="generateContent()" id="generateBtn">
<i class="fas fa-wand-magic-sparkles"></i> Generate Content
</button>
<div class="output-container">
<h3><i class="fas fa-file-alt"></i> Generated Content</h3>
<div class="output-content" id="outputContent">
Your generated content will appear here...
</div>
</div>
</section>
<footer>
<p>&copy; 2023 AuraNexus - Open Source AI Content Orchestration Platform</p>
<p>Self-hosted • Privacy-focused • Open Source</p>
</footer>
</div>
<script>
async function generateContent() {
const topic = document.getElementById('topic').value;
const contentType = document.getElementById('contentType').value;
const platform = document.getElementById('platform').value;
const prompt = document.getElementById('prompt').value;
if (!topic) {
alert('Please enter a topic or idea');
return;
}
const generateBtn = document.getElementById('generateBtn');
generateBtn.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Generating...';
generateBtn.disabled = true;
try {
// In a real implementation, this would call the backend API
// For demo purposes, we'll simulate the response
await new Promise(resolve => setTimeout(resolve, 2000));
const mockResponses = {
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`,
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.`,
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!"`,
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!`
};
const response = mockResponses[contentType] || mockResponses.social;
document.getElementById('outputContent').textContent = response;
} catch (error) {
document.getElementById('outputContent').textContent = `Error: ${error.message}`;
} finally {
generateBtn.innerHTML = '<i class="fas fa-wand-magic-sparkles"></i> Generate Content';
generateBtn.disabled = false;
}
}
// Allow Enter key to trigger generation
document.getElementById('topic').addEventListener('keypress', function(event) {
if (event.key === 'Enter') {
generateContent();
}
});
</script>
</body>
</html>