From 5b157ab8239faa9a1bc3ab939c51c3dda9f22c08 Mon Sep 17 00:00:00 2001 From: Dekart Deploy Bot Date: Sun, 10 May 2026 01:48:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B0=D0=B3=D0=B5=D1=80=D1=8C:=20=D0=A1?= =?UTF-8?q?=D0=B5=D0=BA=D1=86=D0=B8=D1=8F=202-3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wp-content/themes/dekart/assets/css/camp.css | 118 +++++++++++++++++-- wp-content/themes/dekart/assets/js/camp.js | 21 ++++ wp-content/themes/dekart/page-camp.php | 33 ++++-- 3 files changed, 153 insertions(+), 19 deletions(-) diff --git a/wp-content/themes/dekart/assets/css/camp.css b/wp-content/themes/dekart/assets/css/camp.css index d5ec8eb..ee45e85 100644 --- a/wp-content/themes/dekart/assets/css/camp.css +++ b/wp-content/themes/dekart/assets/css/camp.css @@ -328,12 +328,8 @@ p { .about-us__title { - padding-bottom: 10px; - text-align: center; - margin-bottom: 20px; - } @@ -352,7 +348,71 @@ p { text-align: left; - margin: 0; + margin: 0 0 24px; + +} + +.about-us__social-proof { + + margin-bottom: 16px; + +} + +.about-us__badge { + + display: inline-block; + + font-family: Montserrat, sans-serif; + + font-size: 14px; + + font-weight: 700; + + color: #FF6B00; + + background: rgba(255,107,0,0.08); + + padding: 6px 16px; + + border-radius: 9999px; + +} + +.about-us__cta { + + margin-top: 8px; + +} + +.about-us__cta-link { + + display: inline-block; + + font-family: Montserrat, sans-serif; + + font-size: 16px; + + font-weight: 700; + + color: #fff; + + background: #FF6B00; + + padding: 12px 28px; + + border-radius: 9999px; + + text-decoration: none; + + transition: background 0.2s, transform 0.2s; + +} + +.about-us__cta-link:hover { + + background: #FF8533; + + transform: scale(1.05); } @@ -427,12 +487,7 @@ p { } .about-us__title { - padding-bottom: 10px; - font-size: 28px; - - padding-bottom: 10px; - } .about-us__text { @@ -470,7 +525,50 @@ p { } +/* suggestions icon wrap */ +.suggestions__icon-wrap { + width: 72px; + height: 72px; + display: flex; + align-items: center; + justify-content: center; + background: rgba(255,107,0,0.1); + border-radius: 16px; + margin: 0 auto 16px; + flex-shrink: 0; +} + +.suggestions__icon { + width: 40px; + height: 40px; + object-fit: contain; +} + +/* suggestions card hover */ +.suggestions__item { + transition: transform 0.3s ease, box-shadow 0.3s ease; + cursor: default; +} + +.suggestions__item:hover { + transform: translateY(-6px); + box-shadow: 0 14px 32px rgba(255,107,0,0.18); +} + +/* scroll animation */ +.fade-up { + opacity: 0; + transform: translateY(30px); + transition: opacity 0.6s ease-out, transform 0.6s ease-out; +} + +.fade-up.visible { + opacity: 1; + transform: translateY(0); +} + /* suggestions */ + @keyframes sugFadeUp { from { transform: translateY(24px) scale(0.97); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } diff --git a/wp-content/themes/dekart/assets/js/camp.js b/wp-content/themes/dekart/assets/js/camp.js index bab28be..694ff6e 100644 --- a/wp-content/themes/dekart/assets/js/camp.js +++ b/wp-content/themes/dekart/assets/js/camp.js @@ -67,3 +67,24 @@ document.addEventListener("click", function (event) { return; } }); + +// Scroll animation: fade-up sections +document.addEventListener('DOMContentLoaded', function() { + const observer = new IntersectionObserver((entries) => { + entries.forEach(entry => { + if (entry.isIntersecting) { + entry.target.classList.add('visible'); + } + }); + }, { threshold: 0.15 }); + + document.querySelectorAll('.about-us__wrapper, .suggestions__item, .suggestions__subtitle, .suggestions h2').forEach(el => { + el.classList.add('fade-up'); + observer.observe(el); + }); + + // Stagger for suggestion cards + document.querySelectorAll('.suggestions__item').forEach((card, i) => { + card.style.transitionDelay = (i * 0.1) + 's'; + }); +}); diff --git a/wp-content/themes/dekart/page-camp.php b/wp-content/themes/dekart/page-camp.php index 54613cb..eb4ab10 100644 --- a/wp-content/themes/dekart/page-camp.php +++ b/wp-content/themes/dekart/page-camp.php @@ -155,9 +155,16 @@ $metrics = [
-

О нас

+

Лето, которое не хочется ставить на паузу

- + +
+ +
@@ -166,13 +173,21 @@ $metrics = [
-

Почему родители выбирают Dekart?

-

Потому что дети бегут к нам каждое утро. А возвращаются — с горящими глазами.

-
$item) { $suggestions_img = $item['suggestions_img']; $suggestions_title = $item['suggestions_title']; $suggestions_text = $item['suggestions_text']; ?>

- - - - +

Мамы выбирают Dekart, потому что дети бегут в лагерь без уговоров

+

Они возвращаются с горящими глазами. И просятся обратно каждый день.

+
$item) { + $suggestions_title = $item['suggestions_title']; + $suggestions_text = $item['suggestions_text']; + $icon_file = $icons[$index % count($icons)]; + ?>
+
+ +
+

+

+