deepsite-companion / chat.html
raysite's picture
start
46a4236 verified
Raw History Blame Contribute Delete
3.27 kB
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chat | MJ's AI Companion</title>
<link rel="stylesheet" href="style.css">
<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>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
500: '#0ea5e9',
},
secondary: {
500: '#6b7280',
}
}
}
}
}
</script>
</head>
<body class="bg-gray-900 text-gray-100 min-h-screen">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-8">
<div class="max-w-4xl mx-auto">
<div class="flex items-center mb-8">
<custom-avatar size="md"></custom-avatar>
<h1 class="text-3xl font-bold">Chat with MJ</h1>
</div>
<div class="bg-gray-800 rounded-xl p-6 shadow-lg mb-8">
<div class="flex items-start mb-4">
<div class="bg-primary-500/20 p-2 rounded-full mr-3">
<i data-feather="message-square" class="w-5 h-5 text-primary-500"></i>
</div>
<p class="text-lg">Have a conversation with your AI companion. MJ remembers context and can help with various topics.</p>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-6 mb-6 h-[400px] overflow-y-auto flex flex-col" id="chat-container">
<chat-bubble type="received">
Hello! I'm MJ, your AI companion. How can I help you today?
</chat-bubble>
</div>
<div class="flex gap-2">
<input
type="text"
id="message-input"
placeholder="Type your message..."
class="flex-1 bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500"
>
<button
id="send-button"
class="bg-primary-500 hover:bg-primary-600 text-white px-4 py-2 rounded-lg transition-colors flex items-center gap-2"
>
<i data-feather="send" class="w-5 h-5"></i>
Send
</button>
</div>
</div>
</main>
<custom-footer></custom-footer>
<voice-controls></voice-controls>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="components/avatar.js"></script>
<script src="components/voice-controls.js"></script>
<script src="components/chat-bubble.js"></script>
<script src="script.js"></script>
<script>feather.replace();</script>
</body>
</html>