Commit bdaccaaf9270c1db7a0e0134cbffd5fca904d1bb
1 parent
dc6809dc
23.06.16
Showing
2 changed files
with
89 additions
and
4 deletions
Show diff stats
frontend/views/site/error.php
| @@ -9,12 +9,97 @@ use yii\helpers\Html; | @@ -9,12 +9,97 @@ use yii\helpers\Html; | ||
| 9 | 9 | ||
| 10 | $this->title = 'Ошибка '.$code; | 10 | $this->title = 'Ошибка '.$code; |
| 11 | ?> | 11 | ?> |
| 12 | + | ||
| 13 | +<style> | ||
| 14 | + .img-404 { | ||
| 15 | + width: 100%; | ||
| 16 | + height: 127px; | ||
| 17 | + text-align: center; | ||
| 18 | + margin-top: 80px; | ||
| 19 | + } | ||
| 20 | + | ||
| 21 | + .img-404 img { | ||
| 22 | + width: 289px; | ||
| 23 | + height: 127px; | ||
| 24 | + } | ||
| 25 | + .text-404-wr { | ||
| 26 | + margin-top: 43px; | ||
| 27 | + } | ||
| 28 | + .text-404-wr, .text-404-wr2 { | ||
| 29 | + width: 100%; | ||
| 30 | + } | ||
| 31 | + .text-404-wr p { | ||
| 32 | + font-size: 16px; | ||
| 33 | + width: 576px; | ||
| 34 | + margin: 0 auto; | ||
| 35 | + line-height: 20px; | ||
| 36 | + color: #222222; | ||
| 37 | + box-sizing: border-box; | ||
| 38 | + padding-left: 9px; | ||
| 39 | + } | ||
| 40 | + .text-404-wr2 { | ||
| 41 | + margin-top: 20px; | ||
| 42 | + } | ||
| 43 | + .text-404-wr2 p { | ||
| 44 | + font-size: 13px; | ||
| 45 | + width: 576px; | ||
| 46 | + margin: 0 auto; | ||
| 47 | + line-height: 16px; | ||
| 48 | + color: #7d7d7d; | ||
| 49 | + box-sizing: border-box; | ||
| 50 | + padding-left: 9px; | ||
| 51 | + } | ||
| 52 | + .button-home-404-wr { | ||
| 53 | + width: 100%; | ||
| 54 | + margin: 39px 0 174px 0; | ||
| 55 | + } | ||
| 56 | + .button-home-404 { | ||
| 57 | + width: 576px; | ||
| 58 | + margin: 0 auto; | ||
| 59 | + } | ||
| 60 | + .button-home-404 a { | ||
| 61 | + float: right; | ||
| 62 | + margin-right: 24px; | ||
| 63 | + width: 180px; | ||
| 64 | + height: 38px; | ||
| 65 | + background: #95ba2f; | ||
| 66 | + border-bottom: 3px solid #799920; | ||
| 67 | + box-sizing: border-box; | ||
| 68 | + text-align: center; | ||
| 69 | + text-transform: uppercase; | ||
| 70 | + text-decoration: none; | ||
| 71 | + font-size: 12px; | ||
| 72 | + line-height: 41px; | ||
| 73 | + display: block; | ||
| 74 | + color: #fff !important; | ||
| 75 | + border-radius: 4px; | ||
| 76 | + } | ||
| 77 | + .button-home-404 a:hover { | ||
| 78 | + border-bottom: 3px solid #95ba2f; | ||
| 79 | + } | ||
| 80 | + .button-home-404 a:active { | ||
| 81 | + background: #799920; | ||
| 82 | + border-bottom: 3px solid #799920; | ||
| 83 | + } | ||
| 84 | +</style> | ||
| 85 | + | ||
| 12 | <div class="site-error"> | 86 | <div class="site-error"> |
| 87 | + <div class="img-404"><img src="img/404.png" alt=""></div> | ||
| 88 | + <div class="text-404-wr"> | ||
| 89 | + <p>Добро пожаловать на страницу 404!<br /> | ||
| 90 | + Вы находитесь здесь, потому что ввели адрес страницы,<br /> | ||
| 91 | + которая уже не существует или была перемещена по другому адресу</p> | ||
| 92 | + </div> | ||
| 13 | 93 | ||
| 14 | - <h1>Ошибка <?=$code;?></h1> | 94 | + <div class="text-404-wr2"> |
| 95 | + <p>… Возможно, запрашиваемая Вами страница была перенесена или удалена.<br /> | ||
| 96 | + Также возможно, Вы допустили небольшую опечатку при вводе адреса – такое случается даже с нами, поэтому еще раз внимательно проверьте</p> | ||
| 97 | + </div> | ||
| 15 | 98 | ||
| 16 | - <div class="alert alert-danger"> | ||
| 17 | - <?= nl2br(Html::encode($message)) ?> | 99 | + <div class="button-home-404-wr"> |
| 100 | + <div class="button-home-404"> | ||
| 101 | + <a href="/">перейти на главную</a> | ||
| 102 | + </div> | ||
| 18 | </div> | 103 | </div> |
| 19 | 104 | ||
| 20 | -</div> | 105 | -</div> |
| 106 | +</div> | ||
| 21 | \ No newline at end of file | 107 | \ No newline at end of file |
16.2 KB