Верстка и правка стилей на главной

dev_10_fixbugs
Your Name 2 months ago
parent c0880b340d
commit 1d7ab752ae
  1. 70
      wp-content/themes/cosmopet/modules/footer/assets/css/gp-style-desktop.css
  2. 1
      wp-content/themes/cosmopet/modules/footer/module-controller.php
  3. 19
      wp-content/themes/cosmopet/modules/layout/assets/css/gp-style-core.css
  4. 15
      wp-content/themes/cosmopet/templates/footer.twig

@ -255,3 +255,73 @@
gap: 24px; gap: 24px;
} }
.footer-network a {
opacity: 1!important;
}
.footer__address {
margin-top: 24px;
font-family: var(--font-family);
font-weight: 500;
font-size: 24px;
line-height: 133%;
color: var(--text-white);
font-style: normal;
}
.footer-content__address {
margin-top: 24px;
font-family: var(--font-family);
font-weight: 500;
font-size: 24px;
line-height: 133%;
color: var(--text-white);
font-style: normal;
}
.footer_ae .footer-content ul {
display: flex;
flex-direction: row;
gap: 0px!important;
}
.footer_ae .footer-content .footer-network {
display: flex;
flex-direction: row;
gap: 24px!important;
}
@media screen and (max-width: 768px) {
.footer_ae .footer__wrapper {
width: 100%;
display: flex;
flex-direction: column;
}
.footer_ae .footer-contact {
margin-left: 0!important;
width: 100%!important;
margin-top: 20px;
}
.discount_block_ae {
overflow-x: hidden;
}
.footer_ae .footer__about {
align-items: flex-start!important;
}
.footer-contact__title {
color: #121212!important;
}
.footer-network a {
opacity: 1;
}
.footer-content .logo {
font-size: 20px;
margin-bottom: 0px;
}
.footer-about__text {
padding-top: 18px;
display: block;
text-align: left;
}
}

@ -3,6 +3,7 @@
// Добавляем данные в контекст Timber // Добавляем данные в контекст Timber
add_filter('timber/context', function($context) { add_filter('timber/context', function($context) {
$context['email_list'] = get_field('email_list', 'options'); $context['email_list'] = get_field('email_list', 'options');
$context['email_list_ae'] = get_field('email_list_ae', 'options');
$context['adres'] = get_field('adres', 'options'); $context['adres'] = get_field('adres', 'options');
$context['social'] = get_field('social', 'options'); $context['social'] = get_field('social', 'options');
$context['links'] = get_field('links', 'options'); $context['links'] = get_field('links', 'options');

@ -2372,23 +2372,4 @@ textarea{
.truth_ae .gift_line-img { .truth_ae .gift_line-img {
display: flex !important; display: flex !important;
} }
.footer_ae .footer__wrapper {
width: 100%;
display: flex;
flex-direction: column;
}
.footer_ae .footer-contact {
margin-left: 0!important;
width: 100%!important;
margin-top: 20px;
}
.discount_block_ae {
overflow-x: hidden;
}
.footer_ae .footer__about {
align-items: flex-start!important;
}
.footer-contact__title {
color: #121212!important;
}
} }

@ -5,14 +5,13 @@
<div class="footer-content"> <div class="footer-content">
<a href="/" class="logo"> <a href="/" class="logo">
<img src="{{ current_path }}/assets/img/logo-green.svg" alt=""> <img src="/wp-content/themes/cosmopet/static/img/svg/logo/logo-gradient.svg" alt="">
<span>сosmopet</span>
</a> </a>
<p class="footer-content__address"> <p class="footer-content__address">
{{adres}} {{adres}}
</p> </p>
<ul class="footer__list"> <ul class="footer__list">
{% for item in email_list %} {% for item in email_list_ae %}
<li class="footer-list__item"> <li class="footer-list__item">
<p>{{item.name}}</p> <p>{{item.name}}</p>
<a href="mailto:{{item.email}}">{{item.email}}</a> <a href="mailto:{{item.email}}">{{item.email}}</a>
@ -29,9 +28,9 @@
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
{% for item in links %} <a href="/privacy-policy/" class="footer-about__text">Privacy Policy</a>
<a href="{{item.link}}">{{item.name}}</a> <a href="/shipping-policy/" class="footer-about__text">Shipping Policy</a>
{% endfor %} <a href="/terms-conditions/" class="footer-about__text">Terms and Conditions</a>
</div> </div>
</div> </div>
<form class="footer-contact form-process" action="contact_form"> <form class="footer-contact form-process" action="contact_form">
@ -41,7 +40,7 @@
<textarea name="message" class="form-textarea" name="" placeholder="{{ function('pll_e', 'Текст обращения') }}" id=""></textarea> <textarea name="message" class="form-textarea" name="" placeholder="{{ function('pll_e', 'Текст обращения') }}" id=""></textarea>
<input type="hidden" name="from_url" value="{{ current_url }}"> <input type="hidden" name="from_url" value="{{ current_url }}">
<input type="hidden" name="form_name" value="Contact form in footer"> <input type="hidden" name="form_name" value="Contact form in footer">
<button class="footer-contact__submit" type="submit">{{ function('pll_e', 'ОТПРАВИТЬ') }}</button> <button class="footer-contact__submit" type="submit">{{ function('pll_e', 'SUBMIT') }}</button>
</form> </form>
{% elseif site_region == 'ru' %} {% elseif site_region == 'ru' %}
@ -50,7 +49,7 @@
<div class="footer-content__wrap"> <div class="footer-content__wrap">
<div class="footer-content"> <div class="footer-content">
<a href="/" class="logo"> <a href="/" class="logo">
<img src="{{ current_path }}/assets/img/logo-green.svg" alt=""> <img src="/wp-content/themes/cosmopet/static/img/svg/logo/logo-gradient.svg" alt="">
<span>сosmopet</span> <span>сosmopet</span>
</a> </a>
<p class="footer-content__address"> <p class="footer-content__address">

Loading…
Cancel
Save