Commit b709bfa8a0686ae50ca25f6f143398d6456b23ce

Authored by Eugeny Galkovskiy
1 parent 77041489

кнопки1

frontend/views/layouts/main.php
... ... @@ -93,10 +93,10 @@ _________________________________________________________ -->
93 93 <p class="hidden-sm hidden-xs">
94 94 <?php
95 95 if (!empty($settings->phone)) {
96   - echo \Yii::t('app', 'Contact us on ');
  96 + echo \Yii::t('app', 'Зв\'яжіться з нами по тел. ');
97 97 echo Html::a($settings->phone, "tel: {$settings->phone}");
98 98 if (!empty($settings->email)) {
99   - echo \Yii::t('app', ' or ');
  99 + echo \Yii::t('app', ' або ');
100 100 echo Html::a($settings->email, "mailto:$settings->email");
101 101 }
102 102 }
... ...
frontend/views/site/index.php
... ... @@ -188,8 +188,10 @@ $this-&gt;title = &#39;My Yii Application&#39;;
188 188 <iframe class="embed-responsive-item" src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2FKBEnergy.UA%2Fvideos%2F1171662169609800%2F&show_text=0" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="true"></iframe>
189 189 </div>
190 190 </div>
191   - <a>Замовити консультацію</a>
192   - <a>Розрахувати вартість проекту</a>
  191 + <div class="head_video_buttons">
  192 + <a href="#" class="btn button1 icon_phone" data-toggle="modal" data-target="#feedback-modal" style="width: 200px;">Замовити <span>консультацію</span></a>
  193 + <a href="#" class="btn button2 right" data-toggle="modal" data-target="#feedback-modal">Розрахувати <span>вартість проекту</span></a>
  194 + </div>
193 195 </div>
194 196 </div>
195 197 </div>
... ... @@ -240,7 +242,7 @@ $this-&gt;title = &#39;My Yii Application&#39;;
240 242 </div>
241 243 <div class="row">
242 244 <div class="col-md-12" style="text-align:center;">
243   - <a href="#" class="btn button1 icon_stat">Замовити <span>консультацію</span></a>
  245 + <a href="#" class="btn button1 icon_phone" data-toggle="modal" data-target="#feedback-modal">Замовити <span>консультацію</span></a>
244 246 </div>
245 247 </div>
246 248 </div>
... ... @@ -276,18 +278,21 @@ $this-&gt;title = &#39;My Yii Application&#39;;
276 278 <a href="#" class="open_gal" id="gal01">
277 279 <p class="pr_title">Освітлення Харківського шосе</p>
278 280 <div class="pr_cover"><img src="../img/pic02.jpg"></div>
279   - <div class="buttons text-right row">
280   - <a href="#">1</a>
281   - <a href="#">2</a>
282   - </div>
283 281 </a>
  282 + <div class="buttons text-right row">
  283 + <a href="#" class="open_gal sqre_btn blue_arrow" id="gal01"></a>
  284 + <a href="#" class="btn sqre_btn yellow_calc" data-toggle="modal" data-target="#feedback-modal"></a>
  285 + </div>
284 286 </div>
285 287 <div class="col-md-12 row project-right">
286 288 <a href="#" class="open_gal" id="gal02">
287 289 <p class="pr_title">Металоконструкція. Власне виробництво</p>
288 290 <div class="pr_cover"><img src="../img/pic01.jpg"></div>
289 291 </a>
290   -
  292 + <div class="buttons text-right row">
  293 + <a href="#" class="open_gal sqre_btn blue_arrow" id="gal02"></a>
  294 + <a href="#" class="btn sqre_btn yellow_calc" data-toggle="modal" data-target="#feedback-modal"></a>
  295 + </div>
291 296 </div>
292 297 <div class="col-md-12 row project-right">
293 298  
... ... @@ -295,7 +300,10 @@ $this-&gt;title = &#39;My Yii Application&#39;;
295 300 <p class="pr_title">Сонячна електростанція для Укртрансгаз</p>
296 301 <div class="pr_cover"><img src="../img/pic03.jpg"></div>
297 302 </a>
298   -
  303 + <div class="buttons text-right row">
  304 + <a href="#" class="open_gal sqre_btn blue_arrow" id="gal03"></a>
  305 + <a href="#" class="btn sqre_btn yellow_calc" data-toggle="modal" data-target="#feedback-modal"></a>
  306 + </div>
299 307 </div>
300 308 </div>
301 309 </div>
... ...
frontend/web/css/style.css
... ... @@ -33,7 +33,7 @@
33 33  
34 34 .project-right{
35 35 border-bottom: 1px solid #cccccc;
36   - padding-bottom: 25px;
  36 + padding-bottom: 15px;
37 37 max-width: 320px;
38 38 padding-left: 0;
39 39 margin-left: auto;
... ... @@ -89,9 +89,12 @@
89 89 background-repeat: no-repeat;
90 90 padding-left: 25px;
91 91 letter-spacing:0;
  92 + border: none;
  93 + outline: none;
92 94 }
93   -.button1.icon_stat{background-image: url(../img/icon_stat.png);}
94   -.button1 span{
  95 +.btn.icon_stat{background-image: url(../img/icon_stat.png);}
  96 +.btn.icon_phone{background-image: url(../img/icon_phone.png);}
  97 +.button1 span, .button2 span{
95 98 display: block;
96 99 font-weight: normal;
97 100 font-size: 14px;
... ... @@ -102,4 +105,66 @@
102 105 background-color: #ffe764;
103 106 box-shadow: inset 0px 0px 0px 2px black, 0px 0px 20px rgba(0,0,0,0.2)!important;
104 107 transition: 0.3s;
  108 +}
  109 +a.sqre_btn {
  110 + padding: 0;
  111 + margin: 0;
  112 + outline: none;
  113 + font-weight: normal;
  114 + font-size: 14px;
  115 + line-height: normal;
  116 + letter-spacing: 0;
  117 + display: inline-block;
  118 + vertical-align: middle;
  119 + width: 40px;
  120 + height: 40px;
  121 + background-color: rgba(255, 0, 0, 0.23);
  122 + border-radius: 0;
  123 + text-align: center;
  124 + overflow: hidden;
  125 + margin-left: 5px;
  126 + margin-top: 5px;
  127 + background-position: center;
  128 + background-repeat: no-repeat;
  129 +}
  130 +.sqre_btn.blue_arrow{
  131 + background-color: #0095d7;
  132 + background-image: url(../img/arrows_right_w.png);
  133 +}
  134 +.sqre_btn.yellow_calc{
  135 + background-color: #ffd800;
  136 + background-image: url(../img/icon_calc2.png);
  137 +}
  138 +.btn.button2{
  139 + background-color: #0095d7;
  140 + color: #fff;
  141 + background-image: url(../img/arrows_right_w.png);
  142 + margin: 0 auto;
  143 + text-transform: uppercase;
  144 + text-decoration: none;
  145 + cursor: pointer;
  146 + transition: 0.3s;
  147 + display: inline-block;
  148 + text-align: center;
  149 + font-weight: bold;
  150 + width: 250px;
  151 + padding: 12px 0;
  152 + font-size: 16px;
  153 + line-height: 18px;
  154 + background-position: calc(100% - 25px) center;
  155 + background-repeat: no-repeat;
  156 + padding-right: 25px;
  157 + letter-spacing: 0;
  158 + border: none;
  159 + outline: none;
  160 +}
  161 +.btn.right{float:right;}
  162 +.btn.button2:hover{
  163 + background-color: #40c4ff;
  164 +}
  165 +.head_video_buttons{
  166 + margin-top: 5px;
  167 + display: inline-block;
  168 + position: relative;
  169 + width: 100%;
105 170 }
106 171 \ No newline at end of file
... ...