From a1d8385b41febcc795c3f626868e1710dfb89897 Mon Sep 17 00:00:00 2001 From: zhegal Date: Tue, 23 Jan 2018 17:34:56 +0200 Subject: [PATCH] texts + styles --- common/messages/ru/app.php | 3 ++- frontend/views/layouts/main.php | 2 +- frontend/views/site/legal.php | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ frontend/web/css/main.css | 144 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------- 4 files changed, 252 insertions(+), 10 deletions(-) diff --git a/common/messages/ru/app.php b/common/messages/ru/app.php index 04a0495..bbdded7 100644 --- a/common/messages/ru/app.php +++ b/common/messages/ru/app.php @@ -119,5 +119,6 @@ return [ 'sect3_19' => 'Заключение договора', 'sect3_20' => 'Открытие банковского счета, обустройство узла учета, заключение договора купли / продажи электроэнергии по "зелёному" тарифу', 'sect3_21' => 'Обратиться к нам и', - + 'Office {office}' => 'Офис {office}', + 'Contact us' => 'Связаться с нами', ]; \ No newline at end of file diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index 0693fa2..a1c789c 100644 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -467,7 +467,7 @@ _________________________________________________________ --> - Contact us! +
diff --git a/frontend/views/site/legal.php b/frontend/views/site/legal.php index 89b0cc7..0acb289 100644 --- a/frontend/views/site/legal.php +++ b/frontend/views/site/legal.php @@ -12,10 +12,18 @@ use yii\helpers\Html; use yii\bootstrap\ActiveForm; use yii\web\View; +MapAsset::register($this); $settings = Settings::getInstance(); $this->title = \Yii::t('app', 'menu-legal'); $this->params[ 'breadcrumbs' ][] = $this->title; + +$js = <<< JS +window.lat = {$settings->lat}; +window.lon = {$settings->lon}; +JS; + +$this->registerJs($js, View::POS_END); ?>
+ +
+
+
+
+

+
+ +
+
+
+
+

+

+
+
+
+
+
+

+

+
+
+
+
+
+

+

+
+
+
+ +
+
+
+
+

+

+
+
+
+
+
+

+

+
+
+
+
+
+

+

+
+
+
+ +
+
+
+
+

+

+
+
+
+
+
+

+

+
+
+
+
+
+

+

+
+
+
+ +
+
+
+
+

+

+
+
+
+
+
+

+
+
+ +
+
+
+
+
+
+
+ +
+
\ No newline at end of file diff --git a/frontend/web/css/main.css b/frontend/web/css/main.css index c1d36ce..e0f31f0 100644 --- a/frontend/web/css/main.css +++ b/frontend/web/css/main.css @@ -1,4 +1,12 @@ .no-mg{margin:0;} +#back-to-top{ + background: #467fbf; + border-radius: 0 50px 50px 0; + width: 50px; + padding-right: 6px; +} +#back-to-top:hover {background: #20446d;} +#back-to-top:active {background: #1b2e44;padding-top: 6px;} .navbar ul.nav > li > a { font-size: 13px; letter-spacing: -0.40px; @@ -9,6 +17,7 @@ display: flex; justify-content: center; align-items: center; + text-decoration: none; } .navbar-brand{display: flex;justify-content: center;align-items: center;} .button1 { @@ -77,11 +86,7 @@ line-height: 13px; cursor: default; } -#top { - background: #555555; - color: #eeeeee; - padding: 7px 0 6px; -} +#top {background: #555555;color: #eeeeee;padding: 7px 0 6px;} #top .social a { color: #999999; display: inline-block; @@ -254,11 +259,134 @@ section.blue-fon {padding-top: 25px;} position: relative; margin-bottom: 25px; } -@media (min-width: 501px){ - .bigtext#header3 h2 { +.icon_en{width:80px!important;height:80px!important;border:none;} +.icon_en#icon01 {background-image: url(../img/icons/icon01.png);} +.icon_en#icon02 {background-image: url(../img/icons/icon02.png);} +.icon_en#icon03 {background-image: url(../img/icons/icon03.png);} +.icon_en#icon04 {background-image: url(../img/icons/icon04.png);} +.icon_en#icon05 {background-image: url(../img/icons/icon05.png);} +.icon_en#icon06 {background-image: url(../img/icons/icon06.png);} +.icon_en#icon07 {background-image: url(../img/icons/icon07.png);} +.icon_en#icon08 {background-image: url(../img/icons/icon08.png);} +.icon_en#icon09 {background-image: url(../img/icons/icon09.png);} +.icon_en#icon10 {background-image: url(../img/icons/icon10.png);} +.btn.icon_stat {background-image: url(../img/icon_stat.png);} +.bt-shadow{box-shadow: inset 0px -100px 200px -100px rgba(0, 0, 0, 0.5);} + +#footer { + background: #0080ca; + padding: 15px 0; + color: #ffffff; +} + + +@media(min-width:992px) and (max-width:1199px){ + .pr_cover { + max-width: 320px; + max-height: 180px; + overflow: hidden; + display: inline-block; + width: calc(100% + 15px); + height: 0; + padding-bottom: 67.087%; + position: relative; + } + .head_video_buttons .button1{margin-bottom: 7px;} + .head_video_buttons .button1, .head_video_buttons .button2{float:none!important;display:block!important;} +} +@media(max-width:991px){ + .background-kben.block-why, .head_video_buttons{margin-top: 30px;} + .pr_cover { + max-width: 320px; + max-height: 180px; + width: 105%; + height: 19vh; + position: relative; + } + .project-right .open_gal img { + position: absolute; + width:100%;height:100%; + } + #section2{padding: 0!important;} + .main_video_fb{ + padding-top: 404px; + } + .card1 p.lead { + /*margin-top: 20px;*/ + /*margin-bottom: 0px;*/ + margin-top: -25px; + margin-bottom: 40px; + } + .main_video_yt{ + width: 100%; + height: 0; + padding-bottom: calc(57% - 6px); + position: relative; + } + .main_video_yt iframe{ + width: 100%; + height: 100%; + position: absolute; + top: 0; + left: 0; + } +} +@media(max-width:768px){ + .main_video_fb{ + padding-top: 56.1%; + } +} +@media(min-width:768px) and (max-width:991px){ + .navbar-header{width: 57px;} + .navbar-brand.home{width:100%;} + .navbar-brand.home img{ + width: 50px; + margin-top: 15px; + } +} +@media(min-width:501px){ + .bigtext#header3 h2{ width: 161%; } } -@media (max-width: 500px){ +@media(max-width:500px){ + .head_video_buttons .button1{margin-bottom: 7px;} + .head_video_buttons .button1, .head_video_buttons .button2{ + float:none!important; + display:block!important; + } + /*.button1{width:100%;}*/ h2, .h2 {font-size: 6vw;} + .lead{font-size:16px;} + .img-title table td.buts{ + width: 40px; + } + .img-title table td.buts a.sqre_btn{ + margin-bottom: 5px; + width: 30px; + height: 30px; + background-size: 45%; + } + p.lead { + margin-bottom: 25px; + } +} +@media(max-width:380px){ + .more-projects{ + padding: 18px; + width: 100%!important; + font-size: 4.68vw; + line-height: 2.5vh; + margin-bottom: 50px; + } +} +@media(max-width:280px) { + .pr_cover { + width:109%; + } +} +@media(max-width:275px){ + .head_video_buttons .button1, .head_video_buttons .button2{ + width: 100%!important; + } } \ No newline at end of file -- libgit2 0.21.4