добавь функциональности
Browse files- index.html +220 -6
index.html
CHANGED
|
@@ -70,7 +70,6 @@
|
|
| 70 |
</div>
|
| 71 |
</div>
|
| 72 |
</nav>
|
| 73 |
-
|
| 74 |
<!-- Hero Section -->
|
| 75 |
<div id="vanta-bg" class="gradient-bg text-white py-20">
|
| 76 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
@@ -90,6 +89,32 @@
|
|
| 90 |
DeepSeek's official free AI assistant for search, writing, reading, problem-solving, and translation
|
| 91 |
</p>
|
| 92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
<div class="flex flex-col sm:flex-row gap-4 justify-center items-center">
|
| 94 |
<a href="https://chat.deepseek.com/" class="bg-white text-purple-600 px-8 py-4 rounded-xl font-semibold text-lg hover:bg-gray-100 transition-colors hover-lift">
|
| 95 |
Start Conversation with DeepSeek-V3.2
|
|
@@ -108,8 +133,7 @@
|
|
| 108 |
</div>
|
| 109 |
</div>
|
| 110 |
</div>
|
| 111 |
-
|
| 112 |
-
<!-- Research Section -->
|
| 113 |
<section id="research" class="py-20 bg-white">
|
| 114 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 115 |
<div class="text-center mb-16">
|
|
@@ -172,6 +196,99 @@
|
|
| 172 |
</div>
|
| 173 |
</div>
|
| 174 |
</section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
|
| 176 |
<!-- Products Section -->
|
| 177 |
<section id="products" class="py-20 bg-gray-50">
|
|
@@ -213,8 +330,7 @@
|
|
| 213 |
</div>
|
| 214 |
</div>
|
| 215 |
</section>
|
| 216 |
-
|
| 217 |
-
<!-- Footer -->
|
| 218 |
<footer class="bg-gray-900 text-white py-12">
|
| 219 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 220 |
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
|
|
@@ -296,7 +412,6 @@
|
|
| 296 |
</div>
|
| 297 |
</div>
|
| 298 |
</footer>
|
| 299 |
-
|
| 300 |
<script>
|
| 301 |
// Initialize Vanta.js globe background
|
| 302 |
VANTA.GLOBE({
|
|
@@ -329,6 +444,105 @@
|
|
| 329 |
}
|
| 330 |
});
|
| 331 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 332 |
</script>
|
| 333 |
</body>
|
| 334 |
</html>
|
|
|
|
| 70 |
</div>
|
| 71 |
</div>
|
| 72 |
</nav>
|
|
|
|
| 73 |
<!-- Hero Section -->
|
| 74 |
<div id="vanta-bg" class="gradient-bg text-white py-20">
|
| 75 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
|
|
| 89 |
DeepSeek's official free AI assistant for search, writing, reading, problem-solving, and translation
|
| 90 |
</p>
|
| 91 |
|
| 92 |
+
<!-- Interactive Search Bar -->
|
| 93 |
+
<div class="max-w-2xl mx-auto mb-8">
|
| 94 |
+
<div class="relative">
|
| 95 |
+
<input
|
| 96 |
+
type="text"
|
| 97 |
+
id="search-input"
|
| 98 |
+
placeholder="Ask DeepSeek anything..."
|
| 99 |
+
class="w-full px-6 py-4 rounded-xl bg-white/10 backdrop-blur-sm border border-white/20 text-white placeholder-gray-300 focus:outline-none focus:ring-2 focus:ring-yellow-300 focus:border-transparent"
|
| 100 |
+
>
|
| 101 |
+
<button
|
| 102 |
+
id="search-btn"
|
| 103 |
+
class="absolute right-2 top-1/2 transform -translate-y-1/2 bg-yellow-300 text-purple-600 px-6 py-2 rounded-lg font-semibold hover:bg-yellow-400 transition-colors"
|
| 104 |
+
>
|
| 105 |
+
Ask
|
| 106 |
+
</button>
|
| 107 |
+
</div>
|
| 108 |
+
<div id="search-suggestions" class="hidden mt-2 bg-white/10 backdrop-blur-sm rounded-lg p-2">
|
| 109 |
+
<div class="text-left text-sm text-gray-300">Popular questions:</div>
|
| 110 |
+
<div class="flex flex-wrap gap-2 mt-2">
|
| 111 |
+
<button class="suggestion-btn bg-white/20 hover:bg-white/30 text-white text-sm px-3 py-1 rounded-full transition-colors">How does AI work?</button>
|
| 112 |
+
<button class="suggestion-btn bg-white/20 hover:bg-white/30 text-white text-sm px-3 py-1 rounded-full transition-colors">Write a poem about technology</button>
|
| 113 |
+
<button class="suggestion-btn bg-white/20 hover:bg-white/30 text-white text-sm px-3 py-1 rounded-full transition-colors">Explain quantum computing</button>
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
</div>
|
| 117 |
+
|
| 118 |
<div class="flex flex-col sm:flex-row gap-4 justify-center items-center">
|
| 119 |
<a href="https://chat.deepseek.com/" class="bg-white text-purple-600 px-8 py-4 rounded-xl font-semibold text-lg hover:bg-gray-100 transition-colors hover-lift">
|
| 120 |
Start Conversation with DeepSeek-V3.2
|
|
|
|
| 133 |
</div>
|
| 134 |
</div>
|
| 135 |
</div>
|
| 136 |
+
<!-- Research Section -->
|
|
|
|
| 137 |
<section id="research" class="py-20 bg-white">
|
| 138 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 139 |
<div class="text-center mb-16">
|
|
|
|
| 196 |
</div>
|
| 197 |
</div>
|
| 198 |
</section>
|
| 199 |
+
<!-- Interactive Demo Section -->
|
| 200 |
+
<section class="py-20 bg-white">
|
| 201 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 202 |
+
<div class="text-center mb-16">
|
| 203 |
+
<h2 class="text-4xl font-bold text-gray-900 mb-4">Try DeepSeek</h2>
|
| 204 |
+
<p class="text-xl text-gray-600 max-w-2xl mx-auto">
|
| 205 |
+
Experience AI-powered assistance with our interactive demo
|
| 206 |
+
</p>
|
| 207 |
+
</div>
|
| 208 |
+
|
| 209 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
| 210 |
+
<div class="bg-gray-50 rounded-2xl p-8">
|
| 211 |
+
<h3 class="text-2xl font-bold text-gray-900 mb-6">Ask AI Assistant</h3>
|
| 212 |
+
<div class="space-y-4">
|
| 213 |
+
<div class="bg-white rounded-lg p-4 shadow-sm">
|
| 214 |
+
<div class="flex items-start space-x-3">
|
| 215 |
+
<div class="w-8 h-8 bg-purple-600 rounded-full flex items-center justify-center">
|
| 216 |
+
<span class="text-white text-sm font-bold">AI</span>
|
| 217 |
+
</div>
|
| 218 |
+
<div class="flex-1">
|
| 219 |
+
<p class="text-gray-700" id="ai-response">Hello! I'm DeepSeek AI assistant. How can I help you today?</p>
|
| 220 |
+
</div>
|
| 221 |
+
</div>
|
| 222 |
+
</div>
|
| 223 |
+
|
| 224 |
+
<div class="flex space-x-4">
|
| 225 |
+
<input
|
| 226 |
+
type="text"
|
| 227 |
+
id="chat-input"
|
| 228 |
+
placeholder="Type your message..."
|
| 229 |
+
class="flex-1 px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent"
|
| 230 |
+
>
|
| 231 |
+
<button
|
| 232 |
+
id="send-btn"
|
| 233 |
+
class="bg-purple-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-purple-700 transition-colors"
|
| 234 |
+
>
|
| 235 |
+
Send
|
| 236 |
+
</button>
|
| 237 |
+
</div>
|
| 238 |
+
|
| 239 |
+
<div class="flex flex-wrap gap-2">
|
| 240 |
+
<button class="demo-btn bg-purple-100 text-purple-700 px-3 py-2 rounded-lg text-sm hover:bg-purple-200 transition-colors">Explain AI</button>
|
| 241 |
+
<button class="demo-btn bg-purple-100 text-purple-700 px-3 py-2 rounded-lg text-sm hover:bg-purple-200 transition-colors">Write code</button>
|
| 242 |
+
<button class="demo-btn bg-purple-100 text-purple-700 px-3 py-2 rounded-lg text-sm hover:bg-purple-200 transition-colors">Translate</button>
|
| 243 |
+
<button class="demo-btn bg-purple-100 text-purple-700 px-3 py-2 rounded-lg text-sm hover:bg-purple-200 transition-colors">Summarize</button>
|
| 244 |
+
</div>
|
| 245 |
+
</div>
|
| 246 |
+
</div>
|
| 247 |
+
|
| 248 |
+
<div class="bg-gray-50 rounded-2xl p-8">
|
| 249 |
+
<h3 class="text-2xl font-bold text-gray-900 mb-6">Model Comparison</h3>
|
| 250 |
+
<div class="space-y-4">
|
| 251 |
+
<div class="bg-white rounded-lg p-4 shadow-sm">
|
| 252 |
+
<div class="flex justify-between items-center mb-2">
|
| 253 |
+
<span class="font-semibold text-gray-700">DeepSeek V3.2</span>
|
| 254 |
+
<span class="text-green-600 text-sm font-medium">Latest</span>
|
| 255 |
+
</div>
|
| 256 |
+
<div class="text-sm text-gray-600">
|
| 257 |
+
Advanced reasoning, 128K context, multimodal support
|
| 258 |
+
</div>
|
| 259 |
+
</div>
|
| 260 |
+
|
| 261 |
+
<div class="bg-white rounded-lg p-4 shadow-sm">
|
| 262 |
+
<div class="flex justify-between items-center mb-2">
|
| 263 |
+
<span class="font-semibold text-gray-700">DeepSeek R1</span>
|
| 264 |
+
<span class="text-blue-600 text-sm font-medium">Reasoning</span>
|
| 265 |
+
</div>
|
| 266 |
+
<div class="text-sm text-gray-600">
|
| 267 |
+
Specialized for complex problem solving and reasoning
|
| 268 |
+
</div>
|
| 269 |
+
</div>
|
| 270 |
+
|
| 271 |
+
<div class="bg-white rounded-lg p-4 shadow-sm">
|
| 272 |
+
<div class="flex justify-between items-center mb-2">
|
| 273 |
+
<span class="font-semibold text-gray-700">DeepSeek Coder V2</span>
|
| 274 |
+
<span class="text-orange-600 text-sm font-medium">Coding</span>
|
| 275 |
+
</div>
|
| 276 |
+
<div class="text-sm text-gray-600">
|
| 277 |
+
Optimized for programming and code generation tasks
|
| 278 |
+
</div>
|
| 279 |
+
</div>
|
| 280 |
+
</div>
|
| 281 |
+
|
| 282 |
+
<div class="mt-6 p-4 bg-yellow-50 rounded-lg border border-yellow-200">
|
| 283 |
+
<div class="flex items-center">
|
| 284 |
+
<i data-feather="info" class="text-yellow-600 w-5 h-5 mr-3"></i>
|
| 285 |
+
<span class="text-yellow-800 text-sm">All models are free to use with generous rate limits</span>
|
| 286 |
+
</div>
|
| 287 |
+
</div>
|
| 288 |
+
</div>
|
| 289 |
+
</div>
|
| 290 |
+
</div>
|
| 291 |
+
</section>
|
| 292 |
|
| 293 |
<!-- Products Section -->
|
| 294 |
<section id="products" class="py-20 bg-gray-50">
|
|
|
|
| 330 |
</div>
|
| 331 |
</div>
|
| 332 |
</section>
|
| 333 |
+
<!-- Footer -->
|
|
|
|
| 334 |
<footer class="bg-gray-900 text-white py-12">
|
| 335 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 336 |
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
|
|
|
|
| 412 |
</div>
|
| 413 |
</div>
|
| 414 |
</footer>
|
|
|
|
| 415 |
<script>
|
| 416 |
// Initialize Vanta.js globe background
|
| 417 |
VANTA.GLOBE({
|
|
|
|
| 444 |
}
|
| 445 |
});
|
| 446 |
});
|
| 447 |
+
|
| 448 |
+
// Interactive search functionality
|
| 449 |
+
const searchInput = document.getElementById('search-input');
|
| 450 |
+
const searchBtn = document.getElementById('search-btn');
|
| 451 |
+
const searchSuggestions = document.getElementById('search-suggestions');
|
| 452 |
+
const chatInput = document.getElementById('chat-input');
|
| 453 |
+
const sendBtn = document.getElementById('send-btn');
|
| 454 |
+
const aiResponse = document.getElementById('ai-response');
|
| 455 |
+
const demoButtons = document.querySelectorAll('.demo-btn');
|
| 456 |
+
const suggestionButtons = document.querySelectorAll('.suggestion-btn');
|
| 457 |
+
|
| 458 |
+
// Show search suggestions on focus
|
| 459 |
+
searchInput.addEventListener('focus', () => {
|
| 460 |
+
searchSuggestions.classList.remove('hidden');
|
| 461 |
+
});
|
| 462 |
+
|
| 463 |
+
// Hide search suggestions when clicking outside
|
| 464 |
+
document.addEventListener('click', (e) => {
|
| 465 |
+
if (!searchInput.contains(e.target) && !searchSuggestions.contains(e.target)) {
|
| 466 |
+
searchSuggestions.classList.add('hidden');
|
| 467 |
+
}
|
| 468 |
+
});
|
| 469 |
+
|
| 470 |
+
// Search functionality
|
| 471 |
+
searchBtn.addEventListener('click', () => {
|
| 472 |
+
const query = searchInput.value.trim();
|
| 473 |
+
if (query) {
|
| 474 |
+
// Redirect to DeepSeek chat with the query
|
| 475 |
+
window.open(`https://chat.deepseek.com/?q=${encodeURIComponent(query)}`, '_blank');
|
| 476 |
+
}
|
| 477 |
+
});
|
| 478 |
+
|
| 479 |
+
searchInput.addEventListener('keypress', (e) => {
|
| 480 |
+
if (e.key === 'Enter') {
|
| 481 |
+
searchBtn.click();
|
| 482 |
+
}
|
| 483 |
+
});
|
| 484 |
+
|
| 485 |
+
// Interactive chat demo
|
| 486 |
+
const responses = {
|
| 487 |
+
'explain ai': "Artificial Intelligence (AI) refers to the simulation of human intelligence in machines that are programmed to think and learn like humans. DeepSeek uses advanced machine learning and deep learning techniques to understand and generate human-like text, solve problems, and assist with various tasks.",
|
| 488 |
+
'write code': "Here's a simple Python function to calculate factorial:\n\n```python\ndef factorial(n):\n if n == 0:\n return 1\n else:\n return n * factorial(n-1)\n```\nThis recursive function calculates the factorial of a number.",
|
| 489 |
+
'translate': "DeepSeek supports translation between multiple languages. For example, 'Hello, how are you?' would be translated to:\n\n- Spanish: 'Hola, ¿cómo estás?'\n- French: 'Bonjour, comment allez-vous?'\n- Chinese: '你好,你好吗?'\n\nTry asking me to translate specific phrases!",
|
| 490 |
+
'summarize': "Summarization involves condensing a large amount of text into its key points while preserving the essential meaning. DeepSeek can summarize articles, documents, or any text content by identifying the main ideas and presenting them concisely.",
|
| 491 |
+
'how does ai work': "AI systems like DeepSeek work through neural networks that process information similarly to the human brain. They're trained on vast amounts of data to recognize patterns, understand context, and generate appropriate responses using techniques like deep learning and natural language processing.",
|
| 492 |
+
'default': "I'm DeepSeek AI, trained to assist with a wide range of tasks including writing, coding, translation, research, and problem-solving. How can I help you today?"
|
| 493 |
+
};
|
| 494 |
+
|
| 495 |
+
function getAIResponse(message) {
|
| 496 |
+
const lowerMessage = message.toLowerCase();
|
| 497 |
+
for (const [key, response] of Object.entries(responses)) {
|
| 498 |
+
if (lowerMessage.includes(key)) {
|
| 499 |
+
return response;
|
| 500 |
+
}
|
| 501 |
+
}
|
| 502 |
+
return responses.default;
|
| 503 |
+
}
|
| 504 |
+
|
| 505 |
+
sendBtn.addEventListener('click', () => {
|
| 506 |
+
const message = chatInput.value.trim();
|
| 507 |
+
if (message) {
|
| 508 |
+
aiResponse.textContent = getAIResponse(message);
|
| 509 |
+
chatInput.value = '';
|
| 510 |
+
// Add typing animation effect
|
| 511 |
+
aiResponse.style.opacity = '0';
|
| 512 |
+
setTimeout(() => {
|
| 513 |
+
aiResponse.style.opacity = '1';
|
| 514 |
+
aiResponse.style.transition = 'opacity 0.3s ease';
|
| 515 |
+
}, 100);
|
| 516 |
+
}
|
| 517 |
+
});
|
| 518 |
+
|
| 519 |
+
chatInput.addEventListener('keypress', (e) => {
|
| 520 |
+
if (e.key === 'Enter') {
|
| 521 |
+
sendBtn.click();
|
| 522 |
+
}
|
| 523 |
+
});
|
| 524 |
+
|
| 525 |
+
// Demo buttons functionality
|
| 526 |
+
demoButtons.forEach(button => {
|
| 527 |
+
button.addEventListener('click', () => {
|
| 528 |
+
const action = button.textContent.toLowerCase();
|
| 529 |
+
aiResponse.textContent = getAIResponse(action);
|
| 530 |
+
// Add typing animation effect
|
| 531 |
+
aiResponse.style.opacity = '0';
|
| 532 |
+
setTimeout(() => {
|
| 533 |
+
aiResponse.style.opacity = '1';
|
| 534 |
+
aiResponse.style.transition = 'opacity 0.3s ease';
|
| 535 |
+
}, 100);
|
| 536 |
+
});
|
| 537 |
+
});
|
| 538 |
+
|
| 539 |
+
// Suggestion buttons functionality
|
| 540 |
+
suggestionButtons.forEach(button => {
|
| 541 |
+
button.addEventListener('click', () => {
|
| 542 |
+
searchInput.value = button.textContent;
|
| 543 |
+
searchSuggestions.classList.add('hidden');
|
| 544 |
+
});
|
| 545 |
+
});
|
| 546 |
</script>
|
| 547 |
</body>
|
| 548 |
</html>
|