Commit f37b4f80c3dae4f2019b55390050cf63d88879e4
1 parent
58bb0e3b
menu 2
Showing
3 changed files
with
43 additions
and
3 deletions
Show diff stats
frontend/assets/AppAsset.php
| @@ -20,6 +20,7 @@ | @@ -20,6 +20,7 @@ | ||
| 20 | 'css/owl.theme.css', | 20 | 'css/owl.theme.css', |
| 21 | '//fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,500,700,800', | 21 | '//fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,500,700,800', |
| 22 | 'css/custom.css', | 22 | 'css/custom.css', |
| 23 | + 'css/main.css', | ||
| 23 | ]; | 24 | ]; |
| 24 | public $js = [ | 25 | public $js = [ |
| 25 | 'js/jquery.cookie.js', | 26 | 'js/jquery.cookie.js', |
frontend/views/layouts/main.php
| @@ -252,15 +252,17 @@ _________________________________________________________ --> | @@ -252,15 +252,17 @@ _________________________________________________________ --> | ||
| 252 | 252 | ||
| 253 | <a class="navbar-brand home" href="<?php echo Url::home(); ?>"> | 253 | <a class="navbar-brand home" href="<?php echo Url::home(); ?>"> |
| 254 | <?php | 254 | <?php |
| 255 | - echo ImageHelper::set($logo) | 255 | + /*echo ImageHelper::set($logo) |
| 256 | ->setHeight(42) | 256 | ->setHeight(42) |
| 257 | ->renderImage( | 257 | ->renderImage( |
| 258 | [ | 258 | [ |
| 259 | 'alt' => $settings->name, | 259 | 'alt' => $settings->name, |
| 260 | ] | 260 | ] |
| 261 | - ) | 261 | + )*/ |
| 262 | ?> | 262 | ?> |
| 263 | + <img src="/img/logo_kb.png" alt="<?=$settings->name;?>" class="static_logo_img"> | ||
| 263 | </a> | 264 | </a> |
| 265 | + <div class="static_logo_about"><?=$settings->about;?></div> | ||
| 264 | <div class="navbar-buttons"> | 266 | <div class="navbar-buttons"> |
| 265 | <button type="button" class="navbar-toggle btn-template-main" data-toggle="collapse" data-target="#navigation"> | 267 | <button type="button" class="navbar-toggle btn-template-main" data-toggle="collapse" data-target="#navigation"> |
| 266 | <span class="sr-only">Toggle navigation</span> | 268 | <span class="sr-only">Toggle navigation</span> |
| @@ -274,7 +276,7 @@ _________________________________________________________ --> | @@ -274,7 +276,7 @@ _________________________________________________________ --> | ||
| 274 | $items = []; | 276 | $items = []; |
| 275 | $items[] = [ | 277 | $items[] = [ |
| 276 | 'label' => \Yii::t('app', 'menu-about'), | 278 | 'label' => \Yii::t('app', 'menu-about'), |
| 277 | - 'url' => [ 'site/about' ], | 279 | + 'url' => [ Url::home() ], |
| 278 | ]; | 280 | ]; |
| 279 | $items[] = [ | 281 | $items[] = [ |
| 280 | 'label' => \Yii::t('app', 'menu-individual'), | 282 | 'label' => \Yii::t('app', 'menu-individual'), |
| 1 | +.navbar ul.nav > li > a { | ||
| 2 | + font-size: 13px; | ||
| 3 | + letter-spacing: -0.40px; | ||
| 4 | + max-width: 158px; | ||
| 5 | + text-align: center; | ||
| 6 | + padding: 0px 14px 2px; | ||
| 7 | + height: 62px; | ||
| 8 | + line-height: 18px; | ||
| 9 | + display: flex; | ||
| 10 | + justify-content: center; | ||
| 11 | + align-items: center; | ||
| 12 | +} | ||
| 13 | +.navbar-brand{ | ||
| 14 | + display: flex; | ||
| 15 | + justify-content: center; | ||
| 16 | + align-items: center; | ||
| 17 | +} | ||
| 18 | +.static_logo_img{ | ||
| 19 | + width:85px; | ||
| 20 | +} | ||
| 21 | +.static_logo_about{ | ||
| 22 | + font-family: Arial, sans-serif!important; | ||
| 23 | + transition: 0.3s; | ||
| 24 | + width: 125px; | ||
| 25 | + padding: 0; | ||
| 26 | + margin: 0; | ||
| 27 | + margin-left: -5px; | ||
| 28 | + float: left; | ||
| 29 | + display: flex; | ||
| 30 | + height: 62px; | ||
| 31 | + justify-content: center; | ||
| 32 | + align-items: center; | ||
| 33 | + font-size: 11px; | ||
| 34 | + text-transform: lowercase; | ||
| 35 | + line-height: 13px; | ||
| 36 | + cursor: default; | ||
| 37 | +} | ||
| 0 | \ No newline at end of file | 38 | \ No newline at end of file |