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-dots {
  13.             position: absolute;
  14.             bottom: -45px;
  15.             display: block;
  16.             width: 100%;
  17.             padding: 0;
  18.             list-style: none;
  19.             text-align: center;
  20.         }
  21.         .slick-dots li {
  22.             position: relative;
  23.             display: inline-block;
  24.             width: 20px;
  25.             height: 20px;
  26.             margin: 0 5px;
  27.             padding: 0;
  28.             cursor: pointer;
  29.         }
  30.         .slick-dots li button {
  31.             font-size: 0;
  32.             line-height: 0;
  33.             display: block;
  34.             width: 20px;
  35.             height: 20px;
  36.             padding: 5px;
  37.             cursor: pointer;
  38.             color: transparent;
  39.             border: 0;
  40.             outline: none;
  41.             background: transparent;
  42.         }
  43.         .slick-dots li button:hover,
  44.         .slick-dots li button:focus {
  45.             outline: none;
  46.         }
  47.         .slick-dots li button:hover:before,
  48.         .slick-dots li button:focus:before {
  49.             opacity: 1;
  50.         }
  51.         .slick-dots li button:before {
  52.             content: " ";
  53.             line-height: 20px;
  54.             position: absolute;
  55.             top: 0;
  56.             left: 0;
  57.             width: 12px;
  58.             height: 12px;
  59.             text-align: center;
  60.             opacity: .25;
  61.             background-color: #333333;
  62.             border-radius: 50%;
  63.         }
  64.         .slick-dots li.slick-active button:before {
  65.             opacity: .75;
  66.             background-color: #333333;
  67.         }
  68.         .slick-dots li button.thumbnail img {
  69.             width: 0;
  70.             height: 0;
  71.         }
  72.         @media screen and (max-width: 768px) {
  73.             .ec-sliderRole {
  74.                 padding: unset;
  75.             }
  76.             .not-sp {
  77.                 display: none !important;
  78.             }
  79.             .slick-slide-sp {
  80.                 display: block;
  81.                 margin-bottom: 40px;
  82.             }
  83.         }
  84.         @media screen and (min-width: 768px) {
  85.             .ec-sliderRole {
  86.                 max-width: unset;
  87.                 padding: unset;
  88.             }
  89.             .slick-slide-sp {
  90.                 display: none;
  91.             }
  92.         }
  93.     </style>
  94. {% endblock %}
  95. {% block javascript %}
  96. <script src="{{ asset('assets/js/jquery.star-rating-svg.js', 'user_data') }}"></script>
  97.     <script>
  98.         $(".my-rating").starRating({
  99.             starGradient: {
  100.                 start: '#FFB800',
  101.                 end: '#FFB800'
  102.             },
  103.             starSize: 20,
  104.             readOnly: true
  105.         });
  106.     </script>
  107.     <script>
  108.         $(function() {
  109.         $('.main_visual').slick({
  110.             dots: true,
  111.             arrows: false,
  112.             autoplay: true,
  113.             speed: 300
  114.         });
  115.     });
  116.     </script>
  117. {% endblock javascript %}
  118. {% block main %}
  119.     <div class="ec-sliderRole">
  120.         <div class="main_visual">
  121.             <div class="item slick-slide"><img class="not-sp" src="{{ asset('assets/img/common/banner.svg') }}"></div>
  122.         </div>
  123.         <div class="item"><img class="slick-slide-sp" src="{{ asset('assets/img/common/banner_sp.svg') }}"></div>
  124.     </div>
  125. {% endblock %}