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-slide {
  16.             height: auto;
  17.         }
  18.         .slick-slide img {
  19.             width: 100%;
  20.             object-fit: cover;
  21.         }
  22.         .main_visual {
  23.             width: 100%;
  24.             margin: 0 auto;
  25.         }
  26.         .ec-sliderRole {
  27.             margin-top: 20px;
  28.             margin-bottom: 40px;
  29.         }
  30.         .main_visual item {
  31.             width: 100%;
  32.             object-fit: cover;
  33.         }
  34.         .slick-dots {
  35.             position: absolute;
  36.             bottom: -40px;
  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: #ff6600;
  84.             border-radius: 50%;
  85.         }
  86.         .slick-dots li.slick-active button:before {
  87.             opacity: .75;
  88.             background-color: #ff6600;
  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.         dots: true,
  101.         arrows: false,
  102.         autoplay: true,
  103.         speed: 600
  104.     });
  105. });
  106. </script>
  107. {% endblock javascript %}
  108. {% block main %}
  109. <h1 class="mv">
  110.     <img src="{{ asset('/ecshop/html/user_data/assets/img/top/unimaru_mv.jpg') }}" alt="うにまる" class="mv__img">
  111. </h1>
  112. {#    <div class="ec-sliderRole">#}
  113. {#        <div class="main_visual">#}
  114. {#            <div class="item slick-slide"><img#}
  115. {#                        src="{{ asset('/ecshop/html/user_data/assets/img/top/slides_hearts.jpg') }}"></div>#}
  116. {#            <div class="item slick-slide"><img#}
  117. {#                        src="{{ asset('/ecshop/html/user_data/assets/img/top/slides_balloon.jpg') }}"></div>#}
  118. {#            <div class="item slick-slide"><img#}
  119. {#                        src="{{ asset('/ecshop/html/user_data/assets/img/top/slides_live.jpg') }}"></div>#}
  120. {#        </div>#}
  121. {#    </div>#}
  122. {% endblock %}