Update index.html
Browse files- index.html +84 -20
index.html
CHANGED
@@ -175,13 +175,6 @@
|
|
175 |
display: inline-block;
|
176 |
position: relative;
|
177 |
}
|
178 |
-
.cta-button:hover .button-text {
|
179 |
-
animation: fadeIn 0.3s ease;
|
180 |
-
}
|
181 |
-
@keyframes fadeIn {
|
182 |
-
from { opacity: 0; transform: translateY(3px); }
|
183 |
-
to { opacity: 1; transform: translateY(0); }
|
184 |
-
}
|
185 |
.services {
|
186 |
padding: var(--section-padding);
|
187 |
background: linear-gradient(175deg, #fff 60%, var(--light) 100%);
|
@@ -276,6 +269,7 @@
|
|
276 |
overflow: hidden;
|
277 |
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
|
278 |
transition: transform 0.3s;
|
|
|
279 |
}
|
280 |
.material-card:hover {
|
281 |
transform: translateY(-5px);
|
@@ -306,10 +300,6 @@
|
|
306 |
width: 20px;
|
307 |
text-align: center;
|
308 |
}
|
309 |
-
.material-props i.fa-wave-square { color: var(--accent); }
|
310 |
-
.material-props i.fa-temperature-low { color: #2dd4bf; }
|
311 |
-
.material-props i.fa-snowflake { color: #38bdf8; }
|
312 |
-
.material-props i.fa-boxes { color: #f59e0b; }
|
313 |
.steps-section {
|
314 |
padding: var(--section-padding);
|
315 |
background: var(--light);
|
@@ -442,16 +432,37 @@
|
|
442 |
margin: 0 1rem;
|
443 |
}
|
444 |
}
|
445 |
-
|
446 |
-
|
447 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
448 |
}
|
449 |
-
.
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
455 |
}
|
456 |
</style>
|
457 |
</head>
|
@@ -540,6 +551,7 @@
|
|
540 |
<section class="materials-section" id="materials">
|
541 |
<h2 class="section-title">Предоставляемые материалы</h2>
|
542 |
<div class="materials-grid">
|
|
|
543 |
<div class="material-card">
|
544 |
<div class="material-image">
|
545 |
<img src="https://akm.kiev.ua/image/cache/catalog/glavna/2022/1-3-360-263-falc-370x270.jpg" alt="Фальцевая кровля">
|
@@ -553,7 +565,11 @@
|
|
553 |
<li><i class="fas fa-tools"></i> Монтаж: бесщелевой</li>
|
554 |
</ul>
|
555 |
</div>
|
|
|
|
|
|
|
556 |
</div>
|
|
|
557 |
<div class="material-card">
|
558 |
<div class="material-image">
|
559 |
<img src="https://akm.kiev.ua/image/cache/catalog/glavna/2022/1-4-360-263-profnastil-001-370x270.jpg" alt="Профнастил">
|
@@ -567,7 +583,11 @@
|
|
567 |
<li><i class="fas fa-palette"></i> Цвета: 20 вариантов</li>
|
568 |
</ul>
|
569 |
</div>
|
|
|
|
|
|
|
570 |
</div>
|
|
|
571 |
<div class="material-card">
|
572 |
<div class="material-image">
|
573 |
<img src="https://akm.kiev.ua/image/cache/catalog/glavna/2022/3-4-360-263-soffit-370x270.jpg" alt="Подшивка софит">
|
@@ -581,7 +601,11 @@
|
|
581 |
<li><i class="fas fa-sun"></i> УФ-защита</li>
|
582 |
</ul>
|
583 |
</div>
|
|
|
|
|
|
|
584 |
</div>
|
|
|
585 |
<div class="material-card">
|
586 |
<div class="material-image">
|
587 |
<img src="https://akm.kiev.ua/image/cache/catalog/glavna/2022/2-2-823-289-m.okna-750x263.jpg" alt="Мансардные окна">
|
@@ -595,7 +619,11 @@
|
|
595 |
<li><i class="fas fa-cog"></i> Механизм открывания</li>
|
596 |
</ul>
|
597 |
</div>
|
|
|
|
|
|
|
598 |
</div>
|
|
|
599 |
<div class="material-card">
|
600 |
<div class="material-image">
|
601 |
<img src="https://akm.kiev.ua/image/cache/catalog/glavna/2022/2-1-397-611-vodostok-002-370x570.jpg" alt="Водосточные системы">
|
@@ -609,7 +637,11 @@
|
|
609 |
<li><i class="fas fa-boxes"></i> Комплектующие в наборе</li>
|
610 |
</ul>
|
611 |
</div>
|
|
|
|
|
|
|
612 |
</div>
|
|
|
613 |
<div class="material-card">
|
614 |
<div class="material-image">
|
615 |
<img src="https://akm.kiev.ua/image/cache/catalog/glavna/2022/1-1-397-611-metall-005-370x570.jpg" alt="Металлочерепица">
|
@@ -622,7 +654,11 @@
|
|
622 |
<li><i class="fas fa-palette"></i> Цвета: 15 вариантов</li>
|
623 |
</ul>
|
624 |
</div>
|
|
|
|
|
|
|
625 |
</div>
|
|
|
626 |
<div class="material-card">
|
627 |
<div class="material-image">
|
628 |
<img src="https://www.1d.ua/image/cache/webp/catalog/fotosNew/bitumna-cherepytsia/brava-bitumna-cherepytsia/76331-700x700.webp" alt="Гибкая черепица">
|
@@ -635,7 +671,11 @@
|
|
635 |
<li><i class="fas fa-tint"></i> Водонепроницаемость: 100%</li>
|
636 |
</ul>
|
637 |
</div>
|
|
|
|
|
|
|
638 |
</div>
|
|
|
639 |
<div class="material-card">
|
640 |
<div class="material-image">
|
641 |
<img src="https://www.sddu.com.ua/images/1-_enl.jpg" alt="Медная кровля">
|
@@ -648,6 +688,9 @@
|
|
648 |
<li><i class="fas fa-atom"></i> Патина: естественное покрытие</li>
|
649 |
</ul>
|
650 |
</div>
|
|
|
|
|
|
|
651 |
</div>
|
652 |
</div>
|
653 |
</section>
|
@@ -723,16 +766,19 @@
|
|
723 |
navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev' },
|
724 |
grabCursor: true,
|
725 |
});
|
|
|
726 |
const menuToggle = document.querySelector('.menu-toggle');
|
727 |
const navLinks = document.querySelector('.nav-links');
|
728 |
menuToggle.addEventListener('click', () => {
|
729 |
navLinks.classList.toggle('active');
|
730 |
});
|
|
|
731 |
document.addEventListener('click', (e) => {
|
732 |
if (!e.target.closest('.nav')) {
|
733 |
navLinks.classList.remove('active');
|
734 |
}
|
735 |
});
|
|
|
736 |
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
737 |
anchor.addEventListener('click', function(e) {
|
738 |
e.preventDefault();
|
@@ -740,6 +786,7 @@
|
|
740 |
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
741 |
});
|
742 |
});
|
|
|
743 |
document.querySelectorAll('.cta-button[data-phone]').forEach(button => {
|
744 |
const operator = button.dataset.operator;
|
745 |
const phone = button.dataset.phone;
|
@@ -747,6 +794,23 @@
|
|
747 |
button.addEventListener('mouseenter', () => textSpan.textContent = phone);
|
748 |
button.addEventListener('mouseleave', () => textSpan.textContent = operator);
|
749 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
750 |
</script>
|
751 |
</body>
|
752 |
</html>
|
|
|
175 |
display: inline-block;
|
176 |
position: relative;
|
177 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
.services {
|
179 |
padding: var(--section-padding);
|
180 |
background: linear-gradient(175deg, #fff 60%, var(--light) 100%);
|
|
|
269 |
overflow: hidden;
|
270 |
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
|
271 |
transition: transform 0.3s;
|
272 |
+
position: relative;
|
273 |
}
|
274 |
.material-card:hover {
|
275 |
transform: translateY(-5px);
|
|
|
300 |
width: 20px;
|
301 |
text-align: center;
|
302 |
}
|
|
|
|
|
|
|
|
|
303 |
.steps-section {
|
304 |
padding: var(--section-padding);
|
305 |
background: var(--light);
|
|
|
432 |
margin: 0 1rem;
|
433 |
}
|
434 |
}
|
435 |
+
.material-description {
|
436 |
+
position: absolute;
|
437 |
+
top: 0;
|
438 |
+
left: 0;
|
439 |
+
right: 0;
|
440 |
+
bottom: 0;
|
441 |
+
background: rgba(255, 255, 255, 0.98);
|
442 |
+
padding: 1.5rem;
|
443 |
+
opacity: 0;
|
444 |
+
visibility: hidden;
|
445 |
+
transition: all 0.3s ease;
|
446 |
+
overflow-y: auto;
|
447 |
+
font-size: 0.9rem;
|
448 |
+
line-height: 1.5;
|
449 |
+
border-radius: 12px;
|
450 |
+
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
451 |
}
|
452 |
+
.material-card:hover .material-description {
|
453 |
+
opacity: 1;
|
454 |
+
visibility: visible;
|
455 |
+
}
|
456 |
+
@media (max-width: 768px) {
|
457 |
+
.material-description {
|
458 |
+
padding: 1rem;
|
459 |
+
font-size: 0.85rem;
|
460 |
+
}
|
461 |
+
.material-card.active .material-description {
|
462 |
+
opacity: 1;
|
463 |
+
visibility: visible;
|
464 |
+
z-index: 100;
|
465 |
+
}
|
466 |
}
|
467 |
</style>
|
468 |
</head>
|
|
|
551 |
<section class="materials-section" id="materials">
|
552 |
<h2 class="section-title">Предоставляемые материалы</h2>
|
553 |
<div class="materials-grid">
|
554 |
+
<!-- Material Cards -->
|
555 |
<div class="material-card">
|
556 |
<div class="material-image">
|
557 |
<img src="https://akm.kiev.ua/image/cache/catalog/glavna/2022/1-3-360-263-falc-370x270.jpg" alt="Фальцевая кровля">
|
|
|
565 |
<li><i class="fas fa-tools"></i> Монтаж: бесщелевой</li>
|
566 |
</ul>
|
567 |
</div>
|
568 |
+
<div class="material-description">
|
569 |
+
<!-- Добавьте описание здесь -->
|
570 |
+
</div>
|
571 |
</div>
|
572 |
+
|
573 |
<div class="material-card">
|
574 |
<div class="material-image">
|
575 |
<img src="https://akm.kiev.ua/image/cache/catalog/glavna/2022/1-4-360-263-profnastil-001-370x270.jpg" alt="Профнастил">
|
|
|
583 |
<li><i class="fas fa-palette"></i> Цвета: 20 вариантов</li>
|
584 |
</ul>
|
585 |
</div>
|
586 |
+
<div class="material-description">
|
587 |
+
<!-- Добавьте описание здесь -->
|
588 |
+
</div>
|
589 |
</div>
|
590 |
+
|
591 |
<div class="material-card">
|
592 |
<div class="material-image">
|
593 |
<img src="https://akm.kiev.ua/image/cache/catalog/glavna/2022/3-4-360-263-soffit-370x270.jpg" alt="Подшивка софит">
|
|
|
601 |
<li><i class="fas fa-sun"></i> УФ-защита</li>
|
602 |
</ul>
|
603 |
</div>
|
604 |
+
<div class="material-description">
|
605 |
+
<!-- Добавьте описание здесь -->
|
606 |
+
</div>
|
607 |
</div>
|
608 |
+
|
609 |
<div class="material-card">
|
610 |
<div class="material-image">
|
611 |
<img src="https://akm.kiev.ua/image/cache/catalog/glavna/2022/2-2-823-289-m.okna-750x263.jpg" alt="Мансардные окна">
|
|
|
619 |
<li><i class="fas fa-cog"></i> Механизм открывания</li>
|
620 |
</ul>
|
621 |
</div>
|
622 |
+
<div class="material-description">
|
623 |
+
<!-- Добавьте описание зд��сь -->
|
624 |
+
</div>
|
625 |
</div>
|
626 |
+
|
627 |
<div class="material-card">
|
628 |
<div class="material-image">
|
629 |
<img src="https://akm.kiev.ua/image/cache/catalog/glavna/2022/2-1-397-611-vodostok-002-370x570.jpg" alt="Водосточные системы">
|
|
|
637 |
<li><i class="fas fa-boxes"></i> Комплектующие в наборе</li>
|
638 |
</ul>
|
639 |
</div>
|
640 |
+
<div class="material-description">
|
641 |
+
<!-- Добавьте описание здесь -->
|
642 |
+
</div>
|
643 |
</div>
|
644 |
+
|
645 |
<div class="material-card">
|
646 |
<div class="material-image">
|
647 |
<img src="https://akm.kiev.ua/image/cache/catalog/glavna/2022/1-1-397-611-metall-005-370x570.jpg" alt="Металлочерепица">
|
|
|
654 |
<li><i class="fas fa-palette"></i> Цвета: 15 вариантов</li>
|
655 |
</ul>
|
656 |
</div>
|
657 |
+
<div class="material-description">
|
658 |
+
<!-- Добавьте описание здесь -->
|
659 |
+
</div>
|
660 |
</div>
|
661 |
+
|
662 |
<div class="material-card">
|
663 |
<div class="material-image">
|
664 |
<img src="https://www.1d.ua/image/cache/webp/catalog/fotosNew/bitumna-cherepytsia/brava-bitumna-cherepytsia/76331-700x700.webp" alt="Гибкая черепица">
|
|
|
671 |
<li><i class="fas fa-tint"></i> Водонепроницаемость: 100%</li>
|
672 |
</ul>
|
673 |
</div>
|
674 |
+
<div class="material-description">
|
675 |
+
<!-- Добавьте описание здесь -->
|
676 |
+
</div>
|
677 |
</div>
|
678 |
+
|
679 |
<div class="material-card">
|
680 |
<div class="material-image">
|
681 |
<img src="https://www.sddu.com.ua/images/1-_enl.jpg" alt="Медная кровля">
|
|
|
688 |
<li><i class="fas fa-atom"></i> Патина: естественное покрытие</li>
|
689 |
</ul>
|
690 |
</div>
|
691 |
+
<div class="material-description">
|
692 |
+
<!-- Добавьте описание здесь -->
|
693 |
+
</div>
|
694 |
</div>
|
695 |
</div>
|
696 |
</section>
|
|
|
766 |
navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev' },
|
767 |
grabCursor: true,
|
768 |
});
|
769 |
+
|
770 |
const menuToggle = document.querySelector('.menu-toggle');
|
771 |
const navLinks = document.querySelector('.nav-links');
|
772 |
menuToggle.addEventListener('click', () => {
|
773 |
navLinks.classList.toggle('active');
|
774 |
});
|
775 |
+
|
776 |
document.addEventListener('click', (e) => {
|
777 |
if (!e.target.closest('.nav')) {
|
778 |
navLinks.classList.remove('active');
|
779 |
}
|
780 |
});
|
781 |
+
|
782 |
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
783 |
anchor.addEventListener('click', function(e) {
|
784 |
e.preventDefault();
|
|
|
786 |
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
787 |
});
|
788 |
});
|
789 |
+
|
790 |
document.querySelectorAll('.cta-button[data-phone]').forEach(button => {
|
791 |
const operator = button.dataset.operator;
|
792 |
const phone = button.dataset.phone;
|
|
|
794 |
button.addEventListener('mouseenter', () => textSpan.textContent = phone);
|
795 |
button.addEventListener('mouseleave', () => textSpan.textContent = operator);
|
796 |
});
|
797 |
+
|
798 |
+
// Обработчики для мобильных описаний
|
799 |
+
document.querySelectorAll('.material-card').forEach(card => {
|
800 |
+
card.addEventListener('click', function(e) {
|
801 |
+
if (window.matchMedia("(max-width: 768px)").matches) {
|
802 |
+
this.classList.toggle('active');
|
803 |
+
}
|
804 |
+
});
|
805 |
+
});
|
806 |
+
|
807 |
+
document.addEventListener('click', (e) => {
|
808 |
+
if (!e.target.closest('.material-card') && window.matchMedia("(max-width: 768px)").matches) {
|
809 |
+
document.querySelectorAll('.material-card').forEach(card => {
|
810 |
+
card.classList.remove('active');
|
811 |
+
});
|
812 |
+
}
|
813 |
+
});
|
814 |
</script>
|
815 |
</body>
|
816 |
</html>
|