diff --git a/frontend/views/catalog/_product_list.php b/frontend/views/catalog/_product_list.php index faba56b..e38c3d9 100755 --- a/frontend/views/catalog/_product_list.php +++ b/frontend/views/catalog/_product_list.php @@ -21,7 +21,9 @@ use yii\widgets\ListView; 'product' => $model->alias, 'variant' => $model->variant->sku, ])?>"> -
+
+ getImageUrl(), 'product_list_item', ['class' => 'product_list']); ?> +
name; ?>
variant->sku; ?>
diff --git a/frontend/views/site/index.php b/frontend/views/site/index.php index 6437384..7ae2c6e 100755 --- a/frontend/views/site/index.php +++ b/frontend/views/site/index.php @@ -32,7 +32,7 @@ $this->title = "Главная";
- + $newCollections, diff --git a/frontend/web/css/style.css b/frontend/web/css/style.css index b3d9318..0500943 100755 --- a/frontend/web/css/style.css +++ b/frontend/web/css/style.css @@ -2119,6 +2119,21 @@ p.right{text-align: right;} padding-top: 18px; padding-bottom: 27px; } +.product-list-item img { + width: 100%; + height: 171px; +} +.product-list-item:hover::after { + background-color: rgba(255, 255, 255, 0.83); + background-image: url("../images/plus.png"); + background-position: center center; + background-repeat: no-repeat; + content: ""; + height: 171px; + left: 0; + position: absolute; + width: 100%; +} .comments-wr { margin-top: 0px!important; padding-bottom: 16px; -- libgit2 0.21.4