Лагерь: Секция Hero

This commit is contained in:
Dekart Deploy Bot 2026-05-09 11:31:19 +03:00
parent b4793836ed
commit 3f75d596dc
2 changed files with 5 additions and 2 deletions

View File

@ -2276,6 +2276,7 @@ p {
} }
.hero-media-search .heading-1 { .hero-media-search .heading-1 {
font-size: 2.7rem; font-size: 2.7rem;
text-align: center;
} }
} }
@ -2461,6 +2462,7 @@ p {
margin: 30px 0 15px; margin: 30px 0 15px;
} }
@media (max-width: 1023px) { @media (max-width: 1023px) {
.hero-media-search__propositions.on-desktop, .hero-media-search__form.on-desktop { display: none; }
.hero-media-search__propositions.on-mobile { display: flex; } .hero-media-search__propositions.on-mobile { display: flex; }
} }
.hero-media-search__propositions.on-mobile .wrapper__propositions { .hero-media-search__propositions.on-mobile .wrapper__propositions {

View File

@ -41,9 +41,9 @@ var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);
<div class="hero-media-search__container"> <div class="hero-media-search__container">
<div class="hero-media-search__content"> <div class="hero-media-search__content">
<h1 class="heading-1"> <h1 class="heading-1">
<?php echo esc_html( carbon_get_post_meta( $post_id, 'hero_title_h1' ) ?: 'Детский лагерь Декарт.' ); ?> <?php echo wp_kses_post( carbon_get_post_meta( $post_id, 'hero_title_h1' ) ?: 'Детский лагерь Декарт.' ); ?>
</h1> </h1>
<h2 class="hero-subtitle-brand"><?php echo esc_html( carbon_get_post_meta( $post_id, 'hero_title_span' ) ?: 'Яркое лето без забот!' ); ?></h2> <h2 class="hero-subtitle-brand"><?php echo wp_kses_post( carbon_get_post_meta( $post_id, 'hero_title_span' ) ?: 'Яркое лето без забот!' ); ?></h2>
<div class="hero-media-search__propositions on-desktop"> <div class="hero-media-search__propositions on-desktop">
<div class="wrapper__propositions"> <div class="wrapper__propositions">
<?php $icon1 = carbon_get_post_meta( $post_id, 'hero_metric_1_img' ); if ( $icon1 ) : ?> <?php $icon1 = carbon_get_post_meta( $post_id, 'hero_metric_1_img' ); if ( $icon1 ) : ?>
@ -122,6 +122,7 @@ var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);
</div> </div>
</div> </div>
<form action="" class="form hero-media-search__form camp-finder-form-redirect"> <form action="" class="form hero-media-search__form camp-finder-form-redirect">
<h4 class="heading-4"><?php echo esc_html( carbon_get_post_meta( $post_id, 'hero_search_title' ) ?: 'Найдите лагерь рядом с вами' ); ?></h4>
<div class="form__field"> <div class="form__field">
<input type="text" name="s" placeholder="<?php echo esc_attr( carbon_get_post_meta( $post_id, 'hero_search_placeholder' ) ?: 'Ваш район или станция метро' ); ?>"> <input type="text" name="s" placeholder="<?php echo esc_attr( carbon_get_post_meta( $post_id, 'hero_search_placeholder' ) ?: 'Ваш район или станция метро' ); ?>">
<button type="submit" class="btn btn--blue"><?php echo esc_html( carbon_get_post_meta( $post_id, 'hero_btn_primary' ) ?: 'Найти' ); ?></button> <button type="submit" class="btn btn--blue"><?php echo esc_html( carbon_get_post_meta( $post_id, 'hero_btn_primary' ) ?: 'Найти' ); ?></button>