Идеи для интернет-магазина: как красиво оформить акцию
Акции на сайте — неотъемлемая часть политики любого интернет-магазина. Чтобы привлечь внимание посетителей сайта и увеличить продажи, блок с акцией должен быть ярким, с уникальным дизайном.
В этом уроке представлены примеры оформления подобных блоков, которые вы можете взять на вооружение при оформлении акций на своём сайте. Для оформления текста используются шрифты от Google Fonts.
Перейти на страницу с примерами
Пример 1.
<div class="sale-wrap">
<div class="sale-inner">
<div class="sale-block">
<h3>30%<span>скидка</span></h3>
</div>
</div>
</div>
.sale-wrap {
width: 400px;
height: 300px;
padding: 20px;
margin: 50px auto 0;
background: #ffffff;
border-radius: 3px;
box-shadow: 0 1px 2px rgba(0,0,0,0.07);
}
.sale-inner {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
background: #db5638;
}
.sale-block {
border: 8px solid #f9f7f6;
border-radius: 3px;
display: inline-block;
}
.sale-block h3 {
line-height: 1;
padding: 10px 15px;
margin: 5px;
background: #2d3549;
font-size: 40px;
color: #f9f7f6;
font-family: 'Days One', sans-serif;
transform: rotate(-2deg);
}
.sale-block span {
display: block;
text-transform: uppercase;
font-size: 20px;
letter-spacing: 2px;
}
Пример 2.
<div class="sale-wrap">
<div class="sale-inner">
<div class="left">
<span class="fa fa-gift"></span>
</div>
<div class="right">
<h3><span>3</span><span class="text">Скидка</span><sup>%</sup>
</h3>
</div>
</div>
</div>
.sale-wrap {
width: 400px;
height: 300px;
padding: 20px;
margin: 50px auto 0;
background: #ffffff;
border-radius: 3px;
box-shadow: 0 1px 2px rgba(0,0,0,0.07);
box-sizing: content-box;
}
.sale-inner {
position: relative;
height: 100%;
background: #8ed1d7;
overflow: hidden;
}
.left {
position: absolute;
width: 300px;
height: 300px;
line-height: 300px;
left: -70px;
text-align: center;
font-size: 120px;
color: rgb(90,90,88);
border-radius: 50%;
box-shadow: 0 0 0 1px white,
0 0 0 7px #8ed1d7,0 0 0 8px white,
0 0 0 14px #8ed1d7,0 0 0 15px white,
0 0 0 21px #8ed1d7,0 0 0 22px white,
0 0 0 28px #8ed1d7,0 0 0 29px white,
0 0 0 35px #8ed1d7,0 0 0 36px white,
0 0 0 42px #8ed1d7,0 0 0 43px white,
0 0 0 49px #8ed1d7,0 0 0 50px white,
0 0 0 56px #8ed1d7,0 0 0 57px white,
0 0 0 63px #8ed1d7,0 0 0 64px white,
0 0 0 70px #8ed1d7,0 0 0 71px white,
0 0 0 77px #8ed1d7,0 0 0 78px white,
0 0 0 85px #8ed1d7,0 0 0 86px white;
}
.right {
position: absolute;
right: -150px;
width: 300px;
height: 300px;
border-radius: 50%;
background: white;
}
.right h3 {
position: absolute;
height: 50px;
top: 125px;
margin: 0;
padding-left: 30px;
font-family: 'Gravitas One', cursive;
color: #dda601;
font-weight: normal;
}
.right h3 > span {
font-size: 58px;
line-height: 1;
}
.right .text {
display: inline-block;
width: 50px;
height: 50px;
line-height: 50px;
border-radius: 50%;
background: #ff6636;
color: white;
text-align: center;
font-family: Arial;
font-size: 10px;
vertical-align: top;
}
sup {
font-size: 20px;
vertical-align: top;
}
Пример 3.
<div class="sale-wrap">
<div class="sale-inner">
<div class="sale-info">
<div class="sale-info-top">15%</div>
<div class="sale-info-bottom">H&M</div>
</div>
<div class="sale-text">
<p>Июнь, 1 - 15, 2017</p>
<h3>Летняя распродажа</h3>
<p>Скидки по дисконтной карте</p>
</div>
</div>
</div>
.sale-wrap {
width: 400px;
height: 300px;
padding: 20px;
margin: 50px auto 0;
background: #ffffff;
border-radius: 3px;
box-shadow: 0 1px 2px rgba(0,0,0,0.07);
box-sizing: content-box;
}
.sale-inner {
position: relative;
height: 100%;
background: repeating-linear-gradient(-45deg, #bc2423, #bc2423 7px, #910707 8px, #910707 13px);
}
.sale-text {
position: absolute;
left: 0;
right: 0;
top: 50%;
background: #910707;
text-align: center;
color: rgba(255,255,255,.8);
transform: translateY(-50%);
}
.sale-text p {
margin: 0;
padding: 5px;
font-size: 10px;
letter-spacing: 3px;
color: rgba(255,255,255,.8);
font-family: 'Comfortaa', cursive;
text-transform: uppercase;
background: #bc2423;
box-shadow: 0 2px 5px rgba(0,0,0,.2), 0 -2px 5px rgba(0,0,0,.2);
}
.sale-text h3 {
margin: 0;
padding: 15px 0 20px;
font-family: 'Playfair Display', serif;
line-height: 1;
font-style: italic;
font-size: 30px;
font-weight: normal;
}
.sale-info {
position: relative;
width: 70px;
height: 100%;
margin: 0 auto;
background: #910707;
font-family: 'Oswald', sans-serif;
font-size: 30px;
text-align: center;
color: rgba(255,255,255,.8);
border-left: 20px solid #bc2423;
border-right: 20px solid #bc2423;
box-shadow: 2px 0 5px rgba(0,0,0,.2), -2px 0 5px rgba(0,0,0,.2);
box-sizing: content-box;
}
.sale-info-top {
padding: 26px 0;
}
.sale-info-bottom {
position: absolute;
bottom: 26px;
left: 0;
right: 0;
}
Пример 4.
<div class="sale-wrap">
<div class="sale-inner">
<div class="sale-text"><h2>Весеннее предложение</h2>
<p>40% <span>скидка*</span></p>
<a class="button" href="">Перейти к акции</a>
<p class="sale-text-info">*Используйте купон для участия в акции</p>
</div>
</div>
</div>
.sale-wrap {
position: relative;
width: 400px;
height: 300px;
padding: 30px 40px;
margin: 50px auto 0;
background: #ffffff;
box-shadow: 0 1px 2px rgba(0,0,0,0.07);
box-sizing: border-box;
overflow: hidden;
}
.sale-wrap:before {
content: "";
position: absolute;
left: 0;
top: 0;
width: 760px;
height: 760px;
background: rgb(240,96,96);
border-radius: 50%;
}
.sale-inner {
position: relative;
height: 100%;
background: linear-gradient(45deg, rgb(240,96,96), rgb(243,181,96));
box-shadow: 0 10px 45px rgba(240,96,96, 0.3), 0 -10px 45px rgba(240,96,96, 0.3);
}
.sale-inner:before {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: white;
border-bottom-right-radius: 150px;
box-shadow: 3px 3px 20px rgba(0,0,0,.06);
}
.sale-text {
position: absolute;
top: 0;
width: 100%;
z-index: 5;
padding: 40px 10px 0 40px;
box-sizing: border-box;
}
.sale-text h2 {
margin: 0 0 5px;
color: #888888;
font-family: 'Comfortaa', cursive;
font-size: 13px;
font-weight: normal;
letter-spacing: 1px;
}
.sale-text p {
margin: 0;
font-family: 'Merriweather', serif;
font-size: 40px;
font-weight: bold;
color: rgb(240,96,96);
}
.sale-text p span {
font-size: 20px;
ont-weight: normal;
}
.button {
display: inline-block;
margin: 20px 0;
padding: 5px 10px;
text-decoration: none;
color: rgb(240,96,96);
font-family: 'Comfortaa', cursive;
text-transform: lowercase;
font-size: 12px;
border: 1px solid rgb(240,96,96);
}
.sale-text .sale-text-info {
color: #888888;
font-family: 'Comfortaa', cursive;
font-size: 10px;
font-weight: normal;
}
Пример 5.
<div class="sale-wrap">
<div class="sale-inner">
<div><span>2</span><span class="s"></span><span>%</span></div>
<p>СКИDКА</p>
</div>
</div>
.sale-wrap {
width: 400px;
height: 300px;
margin: 50px auto 0;
padding: 60px 80px;
background: #FE5741;
box-shadow: 0 1px 2px rgba(0,0,0,0.2);
border-radius: 3px;
box-sizing: border-box;
font-family: 'Poiret One', cursive;
color: #FCF8F3;
}
.sale-inner {
position: relative;
width: 100%;
height: 100%;
border: 3px solid #FFEBD8;
text-align: center;
}
.sale-inner span {
font-size: 100px;
font-weight: bold;
line-height: 1;
}
.sale-inner p {
position: absolute;
bottom: 0;
left: 0;
right: 0;
margin: 0;
font-size: 60px;
font-weight: bold;
line-height: .9;
}
.s {
position: relative;
margin: 0 6px;
display: inline-block;
width: 82px;
height: 74px;
border: 3px solid rgba(0,0,0,.3);
border-top-width: 0;
border-bottom-left-radius: 60px;
border-bottom-right-radius: 35px;
}
.s:after {
content: "";
position: absolute;
left: -5px;
top: 0;
width: 82px;
height: 74px;
border: 5px solid;
border-top-width: 0;
border-bottom-left-radius: 70px;
border-bottom-right-radius: 70px;
box-sizing: border-box;
}