Add 3 files
Browse filesFiles changed (3)
- README.md+7-5
- index.html+827-19
- prompts.txtAdded+2
12345678910---title: Https Huggingface Co Ledlabemoji: 💻colorFrom: pinkcolorTo: yellowsdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference123456789101112---title: https-huggingface-co-ledlabemoji: 🐳colorFrom: greencolorTo: redsdk: staticpinned: falsetags:- deepsite---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827<!DOCTYPE html><html lang="ru"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>LedLab - Интернет-магазин фар и автозапчастей</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>.dropdown:hover .dropdown-menu {display: block;}.modal {transition: opacity 0.3s ease;}.cart-badge {position: absolute;top: -5px;right: -5px;background-color: #EF4444;color: white;border-radius: 50%;width: 18px;height: 18px;font-size: 12px;display: flex;align-items: center;justify-content: center;}.mobile-menu {transform: translateX(-100%);transition: transform 0.3s ease;}.mobile-menu.open {transform: translateX(0);}.help-bubble {animation: pulse 2s infinite;}@keyframes pulse {0% { transform: scale(1); }50% { transform: scale(1.05); }100% { transform: scale(1); }}</style></head><body class="bg-gray-50 font-sans"><!-- Help Bubble --><div id="helpBubble" class="fixed bottom-8 right-8 bg-blue-600 text-white rounded-full p-4 shadow-lg cursor-pointer help-bubble z-50"><i class="fas fa-question text-xl"></i></div><!-- Help Modal --><div id="helpModal" class="modal fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"><div class="bg-white rounded-lg p-6 max-w-md w-full mx-4"><div class="flex justify-between items-center mb-4"><h3 class="text-xl font-bold">Вам помочь?</h3><button id="closeHelpModal" class="text-gray-500 hover:text-gray-700"><i class="fas fa-times"></i></button></div><p class="mb-4">Наши специалисты готовы помочь вам с выбором товаров. Вы можете связаться с нами удобным для вас способом:</p><div class="space-y-3"><a href="https://wa.me/79117398887" class="block bg-green-500 text-white py-2 px-4 rounded flex items-center justify-center"><i class="fab fa-whatsapp mr-2"></i> WhatsApp</a><a href="https://t.me/ledlab_support" class="block bg-blue-500 text-white py-2 px-4 rounded flex items-center justify-center"><i class="fab fa-telegram mr-2"></i> Telegram</a><button class="block bg-gray-200 text-gray-800 py-2 px-4 rounded w-full">Позвонить: +7 911 739 88 87</button></div></div></div><!-- Mobile Menu --><div id="mobileMenu" class="mobile-menu fixed inset-y-0 left-0 w-64 bg-white shadow-lg z-40 overflow-y-auto"><div class="p-4 border-b"><div class="flex items-center"><i class="fas fa-car text-blue-600 text-2xl mr-2"></i><span class="text-xl font-bold">LedLab</span></div></div><div class="p-4"><ul class="space-y-2"><li><a href="#" class="block py-2 px-3 rounded hover:bg-gray-100">Главная</a></li><li><a href="#" class="block py-2 px-3 rounded hover:bg-gray-100">Каталог</a></li><li><a href="#" class="block py-2 px-3 rounded hover:bg-gray-100">Доставка</a></li><li><a href="#" class="block py-2 px-3 rounded hover:bg-gray-100">О нас</a></li><li><a href="#" class="block py-2 px-3 rounded hover:bg-gray-100">Контакты</a></li></ul><div class="mt-4 pt-4 border-t"><button id="mobileLoginBtn" class="w-full bg-blue-600 text-white py-2 px-4 rounded">Войти</button></div></div></div><!-- Header --><header class="bg-white shadow-sm sticky top-0 z-30"><div class="container mx-auto px-4"><div class="flex justify-between items-center py-3"><div class="flex items-center"><button id="mobileMenuButton" class="md:hidden mr-4 text-gray-700"><i class="fas fa-bars text-xl"></i></button><div class="flex items-center"><i class="fas fa-car text-blue-600 text-2xl mr-2"></i><span class="text-xl font-bold">LedLab</span></div><div class="hidden md:flex ml-10"><div class="dropdown relative"><button class="flex items-center px-3 py-2 text-gray-700 hover:text-blue-600">Каталог <i class="fas fa-chevron-down ml-1 text-xs"></i></button><div class="dropdown-menu absolute left-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-20 hidden"><a href="#" class="block px-4 py-2 text-gray-800 hover:bg-blue-50">Фары</a><a href="#" class="block px-4 py-2 text-gray-800 hover:bg-blue-50">Блоки розжига</a><a href="#" class="block px-4 py-2 text-gray-800 hover:bg-blue-50">Линзы</a><a href="#" class="block px-4 py-2 text-gray-800 hover:bg-blue-50">Лампы</a><a href="#" class="block px-4 py-2 text-gray-800 hover:bg-blue-50">Комплектующие</a></div></div><a href="#" class="px-3 py-2 text-gray-700 hover:text-blue-600">Доставка</a><a href="#" class="px-3 py-2 text-gray-700 hover:text-blue-600">О нас</a><a href="#" class="px-3 py-2 text-gray-700 hover:text-blue-600">Контакты</a></div></div><div class="flex items-center space-x-4"><div class="relative hidden md:block"><input type="text" placeholder="Поиск по каталогу..." class="border border-gray-300 rounded-full py-1 px-4 pl-10 w-64 focus:outline-none focus:ring-2 focus:ring-blue-500"><i class="fas fa-search absolute left-3 top-2 text-gray-400"></i></div><div class="flex items-center space-x-2"><button id="loginBtn" class="hidden md:block bg-blue-600 text-white py-1 px-4 rounded hover:bg-blue-700">Войти</button><div class="relative"><button id="cartBtn" class="text-gray-700 hover:text-blue-600 relative"><i class="fas fa-shopping-cart text-xl"></i><span id="cartBadge" class="cart-badge hidden">0</span></button></div></div></div></div><div class="md:hidden pb-3"><div class="relative"><input type="text" placeholder="Поиск по каталогу..." class="border border-gray-300 rounded-full py-1 px-4 pl-10 w-full focus:outline-none focus:ring-2 focus:ring-blue-500"><i class="fas fa-search absolute left-3 top-2 text-gray-400"></i></div></div></div></header><!-- Login Modal --><div id="loginModal" class="modal fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"><div class="bg-white rounded-lg p-6 max-w-md w-full mx-4"><div class="flex justify-between items-center mb-4"><h3 class="text-xl font-bold">Вход в личный кабинет</h3><button id="closeLoginModal" class="text-gray-500 hover:text-gray-700"><i class="fas fa-times"></i></button></div><form id="loginForm"><div class="mb-4"><label for="loginEmail" class="block text-gray-700 mb-2">Email или телефон</label><input type="text" id="loginEmail" class="w-full border border-gray-300 rounded py-2 px-3 focus:outline-none focus:ring-2 focus:ring-blue-500" required></div><div class="mb-4"><label for="loginPassword" class="block text-gray-700 mb-2">Пароль</label><input type="password" id="loginPassword" class="w-full border border-gray-300 rounded py-2 px-3 focus:outline-none focus:ring-2 focus:ring-blue-500" required></div><div class="mb-4 flex items-center"><input type="checkbox" id="rememberMe" class="mr-2"><label for="rememberMe" class="text-gray-700">Запомнить меня</label></div><button type="submit" class="w-full bg-blue-600 text-white py-2 px-4 rounded hover:bg-blue-700 mb-4">Войти</button><div class="text-center"><a href="#" id="showRegisterForm" class="text-blue-600 hover:underline">Зарегистрироваться</a><span class="mx-2 text-gray-400">|</span><a href="#" class="text-blue-600 hover:underline">Забыли пароль?</a></div></form><form id="registerForm" class="hidden"><div class="mb-4"><label for="registerName" class="block text-gray-700 mb-2">Имя</label><input type="text" id="registerName" class="w-full border border-gray-300 rounded py-2 px-3 focus:outline-none focus:ring-2 focus:ring-blue-500" required></div><div class="mb-4"><label for="registerPhone" class="block text-gray-700 mb-2">Телефон</label><input type="tel" id="registerPhone" class="w-full border border-gray-300 rounded py-2 px-3 focus:outline-none focus:ring-2 focus:ring-blue-500" required></div><div class="mb-4"><label for="registerEmail" class="block text-gray-700 mb-2">Email</label><input type="email" id="registerEmail" class="w-full border border-gray-300 rounded py-2 px-3 focus:outline-none focus:ring-2 focus:ring-blue-500" required></div><div class="mb-4"><label for="registerPassword" class="block text-gray-700 mb-2">Пароль</label><input type="password" id="registerPassword" class="w-full border border-gray-300 rounded py-2 px-3 focus:outline-none focus:ring-2 focus:ring-blue-500" required></div><div class="mb-4"><label for="registerConfirmPassword" class="block text-gray-700 mb-2">Подтвердите пароль</label><input type="password" id="registerConfirmPassword" class="w-full border border-gray-300 rounded py-2 px-3 focus:outline-none focus:ring-2 focus:ring-blue-500" required></div><button type="submit" class="w-full bg-blue-600 text-white py-2 px-4 rounded hover:bg-blue-700 mb-4">Зарегистрироваться</button><div class="text-center"><a href="#" id="showLoginForm" class="text-blue-600 hover:underline">Уже есть аккаунт? Войти</a></div></form></div></div><!-- Cart Modal --><div id="cartModal" class="modal fixed inset-0 bg-black bg-opacity-50 flex items-start justify-end z-50 hidden"><div class="bg-white rounded-l-lg shadow-xl w-full max-w-md h-full overflow-y-auto"><div class="p-4 border-b sticky top-0 bg-white z-10"><div class="flex justify-between items-center"><h3 class="text-xl font-bold">Корзина</h3><button id="closeCartModal" class="text-gray-500 hover:text-gray-700"><i class="fas fa-times"></i></button></div></div><div id="cartItems" class="p-4"><!-- Cart items will be added here dynamically --><div class="text-center py-8 text-gray-500"><i class="fas fa-shopping-cart text-4xl mb-2"></i><p>Ваша корзина пуста</p></div></div><div class="p-4 border-t sticky bottom-0 bg-white"><div class="flex justify-between mb-4"><span class="font-bold">Итого:</span><span id="cartTotal" class="font-bold">0 ₽</span></div><button id="checkoutBtn" class="w-full bg-blue-600 text-white py-2 px-4 rounded hover:bg-blue-700 disabled:opacity-50" disabled>Оформить заказ</button></div></div></div><!-- Main Content --><main class="container mx-auto px-4 py-6"><!-- Hero Section --><section class="bg-gradient-to-r from-blue-600 to-blue-800 rounded-xl p-6 md:p-10 text-white mb-8"><div class="max-w-2xl"><h1 class="text-3xl md:text-4xl font-bold mb-4">Светотехника для автомобилей в Санкт-Петербурге</h1><p class="text-lg mb-6">Широкий ассортимент фар, линз, блоков розжига и комплектующих с доставкой по всей России</p><div class="flex flex-wrap gap-3"><a href="https://wa.me/79117398887" class="bg-green-500 hover:bg-green-600 text-white py-2 px-6 rounded-full flex items-center"><i class="fab fa-whatsapp mr-2"></i> WhatsApp</a><a href="https://t.me/ledlab_support" class="bg-blue-400 hover:bg-blue-500 text-white py-2 px-6 rounded-full flex items-center"><i class="fab fa-telegram mr-2"></i> Telegram</a></div></div></section><!-- Features Section --><section class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-8"><div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 flex items-center"><div class="bg-blue-100 p-3 rounded-full mr-4"><i class="fas fa-truck text-blue-600"></i></div><div><h3 class="font-bold">Быстрая доставка</h3><p class="text-sm text-gray-600">1-3 дня по СПб</p></div></div><div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 flex items-center"><div class="bg-blue-100 p-3 rounded-full mr-4"><i class="fas fa-shield-alt text-blue-600"></i></div><div><h3 class="font-bold">Гарантия качества</h3><p class="text-sm text-gray-600">12 месяцев на все товары</p></div></div><div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 flex items-center"><div class="bg-blue-100 p-3 rounded-full mr-4"><i class="fas fa-credit-card text-blue-600"></i></div><div><h3 class="font-bold">Удобная оплата</h3><p class="text-sm text-gray-600">Наличные, карта, перевод</p></div></div><div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 flex items-center"><div class="bg-blue-100 p-3 rounded-full mr-4"><i class="fas fa-headset text-blue-600"></i></div><div><h3 class="font-bold">Поддержка</h3><p class="text-sm text-gray-600">Помощь в выборе</p></div></div></section><!-- Categories Section --><section class="mb-12"><div class="flex justify-between items-center mb-6"><h2 class="text-2xl font-bold">Категории товаров</h2><a href="#" class="text-blue-600 hover:underline">Все категории</a></div><div class="grid grid-cols-2 md:grid-cols-4 gap-4"><a href="#" class="bg-white rounded-lg shadow-sm overflow-hidden border border-gray-100 hover:shadow-md transition-shadow"><div class="h-40 bg-gray-100 flex items-center justify-center"><i class="fas fa-lightbulb text-4xl text-blue-600"></i></div><div class="p-4"><h3 class="font-bold">Фары</h3><p class="text-sm text-gray-600">Более 200 моделей</p></div></a><a href="#" class="bg-white rounded-lg shadow-sm overflow-hidden border border-gray-100 hover:shadow-md transition-shadow"><div class="h-40 bg-gray-100 flex items-center justify-center"><i class="fas fa-bolt text-4xl text-blue-600"></i></div><div class="p-4"><h3 class="font-bold">Блоки розжига</h3><p class="text-sm text-gray-600">Оригинал и аналоги</p></div></a><a href="#" class="bg-white rounded-lg shadow-sm overflow-hidden border border-gray-100 hover:shadow-md transition-shadow"><div class="h-40 bg-gray-100 flex items-center justify-center"><i class="fas fa-eye text-4xl text-blue-600"></i></div><div class="p-4"><h3 class="font-bold">Линзы</h3><p class="text-sm text-gray-600">Для ксенона и биксенона</p></div></a><a href="#" class="bg-white rounded-lg shadow-sm overflow-hidden border border-gray-100 hover:shadow-md transition-shadow"><div class="h-40 bg-gray-100 flex items-center justify-center"><i class="fas fa-cogs text-4xl text-blue-600"></i></div><div class="p-4"><h3 class="font-bold">Комплектующие</h3><p class="text-sm text-gray-600">Все для установки</p></div></a></div></section><!-- Popular Products --><section class="mb-12"><div class="flex justify-between items-center mb-6"><h2 class="text-2xl font-bold">Популярные товары</h2><a href="#" class="text-blue-600 hover:underline">Все товары</a></div><div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6"><!-- Product 1 --><div class="bg-white rounded-lg shadow-sm overflow-hidden border border-gray-100 hover:shadow-md transition-shadow"><div class="relative"><img src="https://via.placeholder.com/300x200?text=Фара" alt="Фара" class="w-full h-48 object-cover"><div class="absolute top-2 right-2 bg-red-500 text-white text-xs font-bold px-2 py-1 rounded">Хит</div></div><div class="p-4"><h3 class="font-bold mb-1">Фара головного света BMW 5 серии</h3><p class="text-sm text-gray-600 mb-2">Левый, оригинал</p><div class="flex justify-between items-center"><span class="font-bold text-lg">12 490 ₽</span><button class="add-to-cart bg-blue-600 text-white p-2 rounded-full hover:bg-blue-700" data-id="1" data-name="Фара BMW 5 серии" data-price="12490"><i class="fas fa-shopping-cart"></i></button></div></div></div><!-- Product 2 --><div class="bg-white rounded-lg shadow-sm overflow-hidden border border-gray-100 hover:shadow-md transition-shadow"><div class="relative"><img src="https://via.placeholder.com/300x200?text=Блок+розжига" alt="Блок розжига" class="w-full h-48 object-cover"></div><div class="p-4"><h3 class="font-bold mb-1">Блок розжига Denso 6000K</h3><p class="text-sm text-gray-600 mb-2">Пара, аналог</p><div class="flex justify-between items-center"><span class="font-bold text-lg">6 790 ₽</span><button class="add-to-cart bg-blue-600 text-white p-2 rounded-full hover:bg-blue-700" data-id="2" data-name="Блок розжига Denso" data-price="6790"><i class="fas fa-shopping-cart"></i></button></div></div></div><!-- Product 3 --><div class="bg-white rounded-lg shadow-sm overflow-hidden border border-gray-100 hover:shadow-md transition-shadow"><div class="relative"><img src="https://via.placeholder.com/300x200?text=Линзы" alt="Линзы" class="w-full h-48 object-cover"><div class="absolute top-2 right-2 bg-yellow-500 text-white text-xs font-bold px-2 py-1 rounded">Новинка</div></div><div class="p-4"><h3 class="font-bold mb-1">Линзы Bi-LED Morimoto</h3><p class="text-sm text-gray-600 mb-2">2.5", универсальные</p><div class="flex justify-between items-center"><span class="font-bold text-lg">8 990 ₽</span><button class="add-to-cart bg-blue-600 text-white p-2 rounded-full hover:bg-blue-700" data-id="3" data-name="Линзы Bi-LED Morimoto" data-price="8990"><i class="fas fa-shopping-cart"></i></button></div></div></div><!-- Product 4 --><div class="bg-white rounded-lg shadow-sm overflow-hidden border border-gray-100 hover:shadow-md transition-shadow"><div class="relative"><img src="https://via.placeholder.com/300x200?text=Комплектующие" alt="Комплектующие" class="w-full h-48 object-cover"></div><div class="p-4"><h3 class="font-bold mb-1">Комплект проводов для ксенона</h3><p class="text-sm text-gray-600 mb-2">Универсальный набор</p><div class="flex justify-between items-center"><span class="font-bold text-lg">1 290 ₽</span><button class="add-to-cart bg-blue-600 text-white p-2 rounded-full hover:bg-blue-700" data-id="4" data-name="Комплект проводов" data-price="1290"><i class="fas fa-shopping-cart"></i></button></div></div></div></div></section><!-- VIN Search --><section class="bg-gray-100 rounded-xl p-6 mb-12"><div class="max-w-3xl mx-auto"><h2 class="text-2xl font-bold mb-4 text-center">Подбор по VIN-коду</h2><p class="text-center mb-6">Введите VIN-код вашего автомобиля, и мы подберем подходящие запчасти</p><div class="flex flex-col md:flex-row gap-2"><input type="text" placeholder="Введите VIN-код" class="flex-grow border border-gray-300 rounded-lg py-3 px-4 focus:outline-none focus:ring-2 focus:ring-blue-500"><button class="bg-blue-600 text-white py-3 px-6 rounded-lg hover:bg-blue-700">Подобрать</button></div></div></section><!-- Brands --><section class="mb-12"><h2 class="text-2xl font-bold mb-6 text-center">Работаем с автомобилями всех марок</h2><div class="grid grid-cols-3 sm:grid-cols-4 md:grid-cols-6 gap-4"><div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 flex items-center justify-center"><img src="https://via.placeholder.com/80x40?text=BMW" alt="BMW" class="h-8"></div><div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 flex items-center justify-center"><img src="https://via.placeholder.com/80x40?text=Audi" alt="Audi" class="h-8"></div><div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 flex items-center justify-center"><img src="https://via.placeholder.com/80x40?text=Mercedes" alt="Mercedes" class="h-8"></div><div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 flex items-center justify-center"><img src="https://via.placeholder.com/80x40?text=Toyota" alt="Toyota" class="h-8"></div><div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 flex items-center justify-center"><img src="https://via.placeholder.com/80x40?text=Honda" alt="Honda" class="h-8"></div><div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 flex items-center justify-center"><img src="https://via.placeholder.com/80x40?text=Volkswagen" alt="Volkswagen" class="h-8"></div></div></section><!-- About --><section class="bg-white rounded-xl shadow-sm p-6 mb-12 border border-gray-100"><h2 class="text-2xl font-bold mb-4">LedLab - магазин автозапчастей в Санкт-Петербурге</h2><div class="prose max-w-none"><p>Мы специализируемся на продаже автомобильных фар, блоков розжига, линз и комплектующих для всех популярных марок автомобилей. Наш магазин работает с 2015 года и за это время мы помогли тысячам клиентов найти подходящие запчасти для их автомобилей.</p><p>В нашем ассортименте представлены как оригинальные запчасти, так и качественные аналоги от проверенных производителей. Все товары проходят тщательную проверку перед отправкой клиенту.</p><p>Мы предлагаем:</p><ul class="list-disc pl-5"><li>Быструю доставку по Санкт-Петербургу и всей России</li><li>Гарантию на все товары</li><li>Профессиональную консультацию по подбору запчастей</li><li>Гибкие условия оплаты</li></ul></div></section><!-- Contacts --><section class="grid grid-cols-1 md:grid-cols-2 gap-8 mb-12"><div class="bg-white rounded-xl shadow-sm p-6 border border-gray-100"><h2 class="text-2xl font-bold mb-4">Контакты</h2><div class="space-y-4"><div class="flex items-start"><i class="fas fa-map-marker-alt text-blue-600 mt-1 mr-3"></i><div><h3 class="font-bold">Адрес</h3><p>Санкт-Петербург, ул. Автозаводская, 12</p></div></div><div class="flex items-start"><i class="fas fa-phone-alt text-blue-600 mt-1 mr-3"></i><div><h3 class="font-bold">Телефон</h3><p>+7 911 739 88 87</p></div></div><div class="flex items-start"><i class="fas fa-envelope text-blue-600 mt-1 mr-3"></i><div><h3 class="font-bold">Email</h3><p>info@ledlab.ru</p></div></div><div class="flex items-start"><i class="fas fa-clock text-blue-600 mt-1 mr-3"></i><div><h3 class="font-bold">Режим работы</h3><p>Пн-Пт: 10:00 - 19:00<br>Сб: 11:00 - 17:00<br>Вс: выходной</p></div></div></div></div><div class="bg-white rounded-xl shadow-sm p-6 border border-gray-100"><h2 class="text-2xl font-bold mb-4">Обратная связь</h2><form><div class="mb-4"><label for="contactName" class="block text-gray-700 mb-2">Ваше имя</label><input type="text" id="contactName" class="w-full border border-gray-300 rounded py-2 px-3 focus:outline-none focus:ring-2 focus:ring-blue-500" required></div><div class="mb-4"><label for="contactPhone" class="block text-gray-700 mb-2">Телефон</label><input type="tel" id="contactPhone" class="w-full border border-gray-300 rounded py-2 px-3 focus:outline-none focus:ring-2 focus:ring-blue-500" required></div><div class="mb-4"><label for="contactMessage" class="block text-gray-700 mb-2">Сообщение</label><textarea id="contactMessage" rows="4" class="w-full border border-gray-300 rounded py-2 px-3 focus:outline-none focus:ring-2 focus:ring-blue-500"></textarea></div><button type="submit" class="w-full bg-blue-600 text-white py-2 px-4 rounded hover:bg-blue-700">Отправить</button></form></div></section></main><!-- 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 mb-8"><div><div class="flex items-center mb-4"><i class="fas fa-car text-blue-400 text-2xl mr-2"></i><span class="text-xl font-bold">LedLab</span></div><p class="text-gray-400 mb-4">Интернет-магазин автомобильных фар и комплектующих в Санкт-Петербурге.</p><div class="flex space-x-4"><a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-vk"></i></a><a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-telegram"></i></a><a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-instagram"></i></a></div></div><div><h3 class="text-lg font-bold mb-4">Каталог</h3><ul class="space-y-2"><li><a href="#" class="text-gray-400 hover:text-white">Фары</a></li><li><a href="#" class="text-gray-400 hover:text-white">Блоки розжига</a></li><li><a href="#" class="text-gray-400 hover:text-white">Линзы</a></li><li><a href="#" class="text-gray-400 hover:text-white">Лампы</a></li><li><a href="#" class="text-gray-400 hover:text-white">Комплектующие</a></li></ul></div><div><h3 class="text-lg font-bold mb-4">Информация</h3><ul class="space-y-2"><li><a href="#" class="text-gray-400 hover:text-white">Доставка и оплата</a></li><li><a href="#" class="text-gray-400 hover:text-white">Гарантия</a></li><li><a href="#" class="text-gray-400 hover:text-white">О компании</a></li><li><a href="#" class="text-gray-400 hover:text-white">Контакты</a></li><li><a href="#" class="text-gray-400 hover:text-white">Политика конфиденциальности</a></li></ul></div><div><h3 class="text-lg font-bold mb-4">Контакты</h3><ul class="space-y-2 text-gray-400"><li class="flex items-start"><i class="fas fa-map-marker-alt mt-1 mr-2 text-blue-400"></i><span>Санкт-Петербург, ул. Автозаводская, 12</span></li><li class="flex items-center"><i class="fas fa-phone-alt mr-2 text-blue-400"></i><span>+7 911 739 88 87</span></li><li class="flex items-center"><i class="fas fa-envelope mr-2 text-blue-400"></i><span>info@ledlab.ru</span></li></ul></div></div><div class="border-t border-gray-800 pt-8 text-center text-gray-400"><p>© 2023 LedLab. Все права защищены.</p></div></div></footer><script>// Cart functionalitylet cart = [];// DOM Elementsconst cartBtn = document.getElementById('cartBtn');const cartModal = document.getElementById('cartModal');const closeCartModal = document.getElementById('closeCartModal');const cartItems = document.getElementById('cartItems');const cartTotal = document.getElementById('cartTotal');const cartBadge = document.getElementById('cartBadge');const checkoutBtn = document.getElementById('checkoutBtn');const addToCartButtons = document.querySelectorAll('.add-to-cart');// Login Modalconst loginBtn = document.getElementById('loginBtn');const mobileLoginBtn = document.getElementById('mobileLoginBtn');const loginModal = document.getElementById('loginModal');const closeLoginModal = document.getElementById('closeLoginModal');const loginForm = document.getElementById('loginForm');const registerForm = document.getElementById('registerForm');const showRegisterForm = document.getElementById('showRegisterForm');const showLoginForm = document.getElementById('showLoginForm');// Mobile Menuconst mobileMenuButton = document.getElementById('mobileMenuButton');const mobileMenu = document.getElementById('mobileMenu');// Help Bubbleconst helpBubble = document.getElementById('helpBubble');const helpModal = document.getElementById('helpModal');const closeHelpModal = document.getElementById('closeHelpModal');// Event ListenerscartBtn.addEventListener('click', toggleCartModal);closeCartModal.addEventListener('click', toggleCartModal);loginBtn.addEventListener('click', toggleLoginModal);mobileLoginBtn.addEventListener('click', toggleLoginModal);closeLoginModal.addEventListener('click', toggleLoginModal);showRegisterForm.addEventListener('click', (e) => {e.preventDefault();loginForm.classList.add('hidden');registerForm.classList.remove('hidden');});showLoginForm.addEventListener('click', (e) => {e.preventDefault();registerForm.classList.add('hidden');loginForm.classList.remove('hidden');});mobileMenuButton.addEventListener('click', toggleMobileMenu);helpBubble.addEventListener('click', toggleHelpModal);closeHelpModal.addEventListener('click', toggleHelpModal);// Add to cart buttonsaddToCartButtons.forEach(button => {button.addEventListener('click', (e) => {const id = button.getAttribute('data-id');const name = button.getAttribute('data-name');const price = parseInt(button.getAttribute('data-price'));addToCart(id, name, price);});});// Functionsfunction toggleCartModal() {cartModal.classList.toggle('hidden');updateCartDisplay();}function toggleLoginModal() {loginModal.classList.toggle('hidden');registerForm.classList.add('hidden');loginForm.classList.remove('hidden');}function toggleMobileMenu() {mobileMenu.classList.toggle('open');}function toggleHelpModal() {helpModal.classList.toggle('hidden');}function addToCart(id, name, price) {const existingItem = cart.find(item => item.id === id);if (existingItem) {existingItem.quantity += 1;} else {cart.push({id,name,price,quantity: 1});}updateCartBadge();// Show notificationconst notification = document.createElement('div');notification.className = 'fixed bottom-4 right-4 bg-green-500 text-white px-4 py-2 rounded shadow-lg flex items-center';notification.innerHTML = `<i class="fas fa-check-circle mr-2"></i>Товар добавлен в корзину`;document.body.appendChild(notification);setTimeout(() => {notification.classList.add('opacity-0', 'transition-opacity', 'duration-300');setTimeout(() => notification.remove(), 300);}, 2000);}function updateCartBadge() {const totalItems = cart.reduce((sum, item) => sum + item.quantity, 0);if (totalItems > 0) {cartBadge.textContent = totalItems;cartBadge.classList.remove('hidden');checkoutBtn.disabled = false;} else {cartBadge.classList.add('hidden');checkoutBtn.disabled = true;}}function updateCartDisplay() {if (cart.length === 0) {cartItems.innerHTML = `<div class="text-center py-8 text-gray-500"><i class="fas fa-shopping-cart text-4xl mb-2"></i><p>Ваша корзина пуста</p></div>`;cartTotal.textContent = '0 ₽';return;}let itemsHTML = '';let total = 0;cart.forEach(item => {const itemTotal = item.price * item.quantity;total += itemTotal;itemsHTML += `<div class="flex items-center py-3 border-b"><div class="flex-grow"><h4 class="font-medium">${item.name}</h4><div class="flex items-center mt-1"><button class="change-quantity bg-gray-200 px-2 rounded" data-id="${item.id}" data-change="-1">-</button><span class="mx-2">${item.quantity}</span><button class="change-quantity bg-gray-200 px-2 rounded" data-id="${item.id}" data-change="1">+</button><span class="ml-4 font-medium">${itemTotal} ₽</span></div></div><button class="remove-item text-red-500 ml-4" data-id="${item.id}"><i class="fas fa-trash"></i></button></div>`;});cartItems.innerHTML = itemsHTML;cartTotal.textContent = `${total} ₽`;// Add event listeners to new buttonsdocument.querySelectorAll('.change-quantity').forEach(button => {button.addEventListener('click', (e) => {const id = button.getAttribute('data-id');const change = parseInt(button.getAttribute('data-change'));const item = cart.find(item => item.id === id);if (item) {item.quantity += change;if (item.quantity <= 0) {cart = cart.filter(item => item.id !== id);}updateCartBadge();updateCartDisplay();}});});document.querySelectorAll('.remove-item').forEach(button => {button.addEventListener('click', (e) => {const id = button.getAttribute('data-id');cart = cart.filter(item => item.id !== id);updateCartBadge();updateCartDisplay();});});}// Login form submissionloginForm.addEventListener('submit', (e) => {e.preventDefault();// Here would be AJAX request to serveralert('Вход выполнен успешно!');toggleLoginModal();});// Register form submissionregisterForm.addEventListener('submit', (e) => {e.preventDefault();// Here would be AJAX request to serveralert('Регистрация выполнена успешно!');toggleLoginModal();});// Close modals when clicking outsidewindow.addEventListener('click', (e) => {if (e.target === loginModal) {toggleLoginModal();}if (e.target === cartModal) {toggleCartModal();}if (e.target === helpModal) {toggleHelpModal();}});</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=Danil9454/https-huggingface-co-ledlab" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body></html>
12Промт: Создай современный, адаптивный сайт для интернет-магазина под названием LedLab, который продает фары, запчасти и комплектующие к ним. Сайт должен соответствовать функционалу и структуре следующих сайтов: https://mirfar.com https://vdf-light.ru https://www.auto108.ru Технические требования: Главная страница: Название магазина: LedLab. Геолокация: Санкт-Петербург. Контактный номер: +7 911 739 88 87. Кнопки быстрого перехода: Написать в WhatsApp и Написать в Telegram (с кликабельными ссылками). Промо-баннеры, информация о доставке, преимуществах и популярных категориях товаров. Авторизация и регистрация: Кнопка «Войти» с формой логина и пароля. Возможность регистрации новых пользователей (с сохранением email, телефона и пароля). Разделение прав доступа: клиент / администратор. После входа пользователь попадает в личный кабинет, где видит свои заказы. Администратор после входа попадает в админ-панель с возможностью управлять товарами, заказами и пользователями. Каталог товаров: Разделение по категориям (фары, блоки розжига, линзы и т.д.). Фильтрация по маркам автомобилей, моделям, типам запчастей. Карточки товаров: фото, название, цена, кнопка «Добавить в корзину», кнопка «Подробнее». Возможность добавления товаров в корзину и оформления заказа. Дополнительно: Форма обратной связи. SEO-дружелюбная структура. Адаптивность под мобильные устройства. Поддержка русского языка. Опционально: добавь поддержку поиска по VIN и функциональность "Вам помочь?" в виде всплывающего окна. Технологии: можно использовать React с Tailwind CSS и библиотекой компонентов shadcn/ui, а также Node.js или другой backend с авторизацией и базой данных.все хорошо но нету категорий, марок машин. продолжи этот кодREADME.md+7-5
index.html+827-19
prompts.txtAdded+2