app/template/iizukanew/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.         @media (min-width: 768px) {
  16.             #page_homepage .ec-layoutRole__header {
  17.                 border-bottom: 0;
  18.             }
  19.             .ec-sliderRole {
  20.                 overflow-x: hidden;
  21.                 width: 100%;
  22.             }
  23.             .main_visual .slick-list {
  24.                 overflow: visible !important;
  25.             }
  26.             .main_visual .slick-slide {
  27.                 padding: 0 10px;
  28.                 box-sizing: border-box;
  29.             }
  30.             .main_visual .slick-slide {
  31.                 margin: 0 0;
  32.             }
  33.         }
  34.         .slick-dots {
  35.             position: absolute;
  36.             bottom: -45px;
  37.             display: block;
  38.             width: 100%;
  39.             padding: 0;
  40.             list-style: none;
  41.             text-align: center;
  42.         }
  43.         .slick-dots li {
  44.             position: relative;
  45.             display: inline-block;
  46.             width: 20px;
  47.             height: 20px;
  48.             margin: 0 5px;
  49.             padding: 0;
  50.             cursor: pointer;
  51.         }
  52.         .slick-dots li button {
  53.             font-size: 0;
  54.             line-height: 0;
  55.             display: block;
  56.             width: 20px;
  57.             height: 20px;
  58.             padding: 5px;
  59.             cursor: pointer;
  60.             color: transparent;
  61.             border: 0;
  62.             outline: none;
  63.             background: transparent;
  64.         }
  65.         .slick-dots li button:hover,
  66.         .slick-dots li button:focus {
  67.             outline: none;
  68.         }
  69.         .slick-dots li button:hover:before,
  70.         .slick-dots li button:focus:before {
  71.             opacity: 1;
  72.         }
  73.         .slick-dots li button:before {
  74.             content: " ";
  75.             line-height: 20px;
  76.             position: absolute;
  77.             top: 0;
  78.             left: 0;
  79.             width: 12px;
  80.             height: 12px;
  81.             text-align: center;
  82.             opacity: .25;
  83.             background-color: black;
  84.             border-radius: 50%;
  85.         }
  86.         .slick-dots li.slick-active button:before {
  87.             opacity: .75;
  88.             background-color: black;
  89.         }
  90.         .slick-dots li button.thumbnail img {
  91.             width: 0;
  92.             height: 0;
  93.         }
  94.     </style>
  95. {% endblock %}
  96. {% block javascript %}
  97.     <script>
  98.         $(function() {
  99.             $('.main_visual').slick({
  100.                 // ▼ 基本設定:PC(768px以上)で適用される設定
  101.                 dots: true,
  102.                 arrows: false,
  103.                 autoplay: true,
  104.                 speed: 300,
  105.                 centerMode: true,
  106.                 centerPadding: '21%',
  107.                 // ▼ レスポンシブ設定:768px未満(スマホ)で上書きする設定
  108.                 responsive: [
  109.                     {
  110.                         breakpoint: 768,
  111.                         settings: {
  112.                             centerMode: false,
  113.                             centerPadding: '0px'
  114.                         }
  115.                     }
  116.                 ]
  117.             });
  118.         });
  119.     </script>
  120. {% endblock javascript %}
  121. {% block main %}
  122.     <div class="ec-sliderRole">
  123.         <div class="main_visual">
  124.             <!--ここ箇所に、トップページで表示させるスライドショー画像をセットします-->
  125.             <!-- スライドせっていここから-->
  126.             <a href="/feature/wintergift2026">
  127.                 <div class="item slick-slide" style="width:100%;"><img src="/html/user_data/banner/2026winterpresent.png"></div>
  128.             </a>
  129.             <a href="/feature/kuronoitadaki2026">
  130.                 <div class="item slick-slide" style="width:100%;"><img src="/html/user_data/banner/kuronoitadakibanner.png?var=7"></div>
  131.             </a>
  132.             <a href="/feature/article1">
  133.                 <div class="item slick-slide" style="width:100%;"><img src="/html/user_data/banner/azitokaori21000.jpg"></div>
  134.             </a>
  135.             <a href="/feature/souryou_muryou">
  136.                 <div class="item slick-slide" style="width:100%;"><img src="/html/user_data/banner/mailbanner.png?var=7"></div>
  137.             </a>
  138.             <!-- スライドせっていここまで-->
  139.         </div>
  140.     </div>
  141. {% endblock %}