Commit ead29e4e853e971ba8f7fd648438d0d518ebf6d2
1 parent
291274ef
create pages
Showing
13 changed files
with
162 additions
and
9 deletions
Show diff stats
common/messages/en/app.php
1 | 1 | <?php |
2 | - return []; | |
3 | 2 | \ No newline at end of file |
3 | + return [ | |
4 | + 'menu-about' => 'About', | |
5 | + 'menu-individual' => 'For individuals', | |
6 | + 'menu-legal' => 'For legal entities', | |
7 | + 'menu-objects' => 'Objects', | |
8 | + 'menu-green' => 'Green tariff', | |
9 | + 'menu-mediaabout' => 'Media about us', | |
10 | + 'menu-blog' => 'Blog', | |
11 | + 'menu-contacts' => 'Contacts', | |
12 | + ]; | |
4 | 13 | \ No newline at end of file | ... | ... |
common/messages/ru/app.php
... | ... | @@ -5,7 +5,7 @@ return [ |
5 | 5 | 'tel:' => 'по тел.', |
6 | 6 | 'menu-about' => 'О нас', |
7 | 7 | 'menu-individual' => 'Для физических лиц', |
8 | - 'menu-entity' => 'Для юридических лиц', | |
8 | + 'menu-legal' => 'Для юридических лиц', | |
9 | 9 | 'menu-objects' => 'Наши объекты', |
10 | 10 | 'menu-green' => 'Зелёный тариф', |
11 | 11 | 'menu-mediaabout' => 'СМИ о нас', | ... | ... |
common/messages/ua/app.php
1 | 1 | <?php |
2 | 2 | return [ |
3 | 3 | 'Contact us on ' => '', |
4 | + 'menu-about' => 'Про нас', | |
5 | + 'menu-individual' => 'Для фізичних осіб', | |
6 | + 'menu-legal' => 'Для юридичних осіб', | |
7 | + 'menu-objects' => 'Наші об\'єкти', | |
8 | + 'menu-green' => 'Зелений тариф', | |
9 | + 'menu-mediaabout' => 'ЗМІ про нас', | |
10 | + 'menu-blog' => 'Блог', | |
11 | + 'menu-contacts' => 'Контакти', | |
4 | 12 | ]; |
5 | 13 | \ No newline at end of file | ... | ... |
frontend/controllers/SiteController.php
... | ... | @@ -77,7 +77,13 @@ |
77 | 77 | { |
78 | 78 | return $this->render('about'); |
79 | 79 | } |
80 | - | |
80 | + | |
81 | + public function actionIndividual(){return $this->render('individual');} // частное лицо | |
82 | + public function actionLegal(){return $this->render('legal');} // юридическое | |
83 | + public function actionObjects(){return $this->render('objects');} // наши объекты | |
84 | + public function actionGreen(){return $this->render('green');} // зелёный тариф | |
85 | + public function actionMediaAbout(){return $this->render('media-about');} // СМИ о нас | |
86 | + | |
81 | 87 | /** |
82 | 88 | * Action to view robots.txt file dinamycli |
83 | 89 | * | ... | ... |
frontend/views/layouts/main.php
... | ... | @@ -283,8 +283,8 @@ _________________________________________________________ --> |
283 | 283 | 'url' => [ 'site/individual' ], |
284 | 284 | ]; |
285 | 285 | $items[] = [ |
286 | - 'label' => \Yii::t('app', 'menu-entity'), | |
287 | - 'url' => [ 'site/entity' ], | |
286 | + 'label' => \Yii::t('app', 'menu-legal'), | |
287 | + 'url' => [ 'site/legal' ], | |
288 | 288 | ]; |
289 | 289 | $items[] = [ |
290 | 290 | 'label' => \Yii::t('app', 'menu-objects'), | ... | ... |
frontend/views/site/contact.php
1 | +<?php | |
2 | + | |
3 | +/** | |
4 | + * @var View $this | |
5 | + * @var Feedback $contact | |
6 | + */ | |
7 | + | |
8 | +use artbox\core\models\Feedback; | |
9 | +use common\models\Settings; | |
10 | +use frontend\assets\MapAsset; | |
11 | +use yii\helpers\Html; | |
12 | +use yii\bootstrap\ActiveForm; | |
13 | +use yii\web\View; | |
14 | + | |
15 | +$settings = Settings::getInstance(); | |
16 | + | |
17 | +$this->title = \Yii::t('app', 'menu-green'); | |
18 | +$this->params[ 'breadcrumbs' ][] = $this->title; | |
19 | +?> | |
20 | + | |
21 | +<div id="green-wr"> | |
22 | + <div id="content"> | |
23 | + | |
24 | + </div> | |
25 | +</div> | |
0 | 26 | \ No newline at end of file | ... | ... |
frontend/views/site/index.php
1 | +<?php | |
2 | + | |
3 | +/** | |
4 | + * @var View $this | |
5 | + * @var Feedback $contact | |
6 | + */ | |
7 | + | |
8 | +use artbox\core\models\Feedback; | |
9 | +use common\models\Settings; | |
10 | +use frontend\assets\MapAsset; | |
11 | +use yii\helpers\Html; | |
12 | +use yii\bootstrap\ActiveForm; | |
13 | +use yii\web\View; | |
14 | + | |
15 | +$settings = Settings::getInstance(); | |
16 | + | |
17 | +$this->title = \Yii::t('app', 'menu-individual'); | |
18 | +$this->params[ 'breadcrumbs' ][] = $this->title; | |
19 | +?> | |
20 | + | |
21 | +<div id="individual-wr"> | |
22 | + <div id="content"> | |
23 | + | |
24 | + </div> | |
25 | +</div> | |
0 | 26 | \ No newline at end of file | ... | ... |
1 | +<?php | |
2 | + | |
3 | +/** | |
4 | + * @var View $this | |
5 | + * @var Feedback $contact | |
6 | + */ | |
7 | + | |
8 | +use artbox\core\models\Feedback; | |
9 | +use common\models\Settings; | |
10 | +use frontend\assets\MapAsset; | |
11 | +use yii\helpers\Html; | |
12 | +use yii\bootstrap\ActiveForm; | |
13 | +use yii\web\View; | |
14 | + | |
15 | +$settings = Settings::getInstance(); | |
16 | + | |
17 | +$this->title = \Yii::t('app', 'menu-legal'); | |
18 | +$this->params[ 'breadcrumbs' ][] = $this->title; | |
19 | +?> | |
20 | + | |
21 | +<div id="legal-wr"> | |
22 | + <div id="content"> | |
23 | + | |
24 | + </div> | |
25 | +</div> | |
0 | 26 | \ No newline at end of file | ... | ... |
1 | +<?php | |
2 | + | |
3 | +/** | |
4 | + * @var View $this | |
5 | + * @var Feedback $contact | |
6 | + */ | |
7 | + | |
8 | +use artbox\core\models\Feedback; | |
9 | +use common\models\Settings; | |
10 | +use frontend\assets\MapAsset; | |
11 | +use yii\helpers\Html; | |
12 | +use yii\bootstrap\ActiveForm; | |
13 | +use yii\web\View; | |
14 | + | |
15 | +$settings = Settings::getInstance(); | |
16 | + | |
17 | +$this->title = \Yii::t('app', 'menu-mediaabout'); | |
18 | +$this->params[ 'breadcrumbs' ][] = $this->title; | |
19 | +?> | |
20 | + | |
21 | +<div id="mediaabout-wr"> | |
22 | + <div id="content"> | |
23 | + | |
24 | + </div> | |
25 | +</div> | |
0 | 26 | \ No newline at end of file | ... | ... |
1 | +<?php | |
2 | + | |
3 | +/** | |
4 | + * @var View $this | |
5 | + * @var Feedback $contact | |
6 | + */ | |
7 | + | |
8 | +use artbox\core\models\Feedback; | |
9 | +use common\models\Settings; | |
10 | +use frontend\assets\MapAsset; | |
11 | +use yii\helpers\Html; | |
12 | +use yii\bootstrap\ActiveForm; | |
13 | +use yii\web\View; | |
14 | + | |
15 | +$settings = Settings::getInstance(); | |
16 | + | |
17 | +$this->title = \Yii::t('app', 'menu-objects'); | |
18 | +$this->params[ 'breadcrumbs' ][] = $this->title; | |
19 | +?> | |
20 | + | |
21 | +<div id="objects-wr"> | |
22 | + <div id="content"> | |
23 | + | |
24 | + </div> | |
25 | +</div> | |
0 | 26 | \ No newline at end of file | ... | ... |
frontend/web/css/main.css
1 | 1 | .navbar ul.nav > li > a { |
2 | 2 | font-size: 13px; |
3 | 3 | letter-spacing: -0.40px; |
4 | - max-width: 158px; | |
5 | 4 | text-align: center; |
6 | - padding: 0px 14px 2px; | |
5 | + padding: 0px 12px 2px; | |
7 | 6 | height: 62px; |
8 | 7 | line-height: 18px; |
9 | 8 | display: flex; |
... | ... | @@ -34,4 +33,9 @@ |
34 | 33 | text-transform: lowercase; |
35 | 34 | line-height: 13px; |
36 | 35 | cursor: default; |
36 | +} | |
37 | +#top { | |
38 | + background: #555555; | |
39 | + color: #eeeeee; | |
40 | + padding: 7px 0 6px; | |
37 | 41 | } |
38 | 42 | \ No newline at end of file | ... | ... |