Commit 7369da3550aa981d2170d84b1f9dcedbaaeb6257

Authored by Alexey Boroda
1 parent f66a9e94

-Images from background fix

frontend/views/catalog/_product_list.php
... ... @@ -21,7 +21,9 @@ use yii\widgets\ListView;
21 21 'product' => $model->alias,
22 22 'variant' => $model->variant->sku,
23 23 ])?>">
24   - <div class="picture" style="background-image:url('<?php echo ArtboxImageHelper::getImageSrc($model->getImageUrl(), 'product_list_item'); ?>');"></div>
  24 + <div class="product-list-item">
  25 + <?php echo ArtboxImageHelper::getImage($model->getImageUrl(), 'product_list_item', ['class' => 'product_list']); ?>
  26 + </div>
25 27 <div class="title_1"><?php echo $model->name; ?></div>
26 28 <div class="title_2"><?php echo $model->variant->sku; ?></div>
27 29 </a>
... ...
frontend/views/site/index.php
... ... @@ -32,7 +32,7 @@ $this-&gt;title = &quot;Главная&quot;;
32 32 </div>
33 33 </section>
34 34 <section class="main-box1">
35   - <div class="link_big"><a href="#">Новые коллекции</a></div>
  35 + <div class="link_big"><a href="<?php echo Url::to(['/new-collections']); ?>">Новые коллекции</a></div>
36 36 <?php
37 37 echo ListView::widget([
38 38 'dataProvider' => $newCollections,
... ...
frontend/web/css/style.css
... ... @@ -2119,6 +2119,21 @@ p.right{text-align: right;}
2119 2119 padding-top: 18px;
2120 2120 padding-bottom: 27px;
2121 2121 }
  2122 +.product-list-item img {
  2123 + width: 100%;
  2124 + height: 171px;
  2125 +}
  2126 +.product-list-item:hover::after {
  2127 + background-color: rgba(255, 255, 255, 0.83);
  2128 + background-image: url("../images/plus.png");
  2129 + background-position: center center;
  2130 + background-repeat: no-repeat;
  2131 + content: "";
  2132 + height: 171px;
  2133 + left: 0;
  2134 + position: absolute;
  2135 + width: 100%;
  2136 +}
2122 2137 .comments-wr {
2123 2138 margin-top: 0px!important;
2124 2139 padding-bottom: 16px;
... ...