Spaces:
Running
Running
File size: 33,596 Bytes
57f6afb |
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 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GuitarGaani - AI Guitar Chords & Music Store</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Poppins', sans-serif;
scroll-behavior: smooth;
}
.gradient-bg {
background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
}
.chat-container {
height: 500px;
overflow-y: auto;
scrollbar-width: thin;
}
.chat-container::-webkit-scrollbar {
width: 6px;
}
.chat-container::-webkit-scrollbar-track {
background: #f1f1f1;
}
.chat-container::-webkit-scrollbar-thumb {
background: #888;
border-radius: 3px;
}
.chat-container::-webkit-scrollbar-thumb:hover {
background: #555;
}
.video-carousel {
scroll-behavior: smooth;
scroll-snap-type: x mandatory;
}
.video-card {
scroll-snap-align: start;
flex: 0 0 auto;
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.language-selector:hover .language-dropdown {
display: block;
}
.guitar-animation {
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
100% { transform: translateY(0px); }
}
.video-gallery {
scroll-behavior: smooth;
scroll-snap-type: x mandatory;
}
.video-item {
scroll-snap-align: start;
flex: 0 0 auto;
}
</style>
</head>
<body class="bg-gray-50">
<!-- Navigation -->
<nav class="gradient-bg text-white shadow-lg sticky top-0 z-50">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fas fa-guitar text-2xl"></i>
<span class="text-xl font-bold">GuitarGaani</span>
</div>
<div class="hidden md:flex space-x-6">
<a href="#ai-chat" class="hover:text-blue-200 transition">AI Chords</a>
<a href="#youtube" class="hover:text-blue-200 transition">Videos</a>
<a href="#store" class="hover:text-blue-200 transition">Store</a>
</div>
<div class="flex items-center space-x-4">
<div class="language-selector relative">
<button class="flex items-center space-x-1 bg-white bg-opacity-20 px-3 py-1 rounded-full">
<i class="fas fa-globe"></i>
<span>English</span>
<i class="fas fa-chevron-down text-xs"></i>
</button>
<div class="language-dropdown hidden absolute right-0 mt-2 w-40 bg-white text-gray-800 rounded-md shadow-lg z-50">
<a href="#" class="block px-4 py-2 hover:bg-gray-100" onclick="changeLanguage('en')">English</a>
<a href="#" class="block px-4 py-2 hover:bg-gray-100" onclick="changeLanguage('hi')">हिंदी</a>
<a href="#" class="block px-4 py-2 hover:bg-gray-100" onclick="changeLanguage('mr')">मराठी</a>
</div>
</div>
<button class="md:hidden" id="mobile-menu-button">
<i class="fas fa-bars text-2xl"></i>
</button>
</div>
</div>
<!-- Mobile menu -->
<div class="md:hidden hidden bg-blue-900" id="mobile-menu">
<div class="container mx-auto px-4 py-2 flex flex-col space-y-2">
<a href="#ai-chat" class="py-2 hover:text-blue-200 transition">AI Chords</a>
<a href="#youtube" class="py-2 hover:text-blue-200 transition">Videos</a>
<a href="#store" class="py-2 hover:text-blue-200 transition">Store</a>
</div>
</div>
</nav>
<!-- Hero Section -->
<header class="gradient-bg text-white py-16">
<div class="container mx-auto px-4 flex flex-col md:flex-row items-center">
<div class="md:w-1/2 mb-10 md:mb-0">
<h1 class="text-4xl md:text-5xl font-bold mb-4">Discover Guitar Chords Instantly</h1>
<p class="text-xl mb-6">Get complete guitar chords, lyrics and song background for any song with our AI-powered chat</p>
<div class="flex space-x-4">
<a href="#ai-chat" class="bg-white text-blue-800 px-6 py-3 rounded-full font-semibold hover:bg-blue-100 transition">Try AI Chat</a>
<a href="#youtube" class="border-2 border-white px-6 py-3 rounded-full font-semibold hover:bg-white hover:text-blue-800 transition">Watch Videos</a>
</div>
</div>
<div class="md:w-1/2 flex justify-center guitar-animation">
<img src="https://cdn.pixabay.com/photo/2017/10/30/11/28/guitar-2902370_1280.png" alt="Guitar" class="w-full max-w-md">
</div>
</div>
</header>
<!-- AI Guitar Chords Chat Section -->
<section id="ai-chat" class="py-16 bg-white">
<div class="container mx-auto px-4">
<div class="text-center mb-12">
<h2 class="text-3xl md:text-4xl font-bold text-gray-800 mb-4">AI Guitar Chords Chat</h2>
<p class="text-xl text-gray-600 max-w-2xl mx-auto">Ask for any song and get complete guitar chords, lyrics and song information instantly</p>
</div>
<div class="max-w-4xl mx-auto bg-gray-50 rounded-xl shadow-lg overflow-hidden">
<div class="p-4 bg-blue-600 text-white flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fas fa-robot"></i>
<span>GuitarGaani AI</span>
</div>
<div class="flex space-x-2">
<button class="p-2 rounded-full hover:bg-blue-500" title="Clear chat" id="clear-chat">
<i class="fas fa-trash-alt"></i>
</button>
<button class="p-2 rounded-full hover:bg-blue-500" title="Download as PDF" id="download-pdf">
<i class="fas fa-file-pdf"></i>
</button>
</div>
</div>
<div class="chat-container p-4 h-96 bg-white" id="chat-messages">
<div class="flex mb-4">
<div class="flex-shrink-0 mr-3">
<div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center">
<i class="fas fa-robot text-blue-600"></i>
</div>
</div>
<div class="bg-gray-100 rounded-lg p-3 max-w-3xl">
<p class="text-gray-800">Hello! I'm GuitarGaani AI. Ask me for any song and I'll provide you with the guitar chords, lyrics, and song information. Try asking something like "Give me guitar chords for Hotel California" or "Show me chords for Tum Hi Ho in Hindi".</p>
</div>
</div>
</div>
<div class="p-4 bg-gray-50 border-t">
<form id="chat-form" class="flex">
<input type="text" id="user-input" placeholder="Ask for any song (e.g. Give me guitar chords for Shape of You)" class="flex-grow px-4 py-2 rounded-l-lg border focus:outline-none focus:ring-2 focus:ring-blue-500">
<button type="submit" class="bg-blue-600 text-white px-6 py-2 rounded-r-lg hover:bg-blue-700 transition">
<i class="fas fa-paper-plane"></i>
</button>
</form>
</div>
</div>
<div class="mt-8 text-center">
<p class="text-gray-600">Supports English, Hindi and Marathi responses. Change language from the menu.</p>
</div>
</div>
</section>
<!-- YouTube Showcase Section -->
<section id="youtube" class="py-16 bg-gray-100">
<div class="container mx-auto px-4">
<div class="text-center mb-12">
<h2 class="text-3xl md:text-4xl font-bold text-gray-800 mb-4">GuitarGaani YouTube Videos</h2>
<p class="text-xl text-gray-600 max-w-2xl mx-auto">Learn from our guitar tutorials and song covers</p>
</div>
<div class="relative">
<div class="video-carousel flex overflow-x-auto pb-6 space-x-4" id="video-carousel">
<!-- Videos will be loaded here by JavaScript -->
</div>
<button class="absolute left-0 top-1/2 -translate-y-1/2 -translate-x-4 bg-white rounded-full w-10 h-10 flex items-center justify-center shadow-lg hover:bg-gray-100 z-10" id="prev-video">
<i class="fas fa-chevron-left text-gray-700"></i>
</button>
<button class="absolute right-0 top-1/2 -translate-y-1/2 translate-x-4 bg-white rounded-full w-10 h-10 flex items-center justify-center shadow-lg hover:bg-gray-100 z-10" id="next-video">
<i class="fas fa-chevron-right text-gray-700"></i>
</button>
</div>
<div class="text-center mt-8">
<a href="https://www.youtube.com/@GuitarGaani/videos" target="_blank" class="inline-flex items-center bg-red-600 text-white px-6 py-3 rounded-full font-semibold hover:bg-red-700 transition">
<i class="fab fa-youtube mr-2"></i>
Visit Our YouTube Channel
</a>
</div>
</div>
</section>
<!-- Music Store Showcase Section -->
<section id="store" class="py-16 bg-white">
<div class="container mx-auto px-4">
<div class="text-center mb-12">
<h2 class="text-3xl md:text-4xl font-bold text-gray-800 mb-4">Music Store</h2>
<p class="text-xl text-gray-600 max-w-2xl mx-auto">Premium guitars and music accessories</p>
</div>
<!-- Video Gallery -->
<div class="mb-12">
<h3 class="text-2xl font-semibold text-gray-800 mb-6">Instruments in Action</h3>
<div class="video-gallery flex overflow-x-auto pb-6 space-x-4" id="instrument-videos">
<div class="video-item w-80 flex-shrink-0">
<div class="bg-gray-100 rounded-lg overflow-hidden aspect-video">
<iframe class="w-full h-full" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<p class="mt-2 font-medium">Yamaha Acoustic Guitar Demo</p>
</div>
<div class="video-item w-80 flex-shrink-0">
<div class="bg-gray-100 rounded-lg overflow-hidden aspect-video">
<iframe class="w-full h-full" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<p class="mt-2 font-medium">Fender Electric Guitar Review</p>
</div>
<div class="video-item w-80 flex-shrink-0">
<div class="bg-gray-100 rounded-lg overflow-hidden aspect-video">
<iframe class="w-full h-full" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<p class="mt-2 font-medium">Shure Microphone Testing</p>
</div>
<div class="video-item w-80 flex-shrink-0">
<div class="bg-gray-100 rounded-lg overflow-hidden aspect-video">
<iframe class="w-full h-full" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<p class="mt-2 font-medium">Boss Loop Station Tutorial</p>
</div>
</div>
</div>
<!-- Products Grid -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<div class="product-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300 hover:shadow-xl">
<div class="h-48 bg-gray-100 flex items-center justify-center">
<img src="https://m.media-amazon.com/images/I/71qMKL8q+6L._AC_SL1500_.jpg" alt="Acoustic Guitar" class="h-full object-contain">
</div>
<div class="p-6">
<h3 class="text-xl font-semibold text-gray-800 mb-2">Yamaha F310 Acoustic Guitar</h3>
<p class="text-gray-600 mb-4">Perfect for beginners with spruce top and rosewood fingerboard</p>
<div class="flex justify-between items-center">
<span class="text-xl font-bold text-blue-600">₹12,999</span>
<button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition">Enquire</button>
</div>
</div>
</div>
<div class="product-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300 hover:shadow-xl">
<div class="h-48 bg-gray-100 flex items-center justify-center">
<img src="https://m.media-amazon.com/images/I/61+S8+QN5RL._AC_SL1500_.jpg" alt="Electric Guitar" class="h-full object-contain">
</div>
<div class="p-6">
<h3 class="text-xl font-semibold text-gray-800 mb-2">Fender Squier Stratocaster</h3>
<p class="text-gray-600 mb-4">Classic electric guitar with alder body and maple neck</p>
<div class="flex justify-between items-center">
<span class="text-xl font-bold text-blue-600">₹24,999</span>
<button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition">Enquire</button>
</div>
</div>
</div>
<div class="product-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300 hover:shadow-xl">
<div class="h-48 bg-gray-100 flex items-center justify-center">
<img src="https://m.media-amazon.com/images/I/71fZ+Jog-IL._AC_SL1500_.jpg" alt="Microphone" class="h-full object-contain">
</div>
<div class="p-6">
<h3 class="text-xl font-semibold text-gray-800 mb-2">Shure SM58 Vocal Microphone</h3>
<p class="text-gray-600 mb-4">Professional quality dynamic microphone for vocals</p>
<div class="flex justify-between items-center">
<span class="text-xl font-bold text-blue-600">₹9,999</span>
<button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition">Enquire</button>
</div>
</div>
</div>
<div class="product-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300 hover:shadow-xl">
<div class="h-48 bg-gray-100 flex items-center justify-center">
<img src="https://m.media-amazon.com/images/I/71+2xVKEJIL._AC_SL1500_.jpg" alt="Guitar Strings" class="h-full object-contain">
</div>
<div class="p-6">
<h3 class="text-xl font-semibold text-gray-800 mb-2">Elixir Acoustic Guitar Strings</h3>
<p class="text-gray-600 mb-4">Nanoweb coated strings for extended life and bright tone</p>
<div class="flex justify-between items-center">
<span class="text-xl font-bold text-blue-600">₹1,299</span>
<button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition">Enquire</button>
</div>
</div>
</div>
<div class="product-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300 hover:shadow-xl">
<div class="h-48 bg-gray-100 flex items-center justify-center">
<img src="https://m.media-amazon.com/images/I/71+4xVKEJIL._AC_SL1500_.jpg" alt="Guitar Tuner" class="h-full object-contain">
</div>
<div class="p-6">
<h3 class="text-xl font-semibold text-gray-800 mb-2">Boss TU-3 Chromatic Tuner</h3>
<p class="text-gray-600 mb-4">High-precision chromatic tuner for all instruments</p>
<div class="flex justify-between items-center">
<span class="text-xl font-bold text-blue-600">₹3,999</span>
<button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition">Enquire</button>
</div>
</div>
</div>
<div class="product-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300 hover:shadow-xl">
<div class="h-48 bg-gray-100 flex items-center justify-center">
<img src="https://m.media-amazon.com/images/I/71+4xVKEJIL._AC_SL1500_.jpg" alt="Guitar Stand" class="h-full object-contain">
</div>
<div class="p-6">
<h3 class="text-xl font-semibold text-gray-800 mb-2">Hercules Guitar Stand</h3>
<p class="text-gray-600 mb-4">Sturdy and reliable stand for acoustic and electric guitars</p>
<div class="flex justify-between items-center">
<span class="text-xl font-bold text-blue-600">₹1,599</span>
<button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition">Enquire</button>
</div>
</div>
</div>
</div>
<div class="text-center mt-12">
<button class="bg-blue-600 text-white px-8 py-3 rounded-full font-semibold hover:bg-blue-700 transition">
View All Products
</button>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-white py-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-xl font-bold mb-4 flex items-center">
<i class="fas fa-guitar mr-2"></i>
GuitarGaani
</h3>
<p class="text-gray-400">Your ultimate destination for guitar chords, tutorials and premium music instruments.</p>
<div class="flex space-x-4 mt-4">
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-facebook-f"></i></a>
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-twitter"></i></a>
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-instagram"></i></a>
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-youtube"></i></a>
</div>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Quick Links</h3>
<ul class="space-y-2">
<li><a href="#ai-chat" class="text-gray-400 hover:text-white">AI Chords</a></li>
<li><a href="#youtube" class="text-gray-400 hover:text-white">YouTube Videos</a></li>
<li><a href="#store" class="text-gray-400 hover:text-white">Music Store</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Guitar Lessons</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Support</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Contact Us</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">FAQs</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Shipping Policy</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Returns & Refunds</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Newsletter</h3>
<p class="text-gray-400 mb-4">Subscribe to get updates on new products and tutorials</p>
<form class="flex">
<input type="email" placeholder="Your email" class="px-4 py-2 rounded-l-lg text-gray-800 focus:outline-none">
<button type="submit" class="bg-blue-600 px-4 py-2 rounded-r-lg hover:bg-blue-700">
<i class="fas fa-paper-plane"></i>
</button>
</form>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 flex flex-col md:flex-row justify-between items-center">
<p class="text-gray-400">© 2023 GuitarGaani. All rights reserved.</p>
<div class="flex space-x-6 mt-4 md:mt-0">
<a href="#" class="text-gray-400 hover:text-white">Terms of Service</a>
<a href="#" class="text-gray-400 hover:text-white">Privacy Policy</a>
</div>
</div>
</div>
</footer>
<script>
// Mobile menu toggle
document.getElementById('mobile-menu-button').addEventListener('click', function() {
const menu = document.getElementById('mobile-menu');
menu.classList.toggle('hidden');
});
// Language selector
function changeLanguage(lang) {
// In a real implementation, this would change the language of the content
alert(`Language changed to ${lang === 'en' ? 'English' : lang === 'hi' ? 'Hindi' : 'Marathi'}`);
document.querySelector('.language-selector button span').textContent =
lang === 'en' ? 'English' : lang === 'hi' ? 'हिंदी' : 'मराठी';
document.querySelector('.language-dropdown').classList.add('hidden');
}
// Chat functionality
const chatForm = document.getElementById('chat-form');
const chatMessages = document.getElementById('chat-messages');
const userInput = document.getElementById('user-input');
const clearChatBtn = document.getElementById('clear-chat');
const downloadPdfBtn = document.getElementById('download-pdf');
chatForm.addEventListener('submit', function(e) {
e.preventDefault();
const message = userInput.value.trim();
if (message) {
addUserMessage(message);
userInput.value = '';
// Simulate AI response
setTimeout(() => {
addAiMessage(generateResponse(message));
chatMessages.scrollTop = chatMessages.scrollHeight;
}, 1000);
}
});
clearChatBtn.addEventListener('click', function() {
chatMessages.innerHTML = `
<div class="flex mb-4">
<div class="flex-shrink-0 mr-3">
<div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center">
<i class="fas fa-robot text-blue-600"></i>
</div>
</div>
<div class="bg-gray-100 rounded-lg p-3 max-w-3xl">
<p class="text-gray-800">Hello! I'm GuitarGaani AI. Ask me for any song and I'll provide you with the guitar chords, lyrics, and song information. Try asking something like "Give me guitar chords for Hotel California" or "Show me chords for Tum Hi Ho in Hindi".</p>
</div>
</div>
`;
});
downloadPdfBtn.addEventListener('click', function() {
alert('PDF download functionality would be implemented here');
});
function addUserMessage(message) {
const messageDiv = document.createElement('div');
messageDiv.className = 'flex mb-4 justify-end';
messageDiv.innerHTML = `
<div class="bg-blue-600 text-white rounded-lg p-3 max-w-3xl">
<p>${message}</p>
</div>
<div class="flex-shrink-0 ml-3">
<div class="w-8 h-8 rounded-full bg-blue-600 flex items-center justify-center">
<i class="fas fa-user text-white"></i>
</div>
</div>
`;
chatMessages.appendChild(messageDiv);
chatMessages.scrollTop = chatMessages.scrollHeight;
}
function addAiMessage(response) {
const messageDiv = document.createElement('div');
messageDiv.className = 'flex mb-4';
messageDiv.innerHTML = `
<div class="flex-shrink-0 mr-3">
<div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center">
<i class="fas fa-robot text-blue-600"></i>
</div>
</div>
<div class="bg-gray-100 rounded-lg p-3 max-w-3xl">
${response}
</div>
`;
chatMessages.appendChild(messageDiv);
chatMessages.scrollTop = chatMessages.scrollHeight;
}
function generateResponse(message) {
// This is a simplified response generator
// In a real implementation, you would call the OpenAI API here
const songName = message.replace(/give me|show me|guitar chords for|chords for/gi, '').trim();
return `
<div class="space-y-4">
<h4 class="font-bold text-lg">${songName}</h4>
<div class="bg-white p-3 rounded-md">
<p><span class="font-semibold">Singer:</span> Artist Name</p>
<p><span class="font-semibold">Composer:</span> Composer Name</p>
<p><span class="font-semibold">Year:</span> 20XX</p>
</div>
<div class="bg-white p-3 rounded-md">
<p class="font-semibold mb-2">About the song:</p>
<p>This is a brief background about the song ${songName}. It was released in 20XX and became very popular for its melody and lyrics.</p>
</div>
<div class="bg-white p-3 rounded-md">
<p class="font-semibold mb-2">Guitar Chords:</p>
<p class="font-mono">Intro: C - G - Am - F</p>
<p class="font-mono">Verse: C - G - Am - F (x2)</p>
<p class="font-mono">Chorus: F - G - C - Am (x2)</p>
</div>
<div class="bg-white p-3 rounded-md">
<p class="font-semibold mb-2">Lyrics:</p>
<p class="whitespace-pre-line">These are the lyrics for ${songName}
Verse 1:
Line 1 of the song
Line 2 of the song
Chorus:
Chorus line 1
Chorus line 2</p>
</div>
</div>
`;
}
// YouTube video carousel
const videoCarousel = document.getElementById('video-carousel');
const prevVideoBtn = document.getElementById('prev-video');
const nextVideoBtn = document.getElementById('next-video');
// Sample video data - in a real implementation, you would fetch this from YouTube API
const videos = [
{
id: 'dQw4w9WgXcQ',
title: 'How to Play Hotel California - Guitar Tutorial',
description: 'Complete tutorial for the Eagles classic'
},
{
id: 'dQw4w9WgXcQ',
title: 'Tum Hi Ho Guitar Chords - Easy Tutorial',
description: 'Learn this romantic Bollywood song'
},
{
id: 'dQw4w9WgXcQ',
title: 'Wonderwall Guitar Lesson for Beginners',
description: 'Step-by-step guide to play this Oasis hit'
},
{
id: 'dQw4w9WgXcQ',
title: 'Shape of You - Simplified Guitar Chords',
description: 'Easy version of Ed Sheeran\'s hit song'
},
{
id: 'dQw4w9WgXcQ',
title: 'Classical Gas - Fingerstyle Guitar Tutorial',
description: 'Advanced lesson for this instrumental piece'
}
];
// Populate video carousel
videos.forEach(video => {
const videoCard = document.createElement('div');
videoCard.className = 'video-card w-80 flex-shrink-0';
videoCard.innerHTML = `
<div class="bg-gray-200 rounded-lg overflow-hidden aspect-video">
<iframe class="w-full h-full" src="https://www.youtube.com/embed/${video.id}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<h3 class="mt-2 font-semibold text-gray-800">${video.title}</h3>
<p class="text-sm text-gray-600">${video.description}</p>
<a href="https://www.youtube.com/watch?v=${video.id}" target="_blank" class="inline-block mt-2 text-blue-600 hover:text-blue-800">
Watch on YouTube <i class="fas fa-external-link-alt ml-1"></i>
</a>
`;
videoCarousel.appendChild(videoCard);
});
// Carousel navigation
let scrollPosition = 0;
const scrollAmount = 300;
prevVideoBtn.addEventListener('click', function() {
videoCarousel.scrollLeft -= scrollAmount;
});
nextVideoBtn.addEventListener('click', function() {
videoCarousel.scrollLeft += scrollAmount;
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=tushkum/guitargaani-ai" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |