Commit 8661d1403f5e7b2a6753108c1fc36ece80577953

Authored by Eugeny Galkovskiy
1 parent 5740bd9e

footer

common/messages/ru/app.php
... ... @@ -121,4 +121,6 @@ return [
121 121 'sect3_21' => 'Обратиться к нам и',
122 122 'Office {office}' => 'Офис {office}',
123 123 'Contact us' => 'Связаться с нами',
  124 + 'Go to contact page' => 'На страницу контактов',
  125 + 'Share' => 'Поделиться',
124 126 ];
125 127 \ No newline at end of file
... ...
frontend/views/layouts/main.php
... ... @@ -97,148 +97,148 @@
97 97 <header>
98 98 <!-- *** TOP ***
99 99 _________________________________________________________ -->
100   - <div id="top">
101   - <div class="container">
102   - <div class="row">
103   - <div class="col-xs-5 contact">
104   - <p class="hidden-sm hidden-xs">
105   - <?php
106   - if (!empty($settings->phone)) {
107   - echo \Yii::t('app', 'Contact us on ');
108   - echo Html::a($settings->phone, \Yii::t('app', 'tel:')." {$settings->phone}");
109   - if (!empty($settings->email)) {
110   - echo \Yii::t('app', ' or ');
111   - echo Html::a($settings->email, "mailto:$settings->email");
112   - }
113   - }
114   - ?>
115   - </p>
116   - <p class="hidden-md hidden-lg">
117   - <a href="#" data-animate-hover="pulse"><i class="fa fa-phone"></i></a>
118   - <a href="#" data-animate-hover="pulse"><i class="fa fa-envelope"></i></a>
119   - </p>
120   - </div>
121   - <div class="col-xs-7">
122   - <div class="social">
123   - <?php
124   - if (!empty($settings->facebook)) {
125   - echo Html::a(
126   - Html::icon(
127   - 'facebook',
128   - [
129   - 'prefix' => 'fa fa-',
130   - ]
131   - ),
132   - $settings->facebook,
133   - [
134   - 'class' => 'external facebook',
135   - 'data' => [
136   - 'animate-hover' => 'pulse',
137   - ],
138   - ]
139   - );
140   - }
141   - ?>
142   - <?php
143   - if (!empty($settings->vk)) {
144   - echo Html::a(
145   - Html::icon(
146   - 'vk',
147   - [
148   - 'prefix' => 'fa fa-',
149   - ]
150   - ),
151   - $settings->vk,
152   - [
153   - 'class' => 'external vk',
154   - 'data' => [
155   - 'animate-hover' => 'pulse',
156   - ],
157   - ]
158   - );
159   - }
160   - ?>
161   - <?php
162   - if (!empty($settings->google)) {
163   - echo Html::a(
164   - Html::icon(
165   - 'google-plus',
166   - [
167   - 'prefix' => 'fa fa-',
168   - ]
169   - ),
170   - $settings->google,
171   - [
172   - 'class' => 'external gplus',
173   - 'data' => [
174   - 'animate-hover' => 'pulse',
175   - ],
176   - ]
177   - );
178   - }
179   - ?>
180   - <?php
181   - if (!empty($settings->twitter)) {
182   - echo Html::a(
183   - Html::icon(
184   - 'twitter',
185   - [
186   - 'prefix' => 'fa fa-',
187   - ]
188   - ),
189   - $settings->twitter,
190   - [
191   - 'class' => 'external twitter',
192   - 'data' => [
193   - 'animate-hover' => 'pulse',
194   - ],
195   - ]
196   - );
197   - }
198   - ?>
199   - <?php
200   - if (!empty($settings->ok)) {
201   - echo Html::a(
202   - Html::icon(
203   - 'odnoklassniki',
204   - [
205   - 'prefix' => 'fa fa-',
206   - ]
207   - ),
208   - $settings->ok,
209   - [
210   - 'class' => 'external odnoklassniki',
211   - 'data' => [
212   - 'animate-hover' => 'pulse',
213   - ],
214   - ]
215   - );
216   - }
217   - ?>
218   - <?php
219   - if (!empty($settings->email)) {
220   - echo Html::a(
221   - Html::icon(
222   - 'envelope',
223   - [
224   - 'prefix' => 'fa fa-',
225   - ]
226   - ),
227   - "mailto:$settings->email",
228   - [
229   - 'class' => 'email',
230   - 'data' => [
231   - 'animate-hover' => 'pulse',
232   - ],
233   - ]
234   - );
235   - }
236   - ?>
237   - </div>
238   - </div>
239   - </div>
240   - </div>
241   - </div>
  100 +<!-- <div id="top">-->
  101 +<!-- <div class="container">-->
  102 +<!-- <div class="row">-->
  103 +<!-- <div class="col-xs-5 contact">-->
  104 +<!-- <p class="hidden-sm hidden-xs">-->
  105 +<!-- --><?php
  106 +// if (!empty($settings->phone)) {
  107 +// echo \Yii::t('app', 'Contact us on ');
  108 +// echo Html::a($settings->phone, \Yii::t('app', 'tel:')." {$settings->phone}");
  109 +// if (!empty($settings->email)) {
  110 +// echo \Yii::t('app', ' or ');
  111 +// echo Html::a($settings->email, "mailto:$settings->email");
  112 +// }
  113 +// }
  114 +// ?>
  115 +<!-- </p>-->
  116 +<!-- <p class="hidden-md hidden-lg">-->
  117 +<!-- <a href="#" data-animate-hover="pulse"><i class="fa fa-phone"></i></a>-->
  118 +<!-- <a href="#" data-animate-hover="pulse"><i class="fa fa-envelope"></i></a>-->
  119 +<!-- </p>-->
  120 +<!-- </div>-->
  121 +<!-- <div class="col-xs-7">-->
  122 +<!-- <div class="social">-->
  123 +<!-- --><?php
  124 +// if (!empty($settings->facebook)) {
  125 +// echo Html::a(
  126 +// Html::icon(
  127 +// 'facebook',
  128 +// [
  129 +// 'prefix' => 'fa fa-',
  130 +// ]
  131 +// ),
  132 +// $settings->facebook,
  133 +// [
  134 +// 'class' => 'external facebook',
  135 +// 'data' => [
  136 +// 'animate-hover' => 'pulse',
  137 +// ],
  138 +// ]
  139 +// );
  140 +// }
  141 +// ?>
  142 +<!-- --><?php
  143 +// if (!empty($settings->vk)) {
  144 +// echo Html::a(
  145 +// Html::icon(
  146 +// 'vk',
  147 +// [
  148 +// 'prefix' => 'fa fa-',
  149 +// ]
  150 +// ),
  151 +// $settings->vk,
  152 +// [
  153 +// 'class' => 'external vk',
  154 +// 'data' => [
  155 +// 'animate-hover' => 'pulse',
  156 +// ],
  157 +// ]
  158 +// );
  159 +// }
  160 +// ?>
  161 +<!-- --><?php
  162 +// if (!empty($settings->google)) {
  163 +// echo Html::a(
  164 +// Html::icon(
  165 +// 'google-plus',
  166 +// [
  167 +// 'prefix' => 'fa fa-',
  168 +// ]
  169 +// ),
  170 +// $settings->google,
  171 +// [
  172 +// 'class' => 'external gplus',
  173 +// 'data' => [
  174 +// 'animate-hover' => 'pulse',
  175 +// ],
  176 +// ]
  177 +// );
  178 +// }
  179 +// ?>
  180 +<!-- --><?php
  181 +// if (!empty($settings->twitter)) {
  182 +// echo Html::a(
  183 +// Html::icon(
  184 +// 'twitter',
  185 +// [
  186 +// 'prefix' => 'fa fa-',
  187 +// ]
  188 +// ),
  189 +// $settings->twitter,
  190 +// [
  191 +// 'class' => 'external twitter',
  192 +// 'data' => [
  193 +// 'animate-hover' => 'pulse',
  194 +// ],
  195 +// ]
  196 +// );
  197 +// }
  198 +// ?>
  199 +<!-- --><?php
  200 +// if (!empty($settings->ok)) {
  201 +// echo Html::a(
  202 +// Html::icon(
  203 +// 'odnoklassniki',
  204 +// [
  205 +// 'prefix' => 'fa fa-',
  206 +// ]
  207 +// ),
  208 +// $settings->ok,
  209 +// [
  210 +// 'class' => 'external odnoklassniki',
  211 +// 'data' => [
  212 +// 'animate-hover' => 'pulse',
  213 +// ],
  214 +// ]
  215 +// );
  216 +// }
  217 +// ?>
  218 +<!-- --><?php
  219 +// if (!empty($settings->email)) {
  220 +// echo Html::a(
  221 +// Html::icon(
  222 +// 'envelope',
  223 +// [
  224 +// 'prefix' => 'fa fa-',
  225 +// ]
  226 +// ),
  227 +// "mailto:$settings->email",
  228 +// [
  229 +// 'class' => 'email',
  230 +// 'data' => [
  231 +// 'animate-hover' => 'pulse',
  232 +// ],
  233 +// ]
  234 +// );
  235 +// }
  236 +// ?>
  237 +<!-- </div>-->
  238 +<!-- </div>-->
  239 +<!-- </div>-->
  240 +<!-- </div>-->
  241 +<!-- </div>-->
242 242 <!-- *** TOP END *** -->
243 243  
244 244 <div class="small-logo-center text-center hidden-xs hidden-md hidden-lg">
... ... @@ -489,40 +489,43 @@ _________________________________________________________ --&gt;
489 489 <a href="#" class="btn btn-template-transparent-primary" data-toggle="modal" data-target="#feedback-modal"><?php echo \Yii::t('app', 'Contact us'); ?></a>
490 490 </div>
491 491  
492   - <div class="col-md-3 col-sm-12 col-md-offset-1">
  492 + <div class="col-md-4 col-sm-12">
493 493  
494 494 <h4><?php echo \Yii::t('app', 'Contact'); ?></h4>
495 495  
496 496 <p>
497   - <?php
498   - if (!empty($settings->office)) {
499   - echo \Yii::t(
500   - 'app',
501   - 'Office {office}',
502   - [
503   - 'office' => $settings->office,
504   - ]
505   - ) . Html::tag('br');
506   - }
507   - if (!empty($settings->street)) {
508   - echo $settings->street;
509   - if (!empty($settings->house)) {
510   - echo " " . $settings->house;
511   - }
512   - echo Html::tag('br');
513   - }
514   - if (!empty($settings->city)) {
515   - echo $settings->city;
516   - echo Html::tag('br');
517   - }
518   - if (!empty($settings->country)) {
519   - echo Html::tag('strong', $settings->country);
520   - }
521   - ?>
  497 + <b>Адрес:</b> 02095, Украина, г. Киев <br />пр-т. Николая Бажана, 1М, офис 25<br />
  498 + <b>Тел.:</b> <a href="tel:+380683803982">+380 68 380 39 82</a><br />
  499 + <b>Почта:</b> <a href="mailto:kbenergy.kiev@gmail.com">kbenergy.kiev@gmail.com</a>
  500 +<!-- --><?php
  501 +// if (!empty($settings->office)) {
  502 +// echo \Yii::t(
  503 +// 'app',
  504 +// 'Office {office}',
  505 +// [
  506 +// 'office' => $settings->office,
  507 +// ]
  508 +// ) . Html::tag('br');
  509 +// }
  510 +// if (!empty($settings->street)) {
  511 +// echo $settings->street;
  512 +// if (!empty($settings->house)) {
  513 +// echo " " . $settings->house;
  514 +// }
  515 +// echo Html::tag('br');
  516 +// }
  517 +// if (!empty($settings->city)) {
  518 +// echo $settings->city;
  519 +// echo Html::tag('br');
  520 +// }
  521 +// if (!empty($settings->country)) {
  522 +// echo Html::tag('strong', $settings->country);
  523 +// }
  524 +// ?>
522 525 </p>
523 526  
524 527 <?= Html::a(
525   - 'Go to contact page',
  528 + \Yii::t('app', 'Go to contact page'),
526 529 [ 'site/contact' ],
527 530 [
528 531 'class' => 'btn btn-small btn-template-transparent-primary',
... ... @@ -534,7 +537,15 @@ _________________________________________________________ --&gt;
534 537 </div>
535 538 <div class="col-md-3 col-sm-12">
536 539 <h4><?php echo \Yii::t('app', 'Share'); ?></h4>
  540 + <div class="social-logos">
  541 + <span>
  542 + <a href="http://vk.com/share.php?url=<?php echo 'http://'.$_SERVER['SERVER_NAME'].'/'; ?>" class="logoscnet"><i class="fa fa-vk" aria-hidden="true"></i></a>
  543 + <a href="http://www.facebook.com/sharer/sharer.php?u=<?php echo 'http://'.$_SERVER['SERVER_NAME'].'/'; ?>" class="logoscnet"><i class="fa fa-facebook" aria-hidden="true"></i></a>
  544 + <a href="https://plus.google.com/share?url=<?php echo 'http://'.$_SERVER['SERVER_NAME'].'/'; ?>" class="logoscnet"><i class="fa fa-google-plus" aria-hidden="true"></i></a>
  545 + </span>
  546 + </div>
537 547 </div>
  548 +
538 549  
539 550 <div class="col-md-12">
540 551 <p class="pull-left">&copy; <?= date('Y') ?>. <?= $settings->name; ?></p>
... ...
frontend/views/site/legal.php
... ... @@ -28,6 +28,16 @@ $this-&gt;registerJs($js, View::POS_END);
28 28  
29 29 <div id="legal-wr">
30 30 <div id="content">
  31 +
  32 + <section class="video_main">
  33 + <div id="video-bg">
  34 + <video width="100%" height="auto" muted="" autoplay="autoplay" loop="loop" preload="auto">
  35 + <source src="/video/kbvid1.mp4" type="video/mp4">
  36 + <source src="/video/kbvid1.ogg" type="video/ogg">
  37 + </video>
  38 + </div>
  39 +
  40 + </section>
31 41 <section class="no-mb mtop-25">
32 42 <div class="container">
33 43 <div class="row">
... ... @@ -266,6 +276,43 @@ $this-&gt;registerJs($js, View::POS_END);
266 276 </div>
267 277 </section>
268 278  
  279 + <section class="bar background-kben no-mb">
  280 + <div class="container">
  281 + <div class="row showcase">
  282 + <div class="col-md-3 col-sm-6">
  283 + <div class="item">
  284 + <h4><span class="counter">58</span><br>
  285 +
  286 + <?= Yii::t('app', 'sect22_1') ?></h4>
  287 + </div>
  288 + </div>
  289 + <div class="col-md-3 col-sm-6">
  290 + <div class="item">
  291 + <h4><span class="counter">117</span><br>
  292 +
  293 + <?= Yii::t('app', 'sect22_2') ?></h4>
  294 + </div>
  295 + </div>
  296 + <div class="col-md-3 col-sm-6">
  297 + <div class="item">
  298 + <h4><span class="counter">193</span><br>
  299 +
  300 + <?= Yii::t('app', 'sect22_3') ?></h4>
  301 + </div>
  302 + </div>
  303 + <div class="col-md-3 col-sm-6">
  304 + <div class="item">
  305 + <h4><span class="counter">303</span><br>
  306 +
  307 + <?= Yii::t('app', 'sect22_4') ?></h4>
  308 + </div>
  309 + </div>
  310 + </div>
  311 + <!-- /.row -->
  312 + </div>
  313 + <!-- /.container -->
  314 + </section>
  315 +
269 316 <section class="bar background-white no-mg">
270 317 <div class="container">
271 318 <div class="col-md-12">
... ...
frontend/web/css/main.css
... ... @@ -297,7 +297,65 @@ section.blue-fon {padding-top: 25px;}
297 297 .small-logo-center{
298 298 margin: 10px 0 -10px;
299 299 }
  300 +.showcase .item h4 {
  301 + color: #ffffff;
  302 +}
300 303  
  304 +#video-bg{
  305 + position: relative;
  306 + top: 0;
  307 + left: 0;
  308 + z-index: -1000;
  309 + width: 100%;
  310 + height: 100%;
  311 + max-height: calc(100vh - 101px);
  312 + overflow: hidden;
  313 + display: flex;
  314 + align-items: center;
  315 + justify-content: center;
  316 +}
  317 +#video-bg:after {
  318 + content: '';
  319 + position: absolute;
  320 + top: 0;
  321 + left: 0;
  322 + width: 100%;
  323 + height: 100%;
  324 + background: rgba(0, 0, 0, 0.1);
  325 + box-shadow: inset 0px 250px 250px -250px black, inset 0px -250px 250px -250px black;
  326 +}
  327 +#legal-wr .video_main{margin-top:-40px;}
  328 +.share_social{width:48px;height:48px;background-image:url('../img/socnets.png');display:inline-block;margin:0;padding:0;border-radius:50%;overflow:hidden;margin-top:5px;margin-right:3px;}
  329 +.share_social.vk{background-position:0px 0px;}
  330 +.share_social.fb{background-position:-56px 0px;}
  331 +.share_social.gpl{background-position:48px 0px;}
  332 +footer a{
  333 + color: #fff;
  334 + font-weight: 500;
  335 +}
  336 +footer a:hover{color:#fff;}
  337 +footer .social-logos a i.fa, button i.fa {
  338 + margin:0;
  339 +}
  340 +footer .social-logos a{
  341 + display: inline-block;
  342 + text-align: center;
  343 + background-color: #ffd800;
  344 + color: #1c4761;
  345 + font-size: 24px;
  346 + width: 34px;
  347 + height: 34px;
  348 + padding: 7px;
  349 + box-sizing: content-box;
  350 + border-radius: 50%;
  351 + margin-right: 7px;
  352 + margin-top: 5px;
  353 + margin-bottom: 5px;
  354 +}
  355 +footer .social-logos a:hover {
  356 + background-color: #d6b500;
  357 + color: #0a2d42;
  358 +}
301 359  
302 360 @media(min-width:992px) and (max-width:1199px){
303 361 .pr_cover {
... ... @@ -429,6 +487,10 @@ section.blue-fon {padding-top: 25px;}
429 487 width: calc(100% - 12px);
430 488 left: 6px;
431 489 }
  490 + .nav.navbar-nav.navbar-right{
  491 + margin: 0;
  492 + float: none!important;
  493 + }
432 494 }
433 495 @media(min-width:501px){
434 496 .bigtext#header3 h2{
... ...
frontend/web/img/socnets.png 0 → 100644

2.37 KB