Spaces:
Running
Running
File size: 15,283 Bytes
101566e e75e6b4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PsychAI - Advanced Communication Assistant</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<style>
.gradient-bg {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.chat-bubble {
border-radius: 1.5rem;
max-width: 80%;
}
.user-bubble {
background-color: #4f46e5;
color: white;
border-bottom-right-radius: 0.5rem;
}
.ai-bubble {
background-color: #f3f4f6;
color: #111827;
border-bottom-left-radius: 0.5rem;
}
.analysis-tag {
font-size: 0.75rem;
padding: 0.25rem 0.5rem;
border-radius: 9999px;
}
.pulse-animation {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { opacity: 0.6; }
50% { opacity: 1; }
100% { opacity: 0.6; }
}
</style>
</head>
<body class="bg-gray-50 min-h-screen">
<!-- Navigation -->
<nav class="gradient-bg text-white shadow-lg">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="activity" class="w-6 h-6"></i>
<span class="text-xl font-bold">PsychAI</span>
</div>
<div class="hidden md:flex space-x-6">
<a href="#" class="hover:text-gray-200 transition">Home</a>
<a href="#" class="hover:text-gray-200 transition">Features</a>
<a href="#" class="hover:text-gray-200 transition">About</a>
</div>
<button class="md:hidden">
<i data-feather="menu" class="w-6 h-6"></i>
</button>
</div>
</nav>
<!-- Hero Section -->
<section class="gradient-bg text-white py-16">
<div class="container mx-auto px-4 text-center" data-aos="fade-up">
<h1 class="text-4xl md:text-5xl font-bold mb-6">Advanced Psychological AI Assistant</h1>
<p class="text-xl md:text-2xl mb-8 max-w-3xl mx-auto">
Analyze text, audio, and visual data to craft psychologically optimized responses
</p>
<div class="flex flex-col md:flex-row justify-center gap-4">
<button class="bg-white text-indigo-700 px-6 py-3 rounded-full font-semibold hover:bg-gray-100 transition shadow-lg">
Try Now
</button>
<button class="border-2 border-white text-white px-6 py-3 rounded-full font-semibold hover:bg-white hover:text-indigo-700 transition">
Learn More
</button>
</div>
</div>
</section>
<!-- Main Chat Interface -->
<section class="container mx-auto px-4 py-12 max-w-6xl">
<div class="bg-white rounded-xl shadow-xl overflow-hidden">
<!-- Chat Header -->
<div class="bg-gray-800 text-white p-4 flex items-center">
<div class="w-10 h-10 rounded-full bg-indigo-500 flex items-center justify-center">
<i data-feather="cpu" class="w-5 h-5"></i>
</div>
<div class="ml-3">
<h3 class="font-semibold">PsychAI Assistant</h3>
<p class="text-xs text-gray-300">Analyzing your input...</p>
</div>
<div class="ml-auto flex space-x-2">
<button class="p-2 rounded-full hover:bg-gray-700">
<i data-feather="settings" class="w-4 h-4"></i>
</button>
<button class="p-2 rounded-full hover:bg-gray-700">
<i data-feather="maximize-2" class="w-4 h-4"></i>
</button>
</div>
</div>
<!-- Chat Messages -->
<div class="h-96 overflow-y-auto p-4 space-y-4" id="chat-container">
<!-- AI Welcome Message -->
<div class="flex justify-start">
<div class="chat-bubble ai-bubble p-4">
<p>Hello! I'm PsychAI, your advanced psychological assistant. I can analyze text, audio, and visual data to help you craft the most effective responses based on psychological principles.</p>
<div class="mt-2 flex flex-wrap gap-2">
<span class="analysis-tag bg-blue-100 text-blue-800">Empathy Detected</span>
<span class="analysis-tag bg-purple-100 text-purple-800">Open-Ended</span>
</div>
</div>
</div>
<!-- User Message -->
<div class="flex justify-end">
<div class="chat-bubble user-bubble p-4">
<p>My partner seems distant lately. How should I approach this?</p>
</div>
</div>
<!-- AI Response -->
<div class="flex justify-start">
<div class="chat-bubble ai-bubble p-4">
<p>Based on psychological research, I recommend a gentle, non-confrontational approach. Try saying: "I've noticed you've seemed a bit distant recently. I want you to know I'm here to listen if you'd like to share what's on your mind."</p>
<div class="mt-2 flex flex-wrap gap-2">
<span class="analysis-tag bg-green-100 text-green-800">Active Listening</span>
<span class="analysis-tag bg-yellow-100 text-yellow-800">Non-Judgmental</span>
<span class="analysis-tag bg-red-100 text-red-800">Emotional Support</span>
</div>
</div>
</div>
<!-- AI Generating Indicator -->
<div class="flex justify-start hidden" id="ai-thinking">
<div class="chat-bubble ai-bubble p-4 flex items-center">
<div class="pulse-animation flex space-x-2">
<div class="w-2 h-2 bg-gray-400 rounded-full"></div>
<div class="w-2 h-2 bg-gray-400 rounded-full"></div>
<div class="w-2 h-2 bg-gray-400 rounded-full"></div>
</div>
<span class="ml-2 text-gray-500">Analyzing psychological markers...</span>
</div>
</div>
</div>
<!-- Input Area -->
<div class="border-t border-gray-200 p-4">
<div class="flex items-center">
<button class="p-2 text-gray-500 hover:text-gray-700">
<i data-feather="paperclip" class="w-5 h-5"></i>
</button>
<input type="text" placeholder="Type your message or upload text/audio/image..."
class="flex-1 border-0 focus:ring-0 focus:outline-none px-4 py-2">
<button class="p-2 text-indigo-600 hover:text-indigo-800">
<i data-feather="send" class="w-5 h-5"></i>
</button>
</div>
<div class="mt-2 flex justify-between text-xs text-gray-500">
<div class="flex space-x-2">
<button class="hover:text-indigo-600">Text Analysis</button>
<button class="hover:text-indigo-600">Audio Analysis</button>
<button class="hover:text-indigo-600">Visual Analysis</button>
</div>
<button class="hover:text-indigo-600">Psychological Settings</button>
</div>
</div>
</div>
</section>
<!-- Features Section -->
<section class="bg-gray-100 py-16">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">Advanced Psychological Analysis</h2>
<div class="grid md:grid-cols-3 gap-8">
<!-- Feature 1 -->
<div class="bg-white p-6 rounded-xl shadow-md" data-aos="fade-up">
<div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center mb-4">
<i data-feather="message-square" class="text-indigo-600 w-6 h-6"></i>
</div>
<h3 class="font-bold text-xl mb-2">Text Analysis</h3>
<p class="text-gray-600">Deep analysis of linguistic patterns, emotional tone, and psychological markers in written communication.</p>
</div>
<!-- Feature 2 -->
<div class="bg-white p-6 rounded-xl shadow-md" data-aos="fade-up" data-aos-delay="100">
<div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mb-4">
<i data-feather="mic" class="text-purple-600 w-6 h-6"></i>
</div>
<h3 class="font-bold text-xl mb-2">Audio Analysis</h3>
<p class="text-gray-600">Voice tone, speech patterns, and emotional cues analysis for comprehensive psychological profiling.</p>
</div>
<!-- Feature 3 -->
<div class="bg-white p-6 rounded-xl shadow-md" data-aos="fade-up" data-aos-delay="200">
<div class="w-12 h-12 rounded-full bg-pink-100 flex items-center justify-center mb-4">
<i data-feather="image" class="text-pink-600 w-6 h-6"></i>
</div>
<h3 class="font-bold text-xl mb-2">Visual Analysis</h3>
<p class="text-gray-600">Facial expression, body language, and micro-expressions analysis for deeper psychological insights.</p>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-white py-12">
<div class="container mx-auto px-4">
<div class="grid md:grid-cols-4 gap-8">
<div>
<h3 class="font-bold text-xl mb-4">PsychAI</h3>
<p class="text-gray-400">Advanced psychological analysis for better communication.</p>
</div>
<div>
<h4 class="font-semibold mb-4">Features</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Text Analysis</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Audio Analysis</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Visual Analysis</a></li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-4">Resources</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Documentation</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Research Papers</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Case Studies</a></li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-4">Connect</h4>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white"><i data-feather="twitter"></i></a>
<a href="#" class="text-gray-400 hover:text-white"><i data-feather="linkedin"></i></a>
<a href="#" class="text-gray-400 hover:text-white"><i data-feather="github"></i></a>
</div>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-400">
<p>© 2023 PsychAI. All rights reserved.</p>
</div>
</div>
</footer>
<script>
AOS.init({
duration: 800,
easing: 'ease-in-out',
once: true
});
feather.replace();
// Simple chat interaction simulation
document.querySelector('input').addEventListener('keypress', function(e) {
if(e.key === 'Enter') {
const chatContainer = document.getElementById('chat-container');
const thinkingIndicator = document.getElementById('ai-thinking');
// Show user message
const userMessage = this.value;
const userBubble = document.createElement('div');
userBubble.className = 'flex justify-end';
userBubble.innerHTML = `
<div class="chat-bubble user-bubble p-4">
<p>${userMessage}</p>
</div>
`;
chatContainer.appendChild(userBubble);
// Show thinking indicator
thinkingIndicator.classList.remove('hidden');
chatContainer.appendChild(thinkingIndicator);
// Scroll to bottom
chatContainer.scrollTop = chatContainer.scrollHeight;
// Clear input
this.value = '';
// Simulate AI response after delay
setTimeout(() => {
thinkingIndicator.classList.add('hidden');
// Create AI response
const aiBubble = document.createElement('div');
aiBubble.className = 'flex justify-start';
aiBubble.innerHTML = `
<div class="chat-bubble ai-bubble p-4">
<p>Based on psychological analysis, I recommend a response that shows empathy and openness. Try: "I appreciate you sharing that with me. How can I best support you in this situation?"</p>
<div class="mt-2 flex flex-wrap gap-2">
<span class="analysis-tag bg-green-100 text-green-800">Empathy</span>
<span class="analysis-tag bg-purple-100 text-purple-800">Supportive</span>
</div>
</div>
`;
chatContainer.appendChild(aiBubble);
// Scroll to bottom again
chatContainer.scrollTop = chatContainer.scrollHeight;
}, 2000);
}
});
</script>
</body>
</html>
|