Added section discount

This commit is contained in:
Sergey Yarkov 2019-08-31 19:50:32 +03:00
parent 7cdfddd2ee
commit 6cf567fcc8
5 changed files with 177 additions and 13 deletions

View File

@ -291,11 +291,84 @@
и скидки для наших клиентов и скидки для наших клиентов
</h2> </h2>
<div class="container"> <div class="container">
<div class="row"> <div class="row wrap-discount">
<div class="col-md-3 col-sm-6">
<div class="wrap-discount__item">
<div class="discount-item__img">
<div class="discount-img">
<span>10%</span>
</div>
</div>
<div class="discount-item__description">
<p>
Дополнительная скидка 10%<br>
на вторую запчасть<br>
и любые последующие<br>
</p>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="wrap-discount__item">
<div class="discount-item__img">
<div class="discount-img">
<span>20%</span>
</div>
</div>
<div class="discount-item__description">
<p>
Скидка 20% при заключении<br>
договора на годовое<br>
сервисное обслуживание<br>
</p>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="wrap-discount__item">
<div class="discount-item__img">
<div class="discount-img">
<img src="./src/img/main-discount/delivery-truck.png" alt="#">
</div>
</div>
<div class="discount-item__description">
<p>
Бесплатная доставка<br>
по всей России<br>
для всех клиентов<br>
</p>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="wrap-discount__item">
<div class="discount-item__img">
<div class="discount-img">
<img src="./src/img/main-discount/telemarketer.png" alt="#">
</div>
</div>
<div class="discount-item__description">
<p>
Бесплатная круглосуточная<br>
техническая поддержка<br>
</p>
</div>
</div>
</div>
</div> </div>
</div> </div>
</section> </section>
<section id="working">
<h2>С нами удобно работать!</h2>
<div class="title-description">
<p>
Более 70% клиентов приходят к нам по рекомендации!
</p>
</div>
<div class="container">
</div>
</section>
</main> </main>
<!-- Index Js --> <!-- Index Js -->
<script src="./src/js/index.js"></script> <script src="./src/js/index.js"></script>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -9,7 +9,9 @@
#price h2 { #price h2 {
text-align: center; text-align: center;
} }
#guarantees .guarantees-card__desctiption p br {
#guarantees .guarantees-card__desctiption p br,
#discount .discount-item__description p br {
display: none; display: none;
} }
} }
@ -43,14 +45,17 @@
text-align: center; text-align: center;
} }
} }
@media (max-width: 768px){
@media (max-width: 768px) {
#guarantees .wrap-guarantees__card { #guarantees .wrap-guarantees__card {
margin-top: 25px; margin-top: 25px;
} }
#guarantees .guarantees-card__desctiption { #guarantees .guarantees-card__desctiption {
margin-top: 20px; margin-top: 20px;
} }
} }
@media (max-width: 630px) { @media (max-width: 630px) {
#price .form-price__input { #price .form-price__input {
flex-direction: column; flex-direction: column;

View File

@ -68,6 +68,7 @@ a {
button { button {
outline: none; outline: none;
} }
input { input {
height: 70px; height: 70px;
border: none; border: none;
@ -267,11 +268,13 @@ header {
width: 370px; width: 370px;
margin-left: 30px; margin-left: 30px;
} }
.form-price__input input:nth-child(1) { .form-price__input input:nth-child(1) {
background-image: url(../img/main-price/email-icon.png); background-image: url(../img/main-price/email-icon.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center right 30px; background-position: center right 30px;
} }
.form-price__input input:nth-child(2) { .form-price__input input:nth-child(2) {
background-image: url(../img/main-price/phone-icon.png); background-image: url(../img/main-price/phone-icon.png);
background-repeat: no-repeat; background-repeat: no-repeat;
@ -352,6 +355,7 @@ header {
.advantages-card__img { .advantages-card__img {
height: 100px; height: 100px;
} }
/* Section Detail */ /* Section Detail */
#detail { #detail {
min-height: 580px; min-height: 580px;
@ -359,19 +363,26 @@ header {
background: url(../img/main-detail/main-detail__background.jpg) no-repeat center center; background: url(../img/main-detail/main-detail__background.jpg) no-repeat center center;
background-size: cover; background-size: cover;
} }
#detail h2, .title-description p {
#detail h2,
.title-description p {
color: #fff; color: #fff;
} }
#detail .title-description { #detail .title-description {
margin-top: 30px; margin-top: 30px;
} }
.wrap-detail { .wrap-detail {
margin-top: 60px; margin-top: 60px;
} }
.wrap-detail input, .wrap-detail button {
.wrap-detail input,
.wrap-detail button {
width: 100%; width: 100%;
} }
.wrap-detail .col-lg-4:nth-child(2) .wrap-detail__input input{
.wrap-detail .col-lg-4:nth-child(2) .wrap-detail__input input {
background-image: url(../img/main-price/phone-icon.png); background-image: url(../img/main-price/phone-icon.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center right 30px; background-position: center right 30px;
@ -394,64 +405,139 @@ header {
border: 2px solid #f7b516; border: 2px solid #f7b516;
color: #fff; color: #fff;
} }
.detail-description { .detail-description {
text-align: center; text-align: center;
color: #fff; color: #fff;
margin-top: 57px; margin-top: 57px;
} }
.detail-desciption__number { .detail-desciption__number {
margin-top: 30px; margin-top: 30px;
} }
.detail-desciption__number p span { .detail-desciption__number p span {
font-family: 'ProximaNovaExtraBold'; font-family: 'ProximaNovaExtraBold';
font-size: 32px; font-size: 32px;
display: block; display: block;
margin-top: 10px; margin-top: 10px;
} }
.wrap-detail__input, .wrap-detail__button {
.wrap-detail__input,
.wrap-detail__button {
margin-top: 15px; margin-top: 15px;
} }
/* Section Guarantees */ /* Section Guarantees */
#guarantees { #guarantees {
padding-top: 100px; padding-top: 100px;
padding-bottom: 100px; padding-bottom: 100px;
background-color: #fff; background-color: #fff;
} }
.wrap-guarantees { .wrap-guarantees {
margin-top: 100px; margin-top: 100px;
} }
.wrap-guarantees__card { .wrap-guarantees__card {
text-align: center; text-align: center;
} }
.guarantees-card__img { .guarantees-card__img {
height: 300px; height: 300px;
} }
.wrap-guarantees .col-md-4:nth-child(1) .wrap-guarantees__card .guarantees-card__img img { .wrap-guarantees .col-md-4:nth-child(1) .wrap-guarantees__card .guarantees-card__img img {
background-color: #e1e1e1; background-color: #e1e1e1;
padding: 15px; padding: 15px;
height: 300px; height: 300px;
width: 230px; width: 230px;
} }
.guarantees-card__desctiption { .guarantees-card__desctiption {
margin-top: 35px; margin-top: 35px;
font-family: 'ProximaNovaRegular'; font-family: 'ProximaNovaRegular';
} }
.guarantees-card__link { .guarantees-card__link {
text-transform: uppercase; text-transform: uppercase;
margin-top: 25px; margin-top: 25px;
} }
.guarantees-card__link a { .guarantees-card__link a {
border-bottom: 1px solid #000; border-bottom: 1px solid #000;
font-family: 'ProximaNovaBold'; font-family: 'ProximaNovaBold';
} }
/* #info, #price, #advantages, #detail, #guarantees {
display: none;
} */
/* Section Discount */ /* Section Discount */
#discount { #discount {
padding-top: 100px; padding-top: 100px;
padding-bottom: 100px;
background-color: #08243e; background-color: #08243e;
} }
#discount h2 { #discount h2 {
color: #fff; color: #fff;
} }
.wrap-discount {
margin-top: 100px;
}
.wrap-discount__item {
text-align: center;
margin-top: 25px;
}
.discount-item__img {
display: flex;
justify-content: center;
}
.discount-img {
height: 100px;
width: 100px;
border: 2px solid #fff;
border-radius: 50%;
display: flex;
justify-content: center;
}
.discount-img span {
align-self: center;
color: #fff;
font-family: 'ProximaNovaExtraBold';
font-size: 24px;
}
.discount-img img {
align-self: center;
}
.discount-item__description {
color: #fff;
margin-top: 35px;
}
#info,
#price,
#advantages,
#detail,
#guarantees,
#discount {
display: none;
}
/* Section Working */
#working {
padding-top: 100px;
padding-bottom: 100px;
}
#working .title-description p {
color: #000;
}
#working .title-description {
margin-top: 25px;
}