ai-chatflow-nexus / index.html
BoomerAng9's picture
Clone huly.io but an AI first tool calling and chat version.
3899d68 verified
Raw History Blame Contribute Delete
9.79 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI ChatFlow Nexus | AI-first Chat & Tool Calling</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
</head>
<body class="bg-gray-900 text-white min-h-screen flex flex-col">
<custom-navbar></custom-navbar>
<main class="flex-grow container mx-auto px-4 py-8">
<div id="vanta-bg" class="fixed top-0 left-0 w-full h-full -z-10"></div>
<div class="max-w-6xl mx-auto bg-gray-800/80 backdrop-blur-md rounded-xl shadow-2xl overflow-hidden">
<!-- App Header -->
<div class="p-6 border-b border-gray-700">
<div class="flex items-center justify-between">
<h1 class="text-3xl font-bold bg-gradient-to-r from-purple-400 to-blue-500 bg-clip-text text-transparent">
AI ChatFlow Nexus
</h1>
<div class="flex space-x-3">
<button class="px-4 py-2 bg-blue-600 hover:bg-blue-700 rounded-lg transition-all flex items-center">
<i data-feather="plus" class="mr-2"></i>
New Chat
</button>
<button class="p-2 bg-gray-700 hover:bg-gray-600 rounded-lg transition-all">
<i data-feather="settings"></i>
</button>
</div>
</div>
<p class="mt-2 text-gray-400">Your AI-powered tool calling and chat assistant</p>
</div>
<!-- Main Chat Area -->
<div class="flex h-[70vh]">
<!-- Sidebar -->
<div class="w-64 border-r border-gray-700 bg-gray-900/50 p-4 hidden md:block">
<div class="mb-6">
<h3 class="text-sm font-semibold text-gray-400 mb-2">RECENT CHATS</h3>
<ul class="space-y-1">
<li class="p-2 rounded hover:bg-gray-700 cursor-pointer flex items-center">
<i data-feather="message-square" class="w-4 h-4 mr-2 text-blue-400"></i>
<span class="truncate">API Integration Help</span>
</li>
<li class="p-2 rounded hover:bg-gray-700 cursor-pointer flex items-center">
<i data-feather="message-square" class="w-4 h-4 mr-2 text-blue-400"></i>
<span class="truncate">Data Analysis</span>
</li>
<li class="p-2 rounded bg-gray-700 cursor-pointer flex items-center">
<i data-feather="message-square" class="w-4 h-4 mr-2 text-blue-400"></i>
<span class="truncate">New Project Setup</span>
</li>
</ul>
</div>
<div>
<h3 class="text-sm font-semibold text-gray-400 mb-2">TOOLS</h3>
<ul class="space-y-1">
<li class="p-2 rounded hover:bg-gray-700 cursor-pointer flex items-center">
<i data-feather="code" class="w-4 h-4 mr-2 text-green-400"></i>
<span class="truncate">Code Generator</span>
</li>
<li class="p-2 rounded hover:bg-gray-700 cursor-pointer flex items-center">
<i data-feather="database" class="w-4 h-4 mr-2 text-purple-400"></i>
<span class="truncate">Database Query</span>
</li>
<li class="p-2 rounded hover:bg-gray-700 cursor-pointer flex items-center">
<i data-feather="image" class="w-4 h-4 mr-2 text-yellow-400"></i>
<span class="truncate">Image Generator</span>
</li>
</ul>
</div>
</div>
<!-- Chat Content -->
<div class="flex-1 flex flex-col">
<div class="flex-1 overflow-y-auto p-6 space-y-6">
<!-- AI Message -->
<div class="flex items-start">
<div class="w-10 h-10 rounded-full bg-purple-600 flex items-center justify-center mr-4 flex-shrink-0">
<i data-feather="cpu" class="w-5 h-5"></i>
</div>
<div class="bg-gray-700/50 rounded-xl p-4 max-w-3xl">
<p class="font-medium mb-1">AI Assistant</p>
<p class="text-gray-300">Hello! I'm your AI assistant. How can I help you today? I can help with coding, data analysis, image generation, and more. Try asking me anything or selecting a tool from the sidebar.</p>
<div class="mt-3 flex flex-wrap gap-2">
<span class="text-xs bg-gray-600 px-2 py-1 rounded-full">Tool Calling</span>
<span class="text-xs bg-gray-600 px-2 py-1 rounded-full">Code Generation</span>
<span class="text-xs bg-gray-600 px-2 py-1 rounded-full">Data Analysis</span>
</div>
</div>
</div>
<!-- Example Tool Response -->
<div class="flex items-start">
<div class="w-10 h-10 rounded-full bg-blue-600 flex items-center justify-center mr-4 flex-shrink-0">
<i data-feather="code" class="w-5 h-5"></i>
</div>
<div class="bg-gray-700/50 rounded-xl p-4 max-w-3xl">
<div class="flex items-center mb-1">
<p class="font-medium mr-2">Code Generator</p>
<span class="text-xs bg-blue-600 px-2 py-0.5 rounded-full">TOOL</span>
</div>
<div class="bg-gray-800 rounded-lg p-3 my-2 overflow-x-auto">
<pre class="text-sm font-mono text-green-400">function greet(name) {
return `Hello ${name}!`;
}</pre>
</div>
<p class="text-gray-300 text-sm mt-1">Here's a simple greeting function in JavaScript. Would you like me to explain it or create something more complex?</p>
</div>
</div>
</div>
<!-- Input Area -->
<div class="p-4 border-t border-gray-700">
<div class="relative">
<textarea
class="w-full bg-gray-700 border border-gray-600 rounded-lg pl-4 pr-12 py-3 focus:outline-none focus:ring-2 focus:ring-blue-500 resize-none"
placeholder="Message AI ChatFlow Nexus..."
rows="1"></textarea>
<button class="absolute right-3 bottom-3 p-1 bg-blue-600 rounded-lg hover:bg-blue-700 transition-all">
<i data-feather="send" class="w-5 h-5"></i>
</button>
</div>
<div class="flex items-center justify-between mt-2 text-xs text-gray-400">
<div class="flex space-x-2">
<button class="p-1 hover:bg-gray-700 rounded">
<i data-feather="paperclip"></i>
</button>
<button class="p-1 hover:bg-gray-700 rounded">
<i data-feather="code"></i>
</button>
<button class="p-1 hover:bg-gray-700 rounded">
<i data-feather="image"></i>
</button>
</div>
<div>
<span>AI is thinking...</span>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<custom-footer></custom-footer>
<!-- Scripts -->
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
VANTA.NET({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x3b82f6,
backgroundColor: 0x111827,
points: 12.00,
maxDistance: 22.00,
spacing: 18.00
});
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>