From 4748913e93378c9c2bc7a22821535e0ab567ff49 Mon Sep 17 00:00:00 2001 From: maksim Date: Thu, 10 Jul 2025 00:42:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=B2?= =?UTF-8?q?=D0=B5=D1=80=D1=81=D1=82=D0=BA=D0=B8=20=D0=BD=D0=BE=D0=B2=D0=BE?= =?UTF-8?q?=D0=B9=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cosmopet/static/css/new-front-page.css | 69 +++++++++++++++++-- .../_pages/new-front-page/main-about.twig | 4 +- .../_pages/new-front-page/main-slider.twig | 17 ++--- .../_pages/new-front-page/main-why.twig | 6 +- 4 files changed, 77 insertions(+), 19 deletions(-) diff --git a/wp-content/themes/cosmopet/static/css/new-front-page.css b/wp-content/themes/cosmopet/static/css/new-front-page.css index a2219bf..ccdb322 100644 --- a/wp-content/themes/cosmopet/static/css/new-front-page.css +++ b/wp-content/themes/cosmopet/static/css/new-front-page.css @@ -14,13 +14,21 @@ main { width: 100%; height: 100vh; } +.main-slider .new-container { + width: 1600px; + max-width: 1600px; + margin: 0 auto; +} .main-slider .swiper-slide { position: relative; overflow: hidden; display: flex; - align-items: center; + align-items: flex-start; padding-top: 85px; - padding-left: 60px; + padding-left: 0px; +} +.main-slider-content { + margin-top: 85px; } .swiper-fade .swiper-slide { transition-property: opacity; @@ -51,7 +59,7 @@ main { text-transform: uppercase; color: #fff; margin-bottom: 32px; - width: 45%; + width: 50%; } .main-slider-content_descr { font-weight: 700; @@ -76,6 +84,13 @@ main { border: 2px solid #fff; border-radius: 100px; } +@media(max-width:1600px) { + .main-slider .new-container { + width: 1280px; + max-width: 1600px; + margin: 0 auto; + } +} /* Main About */ @@ -98,6 +113,12 @@ main { justify-content: space-between; align-items: center; } +.main-about_title { + font-weight: 500; +} +.main-about_title strong { + font-weight: 700; +} .main-about_text { font-weight: 500; font-size: 20px; @@ -128,7 +149,7 @@ main { font-weight: 400; font-size: 16px; color: #f2f2f2; - max-width: 50%; + max-width: 60%; } .main-about_banner-btn { border: 2px solid #f2f2f2; @@ -136,14 +157,35 @@ main { width: 333px; height: 48px; display: flex; - justify-content: space-around; + justify-content: space-between; align-items: center; + padding-left: 20px; + padding-right: 5px; gap: 20px; font-weight: 400; font-size: 20px; line-height: 120%; color: #fff; } +.text-with-underline { + position: relative; + display: inline-block; +} +.underline { + display: block; + width: 100%; + height: 6px; + border-radius: 16px; + position: absolute; + bottom: -6px; + left: 0; +} +.underline-1 { + background: #eddfab; /* Цвет первого подчеркивания */ +} +.underline-2 { + background: #d9ffcc; /* Цвет второго подчеркивания */ +} /* Main Why */ @@ -180,7 +222,7 @@ main { font-weight: 700; font-size: 20px; color: #121212; - max-width: 50%; + max-width: 65%; } .main-why_item-descr { font-weight: 500; @@ -193,6 +235,21 @@ main { top: -25%; right: 5%; } +.main-why_item-image-2 { + position: absolute; + top: -33%; + right: 5%; +} +.main-why_item-image-3 { + position: absolute; + top: -20%; + right: 8%; +} +.main-why_item-image-4 { + position: absolute; + top: -15%; + right: 8%; +} .main-why_item-index { position: absolute; bottom: 3%; diff --git a/wp-content/themes/cosmopet/templates/_pages/new-front-page/main-about.twig b/wp-content/themes/cosmopet/templates/_pages/new-front-page/main-about.twig index 802c96c..85b79fa 100644 --- a/wp-content/themes/cosmopet/templates/_pages/new-front-page/main-about.twig +++ b/wp-content/themes/cosmopet/templates/_pages/new-front-page/main-about.twig @@ -1,4 +1,4 @@ -
+
{{ main_about_title }}
-
\ No newline at end of file + \ No newline at end of file diff --git a/wp-content/themes/cosmopet/templates/_pages/new-front-page/main-slider.twig b/wp-content/themes/cosmopet/templates/_pages/new-front-page/main-slider.twig index a7748ca..396af7c 100644 --- a/wp-content/themes/cosmopet/templates/_pages/new-front-page/main-slider.twig +++ b/wp-content/themes/cosmopet/templates/_pages/new-front-page/main-slider.twig @@ -1,14 +1,15 @@ -
+
{% for slide in main_slider %}
-
-

{{ slide.main_slider_title }}

-

{{ slide.main_slider_descr }}

- Купить -
+
+
+

{{ slide.main_slider_title }}

+

{{ slide.main_slider_descr }}

+ Купить +
+
{% endfor %}
- -
\ No newline at end of file + \ No newline at end of file diff --git a/wp-content/themes/cosmopet/templates/_pages/new-front-page/main-why.twig b/wp-content/themes/cosmopet/templates/_pages/new-front-page/main-why.twig index 2a7583a..e1869e0 100644 --- a/wp-content/themes/cosmopet/templates/_pages/new-front-page/main-why.twig +++ b/wp-content/themes/cosmopet/templates/_pages/new-front-page/main-why.twig @@ -1,4 +1,4 @@ -
+

{{ main_why_title }}

@@ -6,7 +6,7 @@
{{ item.title }}
{{ item.descr }}
- {{ item.title }} + {{ item.title }}
{{ loop.index < 10 ? '0' ~ loop.index : loop.index }}
@@ -24,4 +24,4 @@
-
\ No newline at end of file + \ No newline at end of file