app/template/default/index.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends 'default_frame.twig' %}
  9. {% set body_class = 'front_page' %}
  10. {% block stylesheet %}
  11.     <style>
  12.         .slick-slider {
  13.             margin-bottom: 30px;
  14.         }
  15.         .slick-dots {
  16.             position: absolute;
  17.             bottom: -45px;
  18.             display: block;
  19.             width: 100%;
  20.             padding: 0;
  21.             list-style: none;
  22.             text-align: center;
  23.         }
  24.         .slick-dots li {
  25.             position: relative;
  26.             display: inline-block;
  27.             width: 20px;
  28.             height: 20px;
  29.             margin: 0 5px;
  30.             padding: 0;
  31.             cursor: pointer;
  32.         }
  33.         .slick-dots li button {
  34.             font-size: 0;
  35.             line-height: 0;
  36.             display: block;
  37.             width: 20px;
  38.             height: 20px;
  39.             padding: 5px;
  40.             cursor: pointer;
  41.             color: transparent;
  42.             border: 0;
  43.             outline: none;
  44.             background: transparent;
  45.         }
  46.         .slick-dots li button:hover,
  47.         .slick-dots li button:focus {
  48.             outline: none;
  49.         }
  50.         .slick-dots li button:hover:before,
  51.         .slick-dots li button:focus:before {
  52.             opacity: 1;
  53.         }
  54.         .slick-dots li button:before {
  55.             content: " ";
  56.             line-height: 20px;
  57.             position: absolute;
  58.             top: 0;
  59.             left: 0;
  60.             width: 12px;
  61.             height: 12px;
  62.             text-align: center;
  63.             opacity: .25;
  64.             background-color: black;
  65.             border-radius: 50%;
  66.         }
  67.         .slick-dots li.slick-active button:before {
  68.             opacity: .75;
  69.             background-color: black;
  70.         }
  71.         .slick-dots li button.thumbnail img {
  72.             width: 0;
  73.             height: 0;
  74.         }
  75.     </style>
  76. {% endblock %}
  77. {% block javascript %}
  78.     <script>
  79.         $(function() {
  80.             $('.main_visual').slick({
  81.                 dots: true,
  82.                 arrows: false,
  83.                 autoplay: true,
  84.                 speed: 300
  85.             });
  86.         });
  87.         
  88.     </script>
  89. {% endblock javascript %}
  90. {% block main %}
  91.     <section class="ec-sliderRole" data-aos="fade-up">
  92.         <div class="ec-sliderRole__inner standard-inner1 fullwidth">
  93.             <div class="main_visual">
  94.                 {% for i in 1..4 %}
  95.                     <div class="item slick-slide"><img src="{{ asset('assets/img/top/img_hero_pc0'~i~'.jpg', 'user_data') }}"></div>
  96.                 {% endfor %}
  97.             </div>
  98.         </div>
  99.     </section>
  100.     <section class="ec-categoryNavRole" id="about">
  101.         <div class="ec-aboutRole">
  102.             <div class="ec-aboutRole__inner standard-inner1">
  103.                 <div class="ec-aboutRole__figure" data-aos="fade-up">
  104.                     <img src="{{ asset('assets/img/logo_kikkoo.svg') }}" alt="" class="ec-aboutRole__img">
  105.                 </div>
  106.                 <h2 class="ec-aboutRole__title" data-aos="fade-up">心でつくる幸せ。その歓びをつないでいく。</h2>
  107.                 <div class="ec-aboutRole__text" data-aos="fade-up">
  108.                     KIKKOOの家具は、日本の伝統と格式を継承し、六方良しの精神を具現化したデザインが特徴です。<br>
  109.                     亀甲という日本に伝わる吉祥文様をシンボルマークに用いることで、六方良しの理念を視覚的に表現しています。<br>
  110.                     売り手、買い手、作り手、世間、地球、未来の全てに対して誠実であることを大切にし、<br>
  111.                     熟練の木工職人が一つ一つ心を込めて作り上げた家具、それは、使う人に心の安らぎと幸福を提供します。<br>
  112.                     深みのある美しさと斬新な存在感を持つKIKKOOの家具は、<br>
  113.                     日々の生活に豊かさを、環境に優しい素材を、未来の世代にも続く価値を。<br>
  114.                     めぐりめぐって日本の美意識と心の豊かさをつないでいきます。<br>
  115.                 </div>
  116.             </div>
  117.         </div>
  118.     </section>
  119.     <section class="ec-categoryNavRole">
  120.         {% set Category = repository('Eccube\\Entity\\Category').find(1) %}
  121.         {% set cate_childs = Category.getDescendants %}
  122.         <div class="ec-categoryNavRole__inner standard-inner1">
  123.             <h2 class="ec-categoryNavRole__title" data-aos="fade-up">CATEGORY</h2>
  124.             <div class="ec-categoryNav">
  125.                 <ul class="ec-categoryNav__list">
  126.                     {% for cate in cate_childs %}
  127.                         <li class="ec-categoryNav__item category" data-aos="fade-up">
  128.                             <a href="{{ url('product_list') }}?category_id={{ cate.id }}" class="ec-categoryNav__link">
  129.                                 <figure class="ec-categoryNav__figure">
  130.                                     <img src="{{ asset('assets/img/category/category'~cate.id~'.jpg', 'user_data') }}" class="ec-categoryNav__img">
  131.                                 </figure>
  132.                                 <span class="ec-categoryNav__name">{{ cate.name }}</span>
  133.                             </a>
  134.                         </li>
  135.                     {% endfor %}
  136.                 </ul>
  137.             </div>
  138.         </div>
  139.     </section>
  140.     <section class="ec-categoryNavRole">
  141.         {% set Category = repository('Eccube\\Entity\\Category').find(5) %}
  142.         {% set cate_childs = Category.getDescendants %}
  143.         {% set names = ['SHINJI OTSUKI','MANAMI'] %}
  144.         {% set i = 0 %}
  145.         <div class="ec-categoryNavRole__inner standard-inner1">
  146.             <h2 class="ec-categoryNavRole__title" data-aos="fade-up">DESIGNER</h2>
  147.             <div class="ec-categoryNav">
  148.                 <ul class="ec-categoryNav__list">
  149.                     {% for cate in cate_childs %}
  150.                         <li class="ec-categoryNav__item designer" data-aos="fade-up">
  151.                             <a href="/designers/otsuki/" class="ec-categoryNav__link">
  152.                                 <figure class="ec-categoryNav__figure">
  153.                                     <img src="{{ asset('assets/img/designer/designer'~cate.id~'.jpg', 'user_data') }}" class="ec-categoryNav__img">
  154.                                 </figure>
  155.                                 <span class="ec-categoryNav__name2">{{ names[i] }}</span>
  156.                                 <span class="ec-categoryNav__name3">{{ cate.name }}</span>
  157.                             </a>
  158.                         </li>
  159.                         {% set i = i + 1 %}
  160.                     {% endfor %}
  161.                 </ul>
  162.             </div>
  163.         </div>
  164.     </section>
  165. {% endblock %}