{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% block javascript %}
{% endblock %}
{% block stylesheet %}
<style>
.img-wrap-detail {
width: auto;
height: 300px;
}
.img {
width: auto;
height: 300px;
max-width: auto;
max-height: 300px;
object-fit: cover;
border-radius: 6px;
}
.product-detail-artist-photo-detail {
margin: 0px 10% 70px 5%;;
}
.margin {
margin: 10%;
}
.mt {
margin-top: -10%;
}
.mtplus {
margin-top: 25px
}
.ec-shelfGrid__item:hover {
color: #d5a770;
}
/* 800以下の時 */
@media screen and (max-width: 800px) {
.product-detail-artist-photo-detail {
display: none;
}
.hr {
visibility:hidden
}
}
</style>
{% endblock %}
{% block main %}
<div class="center">
<div class="product-detail-artist margin">
<div class="artist-detail-artist-description">
<div class="flex">
<i class="fa-solid fa-pen-nib fa-2x fontawesome-size"></i>
<h2 class="fontweight-bold">{{ artist.name }}</h2>
</div>
<div class="product-detail-artist-desc">
<p class="fontweight-bold">« {{ artist.getDescription }} »</p>
</div>
<div class="hr"></div>
</div>
<div class="product-detail-artist-photo-detail">
<img src="{{ asset(artist.image |no_image_product, 'user_data') }}" alt=artist.name class="img">
</div>
</div>
<div class="ec-searchnavRole mt">
<div class="ec-searchnavRole__topicpath">
<ol class="ec-topicpath">
<div class="artcategory-flex">
<div class="category-title"><h2 class="fontweight-bold gold"><a href="{{ url('product_list') }}">{{ 'アート作品'|trans }}</a></h2></div>
</div>
</ol>
</div>
</div>
{% if selectedProducts %}
<div class="ec-shelfRole mtplus">
<ul class="ec-shelfGrid">
{% for selectedProduct in selectedProducts %}
<li class="ec-shelfGrid__item">
<a href="{{ url('product_detail', {'id': selectedProduct.id}) }}">
<div class="img-wrap-detail">
<img class="img" src="{{ asset(selectedProduct.main_list_image|no_image_product, 'save_image') }}" alt="{{ selectedProduct.name }}" {% if loop.index > 5 %} loading="lazy"{% endif %}>
</div>
<p class="margin">{{ selectedProduct.name }}</p>
{# 絵のサイズ #}
{% if selectedProduct.getProductionSizeVertical and selectedProduct.getProductionSizeWidth %}
<p class="margin">{{ selectedProduct.getProductionSizeVertical }} x {{ selectedProduct.getProductionSizeWidth }} cm</p>
{% endif %}
<p class="price02-default margin">
{% if selectedProduct.hasProductClass %}
{% if selectedProduct.getPrice02Min == selectedProduct.getPrice02Max %}
{{ selectedProduct.getPrice02IncTaxMin|price }}
{% else %}
{{ selectedProduct.getPrice02IncTaxMin|price }} ~ {{ selectedProduct.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ selectedProduct.getPrice02IncTaxMin|price }}
{% endif %}
</p>
</a>
</li>
{% endfor %}
</ul>
</div>
{% else %}
<h3>作品はまだありません</h3>
{% endif %}
</div>
{% endblock %}