{#
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' %}
{% set mypageno = 'index' %}
{% set body_class = 'mypage' %}
{% block stylesheet %}
<style>
.header-photo {
position: relative;
}
.header-photo div {
position: absolute;
top: 50%;
left: 50%;
-ms-transform: translate(-50%,-50%);
-webkit-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
margin:0;/*余計な隙間を除く*/
padding:0;/*余計な隙間を除く*/
color: white;/*文字色*/
font-size: 40px;/*文字サイズ*/
text-align:center;/*pタグ内で更に中央寄せ*/
font-family: 'Quicksand',sans-serif;
font-weight: "bold";
}
.header-photo img {
width: 99.5%;
}
.artists-title {
margin-left: 5%;
font-weight: bold;
}
.img-wrapper p {
color: black;
}
/* 922以下の時 */
@media screen and (max-width: 580px) {
.header-photo div {
font-size: 30px;
}
}
</style>
{% endblock %}
{% block main %}
<div class="header-photo">
<img src="https://uploads-ssl.webflow.com/631e594043d13c32e2c927d9/631e60467a1cf632e0fb11da_high-road.jpg">
<div class="artists-title">カテゴリー</div>
</div>
<div class="artCategory-flex-page">
{% for category in categories %}
<div class="img-wrapper">
<a href="/products/list?category_id={{category.id}}">
<img src="{{ asset(category.category_image |no_image_product, 'user_data') }}" alt=category.name>
<p>{{ category.name }}</p>
</a>
</div>
{% endfor %}
</div>
{% endblock %}