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.         
  76.         .header-photo {
  77.             position: relative;
  78.         }
  79.         .header-photo img {
  80.             position: relative;
  81.             border-radius: 10px;
  82.         }
  83.         .header-photo h2 {/*h2タグを画像の真ん中に*/
  84.             position: absolute;
  85.             top: 50%;
  86.             left: 50%;
  87.             -ms-transform: translate(-50%,-50%);
  88.             -webkit-transform: translate(-50%,-50%);
  89.             transform: translate(-50%,-50%);
  90.             margin:0;/*余計な隙間を除く*/
  91.             padding:0;/*余計な隙間を除く*/
  92.             color: white;/*文字色*/
  93.             font-size: 40px;/*文字サイズ*/
  94.             text-align:center;/*pタグ内で更に中央寄せ*/
  95.             font-family: 'Quicksand',sans-serif;
  96.             font-weight: "bold";
  97.         }
  98.     </style>
  99. {% endblock %}
  100. {% block javascript %}
  101.     <script>
  102.         $(function() {
  103.             $('.main_visual').slick({
  104.                 dots: true,
  105.                 arrows: false,
  106.                 autoplay: true,
  107.                 speed: 300
  108.             });
  109.         });
  110.     </script>
  111. {% endblock javascript %}
  112. {% block main %}
  113.     <div class="ec-sliderRole">
  114.         <div class="main_visual">
  115.             <div class="item slick-slide header-photo"><img src="https://www.teamlab.art/images/pc-l/28989"><h2 class="index-title fontweight-bold">タスタス<br />アートギャラリーカフェ</h2></div>
  116.             <div class="item slick-slide header-photo"><img src="https://www.gannett-cdn.com/presto/2022/05/02/PPHX/f00d9880-c9d2-41a2-b71b-f47e68f51ffc-Ellen_Nemetz_Pop-upload.JPG?crop=1919,1080,x0,y153&width=1919&height=1080&format=pjpg&auto=webp"><h2 class="index-title fontweight-bold">タスタス<br />アートギャラリーカフェ</h2></div>
  117.             <div class="item slick-slide header-photo"><img src="https://d23.com/app/uploads/2020/01/1180w-463h_010920-riviera-art-gallery-780x440.jpg"><h2 class="index-title fontweight-bold">タスタス<br />アートギャラリーカフェ</h2></div>
  118.         </div>
  119.     </div>
  120. {% endblock %}