app/template/akracing/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.                 infinite: true,
  85.                 slidesToShow: 1,
  86.                 slidesToScroll: 1,
  87.                 speed: 300,
  88.                 asNavFor: '.thumb-item-nav'
  89.             });
  90.             $('.thumb-item-nav').slick({
  91.                 accessibility: true,
  92.                 arrows: false,
  93.                 autoplay: true,
  94.                 speed: 300,
  95.                 infinite: true,
  96.                 slidesToShow: 3,
  97.                 slidesToScroll: 1,
  98.                 asNavFor: '.thumb-item',
  99.                 focusOnSelect: false,
  100.                 variableWidth: true
  101.             });
  102.         });
  103.     </script>
  104. {% endblock javascript %}
  105. {% block main %}
  106.     <div id="topFast">
  107.             <div id="keyimage">
  108.                 <div class="ec-sliderRole">
  109.                     <div class="main_visual">
  110.                         <div class="item slick-slide"><img src="{{ asset('assets/img/top/slider1.png') }}" alt=""></div>
  111.                         <div class="item slick-slide"><img src="{{ asset('assets/img/top/slider2.png') }}" alt=""></div>
  112.                         <div class="item slick-slide"><img src="{{ asset('assets/img/top/slider3.png') }}" alt=""></div>
  113.                     </div>
  114.                 </div>
  115.             </div><!-- #keyimage -->
  116.             <div class="top-info">
  117.                 <div class="top-info_inner">
  118.                     <div class="spnone">
  119.                         <h2>気がつけば、<br>いつもここ</h2>
  120.                         <p>AKRacing & Tsubasa Honda</p>
  121.                         <div class="slider thumb-item-nav">
  122.                             <div class="item slick-slide"></div>
  123.                             <div class="item slick-slide"></div>
  124.                             <div class="item slick-slide"></div>
  125.                         </div>
  126.                     </div>
  127.                     <div class="pcnone">
  128.                         <h2>
  129.                             <img src="{{ asset('assets/img/top/top_title.png') }}" alt="気がつけば、いつもここ">
  130.                         </h2>
  131.                     </div>
  132.                 </div>
  133.             </div><!-- top-info -->
  134.     </div><!-- #topFast -->
  135.     <div id="top-side">
  136.             <ul class="ak-sns-icon">
  137.                 <li><a href="https://twitter.com/AKRacingJapan" target="_blank"><i class="fab fa-twitter"></i></a></li>
  138.                 <li><a href="https://www.youtube.com/channel/UC3IfqphfSpYgHY-x_PA8oqw" target="_blank"><i class="fab fa-youtube"></i></a></li>
  139.                 <li><img src="{{ asset('assets/img/top/Social.png') }}" alt=""></li>
  140.             </ul>
  141.             <p class="scroll"><img src="{{ asset('assets/img/top/scroll.png') }}" alt=""></p>
  142.     </div>
  143. {% endblock %}
  144.                     
  145.