Spaces:
Running

undefined / index.html
Marwuko's picture
add the backend
5e523a1 verified
Raw History Blame Contribute Delete
36.1 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AVA: AI Virtual Assistant</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
<style>
.gradient-text {
background: linear-gradient(90deg, #6d28d9 0%, #a855f7 50%, #7c3aed 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.command-input {
transition: all 0.3s ease;
}
.command-input:focus {
box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
}
</style>
</head>
<body class="bg-gray-50">
<div id="vanta-bg" class="fixed inset-0 z-0"></div>
<div class="relative z-10 min-h-screen flex flex-col">
<!-- Header -->
<header class="bg-white/80 backdrop-blur-md shadow-sm">
<div class="container mx-auto px-4 py-6 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="zap" class="text-purple-600 w-8 h-8"></i>
<span class="text-2xl font-bold gradient-text">AVA</span>
</div>
<nav class="hidden md:flex space-x-6">
<a href="#home" class="text-gray-700 hover:text-purple-600 font-medium transition-colors">Home</a>
<a href="#features" class="text-gray-700 hover:text-purple-600 font-medium transition-colors">Features</a>
<a href="#integrations" class="text-gray-700 hover:text-purple-600 font-medium transition-colors">Integrations</a>
<a href="#documentation" class="text-gray-700 hover:text-purple-600 font-medium transition-colors">Documentation</a>
<a href="dashboard.html" class="text-gray-700 hover:text-purple-600 font-medium transition-colors">Dashboard</a>
<a href="backend.html" class="text-gray-700 hover:text-purple-600 font-medium transition-colors">API</a>
</nav>
<button class="md:hidden" onclick="toggleMobileMenu()">
<i data-feather="menu" class="w-6 h-6 text-gray-700"></i>
</button>
</div>
</header>
<!-- Hero Section -->
<main class="flex-grow flex items-center">
<div class="container mx-auto px-4 py-16">
<div class="max-w-4xl mx-auto text-center">
<h1 class="text-4xl md:text-6xl font-bold mb-6">
<span class="gradient-text">Transform Words</span>
<br>
<span class="text-gray-800">Into Automated Workflows</span>
</h1>
<p class="text-xl text-gray-600 mb-10 max-w-2xl mx-auto">
AVA understands your natural language commands and executes complex business tasks across Excel, PowerPoint, Email and more.
</p>
<div class="relative max-w-2xl mx-auto">
<div class="absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none">
<i data-feather="command" class="text-purple-500"></i>
</div>
<input
type="text"
id="command-input"
class="command-input w-full pl-12 pr-32 py-4 rounded-full border border-gray-200 focus:outline-none focus:border-purple-300 bg-white/90 text-gray-700 placeholder-gray-400 shadow-lg"
placeholder="Try: 'Extract sales data from column B to D, filter by revenue > $10K...'"
>
<div class="absolute inset-y-0 right-0 flex items-center pr-4">
<button onclick="executeCommand()" class="bg-purple-600 hover:bg-purple-700 text-white px-6 py-2 rounded-full font-medium transition-colors">
Execute
</button>
</div>
</div>
<div class="mt-12 grid grid-cols-2 md:grid-cols-4 gap-6">
<div class="bg-white/80 p-6 rounded-xl shadow-sm border border-gray-100 backdrop-blur-sm hover:shadow-md transition-all duration-300 cursor-pointer group" onclick="showFeatureModal('excel')">
<i data-feather="file-text" class="w-8 h-8 text-purple-600 mb-3 group-hover:scale-110 transition-transform"></i>
<h3 class="font-semibold text-gray-800">Excel Automation</h3>
<p class="text-sm text-gray-600 mt-2">Transform, analyze, and visualize spreadsheet data with natural language commands</p>
<div class="mt-3 text-xs text-purple-500 font-medium">Click to learn more</div>
</div>
<div class="bg-white/80 p-6 rounded-xl shadow-sm border border-gray-100 backdrop-blur-sm hover:shadow-md transition-all duration-300 cursor-pointer group" onclick="showFeatureModal('dashboards')">
<i data-feather="bar-chart-2" class="w-8 h-8 text-purple-600 mb-3 group-hover:scale-110 transition-transform"></i>
<h3 class="font-semibold text-gray-800">Dashboards</h3>
<p class="text-sm text-gray-600 mt-2">Create interactive reports and real-time business intelligence dashboards</p>
<div class="mt-3 text-xs text-purple-500 font-medium">Click to learn more</div>
</div>
<div class="bg-white/80 p-6 rounded-xl shadow-sm border border-gray-100 backdrop-blur-sm hover:shadow-md transition-all duration-300 cursor-pointer group" onclick="showFeatureModal('email')">
<i data-feather="mail" class="w-8 h-8 text-purple-600 mb-3 group-hover:scale-110 transition-transform"></i>
<h3 class="font-semibold text-gray-800">Email Workflows</h3>
<p class="text-sm text-gray-600 mt-2">Automate email campaigns, responses, and communication workflows</p>
<div class="mt-3 text-xs text-purple-500 font-medium">Click to learn more</div>
</div>
<div class="bg-white/80 p-6 rounded-xl shadow-sm border border-gray-100 backdrop-blur-sm hover:shadow-md transition-all duration-300 cursor-pointer group" onclick="showFeatureModal('scheduled')">
<i data-feather="refresh-cw" class="w-8 h-8 text-purple-600 mb-3 group-hover:scale-110 transition-transform"></i>
<h3 class="font-semibold text-gray-800">Scheduled Tasks</h3>
<p class="text-sm text-gray-600 mt-2">Set up recurring automation tasks and monitor performance metrics</p>
<div class="mt-3 text-xs text-purple-500 font-medium">Click to learn more</div>
</div>
</div>
</div>
</div>
</main>
<!-- Demo Section -->
<section class="py-16 bg-white/80 backdrop-blur-sm">
<div class="container mx-auto px-4">
<div class="text-center mb-12">
<h2 class="text-3xl font-bold text-gray-800 mb-4">See AVA in Action</h2>
<p class="text-gray-600 max-w-2xl mx-auto">Watch how natural language commands transform into automated workflows across multiple platforms</p>
</div>
<div class="max-w-5xl mx-auto bg-gray-800 rounded-xl overflow-hidden shadow-xl">
<div class="flex items-center px-4 py-3 bg-gray-900 border-b border-gray-700">
<div class="flex space-x-2 mr-4">
<div class="w-3 h-3 rounded-full bg-red-500"></div>
<div class="w-3 h-3 rounded-full bg-yellow-500"></div>
<div class="w-3 h-3 rounded-full bg-green-500"></div>
</div>
<div class="flex-1 bg-gray-800 text-gray-400 text-sm py-1 px-3 rounded">
User Command: "Extract Q3 sales data, create pivot table, generate PDF report, and email to sales team with executive summary"
</div>
</div>
<div class="aspect-w-16 aspect-h-9 relative cursor-pointer" onclick="showDemoVideo()">
<img src="http://static.photos/technology/1024x576/42" alt="AVA Demo" class="w-full h-full object-cover hover:opacity-90 transition-opacity">
<div class="absolute inset-0 flex items-center justify-center">
<div class="bg-purple-600 hover:bg-purple-700 text-white p-4 rounded-full shadow-lg transition-all duration-300 transform hover:scale-110">
<i data-feather="play" class="w-8 h-8"></i>
</div>
</div>
</div>
<div class="mt-12 grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100 hover:shadow-md transition-all duration-300 cursor-pointer group" onclick="showInfoModal('modular')">
<div class="flex items-center mb-4">
<div class="bg-purple-100 p-2 rounded-lg mr-4 group-hover:bg-purple-200 transition-colors">
<i data-feather="code" class="w-6 h-6 text-purple-600 group-hover:scale-110 transition-transform"></i>
</div>
<h3 class="text-lg font-semibold text-gray-800">Modular Workflows</h3>
</div>
<p class="text-gray-600">Pre-built components for common business operations that can be combined in endless ways. Drag-and-drop interface with 150+ pre-built modules.</p>
<div class="mt-3 text-xs text-purple-500 font-medium">Click for details</div>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100 hover:shadow-md transition-all duration-300 cursor-pointer group" onclick="showInfoModal('ai')">
<div class="flex items-center mb-4">
<div class="bg-purple-100 p-2 rounded-lg mr-4 group-hover:bg-purple-200 transition-colors">
<i data-feather="cpu" class="w-6 h-6 text-purple-600 group-hover:scale-110 transition-transform"></i>
</div>
<h3 class="text-lg font-semibold text-gray-800">AI-Powered</h3>
</div>
<p class="text-gray-600">Advanced NLP understands context and intent behind your commands. Learns from your usage patterns to improve accuracy.</p>
<div class="mt-3 text-xs text-purple-500 font-medium">Click for details</div>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100 hover:shadow-md transition-all duration-300 cursor-pointer group" onclick="showInfoModal('enterprise')">
<div class="flex items-center mb-4">
<div class="bg-purple-100 p-2 rounded-lg mr-4 group-hover:bg-purple-200 transition-colors">
<i data-feather="layers" class="w-6 h-6 text-purple-600 group-hover:scale-110 transition-transform"></i>
</div>
<h3 class="text-lg font-semibold text-gray-800">Enterprise Ready</h3>
</div>
<p class="text-gray-600">Secure, scalable architecture that integrates with your existing systems. SOC 2 compliant with 99.9% uptime SLA.</p>
<div class="mt-3 text-xs text-purple-500 font-medium">Click for details</div>
</div>
</div>
</div>
</section>
<!-- CTA Section -->
<section class="py-16 bg-gradient-to-r from-purple-600 to-indigo-600">
<div class="container mx-auto px-4 text-center">
<h2 class="text-3xl font-bold text-white mb-6">Ready to Automate Your Workflows?</h2>
<p class="text-xl text-purple-100 mb-8 max-w-2xl mx-auto">
Join our beta program and experience the power of AI-driven automation.
</p>
<div class="flex flex-col sm:flex-row justify-center space-y-4 sm:space-y-0 sm:space-x-4">
<button onclick="requestDemo()" class="bg-white text-purple-600 hover:bg-gray-100 px-8 py-4 rounded-full font-semibold text-lg shadow-lg transition-colors transform hover:scale-105">
Request Demo
</button>
<button onclick="showDocumentation()" class="bg-transparent border-2 border-white text-white hover:bg-white/10 px-8 py-4 rounded-full font-semibold text-lg shadow-lg transition-colors transform hover:scale-105">
Documentation
</button>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-gray-400 py-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<div class="flex items-center space-x-2 mb-4">
<i data-feather="zap" class="text-purple-400 w-6 h-6"></i>
<span class="text-xl font-bold text-white">AVA</span>
</div>
<p class="mb-4">The AI Virtual Assistant that transforms your words into automated workflows.</p>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white transition-colors">
<i data-feather="twitter"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white transition-colors">
<i data-feather="github"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white transition-colors">
<i data-feather="linkedin"></i>
</a>
</div>
</div>
<div>
<h4 class="text-white font-semibold mb-4">Product</h4>
<ul class="space-y-2">
<li><a href="#" class="hover:text-white transition-colors">Features</a></li>
<li><a href="#" class="hover:text-white transition-colors">Integrations</a></li>
<li><a href="#" class="hover:text-white transition-colors">Pricing</a></li>
<li><a href="#" class="hover:text-white transition-colors">Roadmap</a></li>
</ul>
</div>
<div>
<h4 class="text-white font-semibold mb-4">Resources</h4>
<ul class="space-y-2">
<li><a href="#" class="hover:text-white transition-colors">Documentation</a></li>
<li><a href="#" class="hover:text-white transition-colors">Tutorials</a></li>
<li><a href="#" class="hover:text-white transition-colors">API Reference</a></li>
<li><a href="#" class="hover:text-white transition-colors">Community</a></li>
</ul>
</div>
<div>
<h4 class="text-white font-semibold mb-4">Company</h4>
<ul class="space-y-2">
<li><a href="#" class="hover:text-white transition-colors">About</a></li>
<li><a href="#" class="hover:text-white transition-colors">Blog</a></li>
<li><a href="#" class="hover:text-white transition-colors">Careers</a></li>
<li><a href="#" class="hover:text-white transition-colors">Contact</a></li>
</ul>
</div>
</div>
<div class="border-t border-gray-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
<p>© 2023 AVA AI. All rights reserved.</p>
<div class="flex space-x-6 mt-4 md:mt-0">
<a href="#" class="hover:text-white transition-colors">Privacy</a>
<a href="#" class="hover:text-white transition-colors">Terms</a>
<a href="#" class="hover:text-white transition-colors">Cookies</a>
</div>
</div>
</div>
</footer>
</div>
<!-- Feature Modal -->
<div id="featureModal" class="fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center hidden">
<div class="bg-white rounded-xl max-w-2xl w-full mx-4 max-h-[90vh] overflow-y-auto">
<div class="p-6 border-b border-gray-200">
<div class="flex justify-between items-center">
<h3 class="text-xl font-bold text-gray-800" id="modalTitle">Feature Details</h3>
<button onclick="closeModal()" class="text-gray-500 hover:text-gray-700">
<i data-feather="x" class="w-6 h-6"></i>
</button>
</div>
</div>
<div class="p-6" id="modalContent">
<!-- Modal content will be dynamically inserted here -->
</div>
</div>
</div>
<script>
// Initialize Vanta.js background
VANTA.NET({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x7c4dff,
backgroundColor: 0xf8fafc,
points: 12.00,
maxDistance: 24.00,
spacing: 19.00
});
// Function to toggle mobile menu
function toggleMobileMenu() {
const nav = document.querySelector('nav');
nav.classList.toggle('hidden');
nav.classList.toggle('flex');
nav.classList.toggle('absolute');
nav.classList.toggle('top-full');
nav.classList.toggle('left-0');
nav.classList.toggle('right-0');
nav.classList.toggle('bg-white');
nav.classList.toggle('p-4');
nav.classList.toggle('shadow-lg');
}
// Function to execute command
function executeCommand() {
const commandInput = document.getElementById('command-input');
const command = commandInput.value.trim();
if (command) {
// Show loading state
const executeBtn = document.querySelector('button[onclick="executeCommand()"]');
const originalText = executeBtn.innerHTML;
executeBtn.innerHTML = '<i data-feather="loader" class="w-5 h-5 animate-spin"></i>';
feather.replace();
// Process different command types
let response = '';
if (command.toLowerCase().includes('excel') || command.toLowerCase().includes('spreadsheet')) {
response = `✓ Excel automation initiated: ${command}\n• Data extraction complete\n• Formulas applied successfully\n• Charts generated\n• File saved to cloud storage';
} else if (command.toLowerCase().includes('dashboard') || command.toLowerCase().includes('report')) {
response = `✓ Dashboard creation started: ${command}\n• Data sources connected\n• Visualizations configured\n• Real-time updates enabled\n• Access permissions set`;
} else if (command.toLowerCase().includes('email') || command.toLowerCase().includes('mail')) {
response = `✓ Email workflow activated: ${command}\n• Recipients processed\n• Templates applied\n• Attachments included\n• Delivery scheduled`;
} else if (command.toLowerCase().includes('schedule') || command.toLowerCase().includes('recurring')) {
response = `✓ Scheduled task configured: ${command}\n• Frequency set to daily\n• Notifications enabled\n• Performance tracking active\n• Error handling configured`;
} else {
response = `✓ Command processed: ${command}\n• Natural language parsed\n• Workflow steps identified\n• Resources allocated\n• Execution initiated`;
}
// Simulate processing
setTimeout(() => {
showNotification(`Command executed successfully!`, 'success');
executeBtn.innerHTML = originalText;
feather.replace();
// Show detailed results in modal
const modal = document.getElementById('featureModal');
const title = document.getElementById('modalTitle');
const content = document.getElementById('modalContent');
title.textContent = 'Command Execution Results';
content.innerHTML = `
<div class="space-y-4">
<div class="bg-green-50 border border-green-200 rounded-lg p-4">
<h4 class="font-semibold text-green-800 mb-2">Execution Complete</h4>
<pre class="text-sm text-green-700 bg-white p-3 rounded border">${response}</pre>
<div class="flex space-x-3 mt-4">
<button onclick="saveResults()" class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-lg font-medium transition-colors">
Save Results
</button>
<button onclick="shareWorkflow()" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg font-medium transition-colors">
Share Workflow
</button>
</div>
</div>
`;
modal.classList.remove('hidden');
feather.replace();
}, 1500);
} else {
showNotification('Please enter a command first', 'error');
}
}
// Function to show feature modal
function showFeatureModal(feature) {
const modal = document.getElementById('featureModal');
const title = document.getElementById('modalTitle');
const content = document.getElementById('modalContent');
const featureData = {
excel: {
title: 'Excel Automation',
content: `
<div class="space-y-4">
<p class="text-gray-600">Transform your Excel workflows with natural language commands:</p>
<ul class="list-disc list-inside text-gray-600 space-y-2">
<li>Data extraction and transformation</li>
<li>Advanced formula generation</li>
<li>Pivot table creation and analysis</li>
<li>Chart and visualization automation</li>
<li>Multi-sheet operations</li>
</ul>
<div class="bg-purple-50 p-4 rounded-lg">
<h4 class="font-semibold text-purple-800 mb-2">Example Commands:</h4>
<p class="text-sm text-purple-700">"Extract sales data from columns A to F, filter by region 'North America', calculate total revenue, and create a pie chart"</p>
</div>
</div>
`
},
dashboards: {
title: 'Interactive Dashboards',
content: `
<div class="space-y-4">
<p class="text-gray-600">Create powerful business intelligence dashboards:</p>
<ul class="list-disc list-inside text-gray-600 space-y-2">
<li>Real-time data visualization</li>
<li>Custom KPIs and metrics</li>
<li>Interactive filtering and drill-down</li>
<li>Automated data refresh</li>
<li>Multi-source data integration</li>
</ul>
</div>
`
},
email: {
title: 'Email Workflow Automation',
content: `
<div class="space-y-4">
<p class="text-gray-600">Streamline your email communication and campaigns:</p>
<ul class="list-disc list-inside text-gray-600 space-y-2">
<li>Automated email responses</li>
<li>Personalized bulk emailing</li>
<li>Attachment processing</li>
<li>Email analytics and tracking</li>
</ul>
</div>
`
},
scheduled: {
title: 'Scheduled Tasks',
content: `
<div class="space-y-4">
<p class="text-gray-600">Set up recurring automation tasks:</p>
<ul class="list-disc list-inside text-gray-600 space-y-2">
<li>Recurring report generation</li>
<li>Data backup and synchronization</li>
<li>Performance monitoring</li>
<li>Alert and notification systems</li>
</ul>
</div>
`
}
};
if (featureData[feature]) {
title.textContent = featureData[feature].title;
content.innerHTML = featureData[feature].content;
modal.classList.remove('hidden');
feather.replace();
}
}
// Function to show info modal
function showInfoModal(type) {
const modal = document.getElementById('featureModal');
const title = document.getElementById('modalTitle');
const content = document.getElementById('modalContent');
const infoData = {
modular: {
title: 'Modular Workflow System',
content: `
<div class="space-y-4">
<p class="text-gray-600">Our modular approach allows you to build complex workflows from simple building blocks:</p>
<div class="grid grid-cols-2 gap-4">
<div class="bg-purple-50 p-3 rounded-lg">
<h5 class="font-semibold text-purple-800">150+ Pre-built Modules</h5>
<p class="text-sm text-purple-700">Data processing, API calls, file operations, and more</p>
</div>
<div class="bg-purple-50 p-3 rounded-lg">
<h5 class="font-semibold text-purple-800">Drag & Drop Interface</h5>
<p class="text-sm text-purple-700">Intuitive visual workflow builder</p>
</div>
</div>
</div>
`
},
ai: {
title: 'AI-Powered Intelligence',
content: `
<div class="space-y-4">
<p class="text-gray-600">Advanced machine learning capabilities:</p>
<ul class="list-disc list-inside text-gray-600">
<li>Natural Language Processing (NLP)</li>
<li>Contextual understanding</li>
<li>Predictive workflow suggestions</li>
<li>Continuous learning from usage patterns</li>
</ul>
</div>
`
},
enterprise: {
title: 'Enterprise-Grade Security',
content: `
<div class="space-y-4">
<p class="text-gray-600">Built for security and compliance:</p>
<div class="bg-green-50 p-4 rounded-lg">
<h4 class="font-semibold text-green-800 mb-2">Certifications & Compliance</h4>
<ul class="list-disc list-inside text-green-700 space-y-2">
<li>SOC 2 Type II Certified</li>
<li>GDPR Compliant</li>
<li>HIPAA Ready</li>
<li>99.9% Uptime SLA</li>
</ul>
</div>
</div>
`
}
};
if (infoData[type]) {
title.textContent = infoData[type].title;
content.innerHTML = infoData[type].content;
modal.classList.remove('hidden');
feather.replace();
}
}
// Function to close modal
function closeModal() {
const modal = document.getElementById('featureModal');
modal.classList.add('hidden');
}
// Function to show demo video
function showDemoVideo() {
showNotification('Demo video player would open here with full AVA workflow demonstration', 'info');
}
// Function to request demo
function requestDemo() {
showNotification('Demo request form would appear here. Our team will contact you within 24 hours!', 'success');
}
// Function to show documentation
function showDocumentation() {
showNotification('Opening AVA Documentation Center with tutorials, API references, and best practices', 'info');
}
// Function to save results
function saveResults() {
showNotification('Results saved to your workspace! You can access them from the Dashboard.', 'success');
closeModal();
}
// Function to share workflow
function shareWorkflow() {
showNotification('Workflow shared successfully! Team members can now access and collaborate.', 'info');
closeModal();
}
// Function to show notification
function showNotification(message, type) {
const notification = document.createElement('div');
const bgColor = type === 'success' ? 'bg-green-500' :
type === 'error' ? 'bg-red-500' :
'bg-blue-500';
notification.className = `fixed top-4 right-4 p-4 rounded-lg shadow-lg z-50 transform transition-all duration-300 ${bgColor} text-white flex items-center space-x-3`;
const icon = type === 'success' ? 'check-circle' :
type === 'error' ? 'alert-circle' :
'info';
notification.innerHTML = `
<i data-feather="${icon}" class="w-5 h-5"></i>
<span>${message}</span>
`;
document.body.appendChild(notification);
feather.replace();
// Animate in
anime({
targets: notification,
translateX: [100, 0],
opacity: [0, 1],
duration: 500,
easing: 'easeOutExpo'
});
setTimeout(() => {
// Animate out
anime({
targets: notification,
translateX: 100,
opacity: 0,
duration: 500,
easing: 'easeInExpo',
complete: function() {
notification.remove();
}
});
}, 4000);
}
// Animate command input on load
document.addEventListener('DOMContentLoaded', function() {
anime({
targets: '#command-input',
translateY: [20, 0],
opacity: [0, 1],
duration: 800,
easing: 'easeOutExpo'
});
anime({
targets: '.gradient-text',
backgroundPosition: ['0% 50%', '100% 50%'],
duration: 8000,
easing: 'linear',
loop: true
});
// Add keyboard shortcut for command input
document.getElementById('command-input').addEventListener('keypress', function(e) {
if (e.key === 'Enter') {
executeCommand();
}
});
// Add click handlers for all interactive elements
document.querySelectorAll('button').forEach(button => {
button.addEventListener('click', function() {
anime({
targets: button,
scale: [1, 0.95, 1],
duration: 200,
easing: 'easeInOutSine'
});
});
});
// Add hover effects for all clickable cards
document.querySelectorAll('[onclick]').forEach(element => {
element.addEventListener('mouseenter', function() {
anime({
targets: element,
translateY: -5,
duration: 200,
easing: 'easeOutQuad'
});
});
element.addEventListener('mouseleave', function() {
anime({
targets: element,
translateY: 0,
duration: 200,
easing: 'easeOutQuad'
});
});
});
});
// Initialize feather icons
feather.replace();
</script>
</body>
</html>