Daniil-plotnikov's picture
Напиши для меня главную страницу типа perplexity, где вводишь запрос и получаешь ответ от ии с указанием источника, процесса поиска по сайтам, постепенным как бы печатанием текста. Пока что с mock данными
4ddfd3d verified
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background-color: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
}
.footer-link:hover {
color: #ffffff;
}
</style>
<footer class="border-t border-gray-800 py-8 mt-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-lg font-semibold mb-4">MindMeld Explorer</h3>
<p class="text-gray-400">AI-powered search that understands your questions and provides reliable answers.</p>
</div>
<div>
<h4 class="font-medium mb-4">Product</h4>
<ul class="space-y-2">
<li><a href="#" class="footer-link text-gray-400 hover:text-white transition">Features</a></li>
<li><a href="#" class="footer-link text-gray-400 hover:text-white transition">Pricing</a></li>
<li><a href="#" class="footer-link text-gray-400 hover:text-white transition">API</a></li>
</ul>
</div>
<div>
<h4 class="font-medium mb-4">Company</h4>
<ul class="space-y-2">
<li><a href="#" class="footer-link text-gray-400 hover:text-white transition">About</a></li>
<li><a href="#" class="footer-link text-gray-400 hover:text-white transition">Blog</a></li>
<li><a href="#" class="footer-link text-gray-400 hover:text-white transition">Careers</a></li>
</ul>
</div>
<div>
<h4 class="font-medium mb-4">Connect</h4>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white transition">
<i data-feather="twitter"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white transition">
<i data-feather="linkedin"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white transition">
<i data-feather="github"></i>
</a>
</div>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-500 text-sm">
© 2023 MindMeld Explorer. All rights reserved.
</div>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);