diff --git a/common/messages/en/app.php b/common/messages/en/app.php index e3b6834..b3a25d4 100644 --- a/common/messages/en/app.php +++ b/common/messages/en/app.php @@ -1,2 +1,11 @@ 'About', + 'menu-individual' => 'For individuals', + 'menu-legal' => 'For legal entities', + 'menu-objects' => 'Objects', + 'menu-green' => 'Green tariff', + 'menu-mediaabout' => 'Media about us', + 'menu-blog' => 'Blog', + 'menu-contacts' => 'Contacts', + ]; \ No newline at end of file diff --git a/common/messages/ru/app.php b/common/messages/ru/app.php index 2e64a98..2010a70 100644 --- a/common/messages/ru/app.php +++ b/common/messages/ru/app.php @@ -5,7 +5,7 @@ return [ 'tel:' => 'по тел.', 'menu-about' => 'О нас', 'menu-individual' => 'Для физических лиц', - 'menu-entity' => 'Для юридических лиц', + 'menu-legal' => 'Для юридических лиц', 'menu-objects' => 'Наши объекты', 'menu-green' => 'Зелёный тариф', 'menu-mediaabout' => 'СМИ о нас', diff --git a/common/messages/ua/app.php b/common/messages/ua/app.php index 6c65453..3474aa6 100644 --- a/common/messages/ua/app.php +++ b/common/messages/ua/app.php @@ -1,4 +1,12 @@ '', + 'menu-about' => 'Про нас', + 'menu-individual' => 'Для фізичних осіб', + 'menu-legal' => 'Для юридичних осіб', + 'menu-objects' => 'Наші об\'єкти', + 'menu-green' => 'Зелений тариф', + 'menu-mediaabout' => 'ЗМІ про нас', + 'menu-blog' => 'Блог', + 'menu-contacts' => 'Контакти', ]; \ No newline at end of file diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index af69a76..621879c 100644 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -77,7 +77,13 @@ { return $this->render('about'); } - + + public function actionIndividual(){return $this->render('individual');} // частное лицо + public function actionLegal(){return $this->render('legal');} // юридическое + public function actionObjects(){return $this->render('objects');} // наши объекты + public function actionGreen(){return $this->render('green');} // зелёный тариф + public function actionMediaAbout(){return $this->render('media-about');} // СМИ о нас + /** * Action to view robots.txt file dinamycli * diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index 75daa71..2cb3829 100644 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -283,8 +283,8 @@ _________________________________________________________ --> 'url' => [ 'site/individual' ], ]; $items[] = [ - 'label' => \Yii::t('app', 'menu-entity'), - 'url' => [ 'site/entity' ], + 'label' => \Yii::t('app', 'menu-legal'), + 'url' => [ 'site/legal' ], ]; $items[] = [ 'label' => \Yii::t('app', 'menu-objects'), diff --git a/frontend/views/site/contact.php b/frontend/views/site/contact.php index e7a678b..7033d4f 100644 --- a/frontend/views/site/contact.php +++ b/frontend/views/site/contact.php @@ -15,7 +15,7 @@ MapAsset::register($this); $settings = Settings::getInstance(); - $this->title = \Yii::t('app', 'Contact'); + $this->title = \Yii::t('app', 'menu-contacts'); $this->params[ 'breadcrumbs' ][] = $this->title; $js = <<< JS diff --git a/frontend/views/site/green.php b/frontend/views/site/green.php new file mode 100644 index 0000000..d22fc56 --- /dev/null +++ b/frontend/views/site/green.php @@ -0,0 +1,25 @@ +title = \Yii::t('app', 'menu-green'); +$this->params[ 'breadcrumbs' ][] = $this->title; +?> + +
+
+ +
+
\ No newline at end of file diff --git a/frontend/views/site/index.php b/frontend/views/site/index.php index 9c51fc3..12bdacd 100644 --- a/frontend/views/site/index.php +++ b/frontend/views/site/index.php @@ -2,7 +2,8 @@ /* @var $this yii\web\View */ -$this->title = 'My Yii Application'; +$this->title = 'KB Energy'; + ?> diff --git a/frontend/views/site/individual.php b/frontend/views/site/individual.php new file mode 100644 index 0000000..7e64008 --- /dev/null +++ b/frontend/views/site/individual.php @@ -0,0 +1,25 @@ +title = \Yii::t('app', 'menu-individual'); +$this->params[ 'breadcrumbs' ][] = $this->title; +?> + +
+
+ +
+
\ No newline at end of file diff --git a/frontend/views/site/legal.php b/frontend/views/site/legal.php new file mode 100644 index 0000000..1d3c299 --- /dev/null +++ b/frontend/views/site/legal.php @@ -0,0 +1,25 @@ +title = \Yii::t('app', 'menu-legal'); +$this->params[ 'breadcrumbs' ][] = $this->title; +?> + + \ No newline at end of file diff --git a/frontend/views/site/media-about.php b/frontend/views/site/media-about.php new file mode 100644 index 0000000..a02c480 --- /dev/null +++ b/frontend/views/site/media-about.php @@ -0,0 +1,25 @@ +title = \Yii::t('app', 'menu-mediaabout'); +$this->params[ 'breadcrumbs' ][] = $this->title; +?> + +
+
+ +
+
\ No newline at end of file diff --git a/frontend/views/site/objects.php b/frontend/views/site/objects.php new file mode 100644 index 0000000..821db8a --- /dev/null +++ b/frontend/views/site/objects.php @@ -0,0 +1,25 @@ +title = \Yii::t('app', 'menu-objects'); +$this->params[ 'breadcrumbs' ][] = $this->title; +?> + +
+
+ +
+
\ No newline at end of file diff --git a/frontend/web/css/main.css b/frontend/web/css/main.css index e4218c6..559db26 100644 --- a/frontend/web/css/main.css +++ b/frontend/web/css/main.css @@ -1,9 +1,8 @@ .navbar ul.nav > li > a { font-size: 13px; letter-spacing: -0.40px; - max-width: 158px; text-align: center; - padding: 0px 14px 2px; + padding: 0px 12px 2px; height: 62px; line-height: 18px; display: flex; @@ -34,4 +33,9 @@ text-transform: lowercase; line-height: 13px; cursor: default; +} +#top { + background: #555555; + color: #eeeeee; + padding: 7px 0 6px; } \ No newline at end of file -- libgit2 0.21.4