app/template/ss4002/index.twig line 1

Open in your IDE?
  1. {#
  2.     This file is part of EC-CUBE
  3.     
  4.     Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
  5.     
  6.     http://www.lockon.co.jp/
  7.     
  8.     For the full copyright and license information, please view the LICENSE
  9.     file that was distributed with this source code.
  10.     #}
  11.     {% extends 'default_frame.twig' %}
  12.     
  13.     {% set body_class = 'front_page' %}
  14.     
  15.     {% block stylesheet %}
  16.         <style>
  17.     
  18.             {# main visual #}
  19.             .p-top__main-visual-slide-link.is-1st {
  20.                 background-image:url({{ asset('/html/user_data/assets/img/fv/1.png') }});
  21.             }
  22.             .p-top__main-visual-slide-link.is-2nd {
  23.                 background-image:url({{ asset('/html/user_data/assets/img/fv/2.png') }});
  24.             }
  25.             .p-top__main-visual-slide-link.is-3rd {
  26.                 background-image:url({{ asset('/html/user_data/assets/img/fv/3.png') }});
  27.             }
  28.             @media screen and (max-width: 839px) {
  29.                 .p-top__main-visual-slide-link.is-1st {
  30.                     background-image:url({{ asset('/html/user_data/assets/img/fv/1.png') }});
  31.                 }
  32.                 .p-top__main-visual-slide-link.is-2nd {
  33.                     background-image:url({{ asset('/html/user_data/assets/img/fv/2.png') }});
  34.                 }
  35.                 .p-top__main-visual-slide-link.is-3rd {
  36.                     background-image:url({{ asset('/html/user_data/assets/img/fv/3.png') }});
  37.                 }
  38.             }
  39.     
  40.             {# category #}
  41.             .b-category:after {
  42.                 background-image:url({{ asset('/html/user_data/assets/img/top_bg_left.png') }});
  43.             }
  44.             @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  45.                 .b-category:after {
  46.                     background-image:url({{ asset('/html/user_data/assets/img/top_bg_left.png') }});
  47.                 }
  48.             }
  49.             .b-about {
  50.                 margin-top: 80px;
  51.             }
  52.             .b-about__title {
  53.                 width: 100%;
  54.                 max-width: 1146px;
  55.                 margin-left: auto;
  56.                 margin-right: auto;
  57.                 padding-left: 20px;
  58.                 padding-right: 20px;
  59.                 box-sizing: border-box;
  60.                 font-size: inherit;
  61.                 line-height: inherit;
  62.                 display: -ms-flexbox;
  63.                 display: flex;
  64.                 -ms-flex-direction: column;
  65.                 flex-direction: column;
  66.                 margin-bottom: 40px;
  67.             }
  68.             .b-about__title--main {
  69.                 font-family: "Josefin Sans", sans-serif;
  70.                 font-weight: 600;
  71.                 font-size: 49px;
  72.                 letter-spacing: -0.025em;
  73.                 line-height: 1.2;
  74.                 text-indent: -0.05em;
  75.             }
  76.             .b-about__contents {
  77.                 width: 100%;
  78.                 max-width: 1322px;
  79.                 margin-left: auto;
  80.                 margin-right: auto;
  81.                 padding-left: 20px;
  82.                 padding-right: 20px;
  83.                 box-sizing: border-box;
  84.                 overflow: hidden;
  85.             }
  86.             @media screen and (max-width: 1024px) {
  87.                 .b-about__contents {
  88.                     margin: 6px 0 0;
  89.                 }
  90.                 .b-about__contents p{
  91.                     font-size: 0.6875em;
  92.                 }
  93.             }
  94.             @media screen and (max-width: 839px) {
  95.                 .b-about {
  96.                     margin-top: 40px;
  97.                 }
  98.                 .b-about__title {
  99.                     max-width: 692px;
  100.                     margin-bottom: 20px;
  101.                 }
  102.                 .b-about__title--main {
  103.                     font-size: 32.66667px;
  104.                     text-indent: -0.025em;
  105.                 }
  106.                 .b-about__contents {
  107.                     
  108.                 }
  109.             }
  110.             @media screen and (max-width: 479px) {
  111.                 .b-about {
  112.                     margin-top: 40px;
  113.                 }
  114.                 .b-about__title {
  115.                     padding-left: 16px;
  116.                     padding-right: 16px;
  117.                 }
  118.                 .b-about__title--main {
  119.                 }
  120.                 .b-about__contents {
  121.                     
  122.                 }
  123.             }
  124.     
  125.         </style>
  126.     {% endblock %}
  127.     
  128.     {% block javascript %}
  129.         <script src="https://cdn.jsdelivr.net/npm/swiper@5.3.6/js/swiper.min.js" integrity="sha256-dwAIpWA5jmq1E3AHBeJDH86emZuOEMKZrZxNr9DJAQs=" crossorigin="anonymous"></script>
  130.         <script>
  131.     
  132.             $(function(){
  133.                 {# main visual #}
  134.                 var mainVisualSwiper = new Swiper ('#js-top__main-visual-slide', {
  135.                     effect: "slide",
  136.                     loop: true,
  137.                     slidesPerView: 1,
  138.                     pagination: {
  139.                         el: '#js-top__main-visual-pager-contents',
  140.                         clickable: true
  141.                     },
  142.                     navigation: {
  143.                         prevEl: '#js-top__main-visual-slide-navi-prev',
  144.                         nextEl: '#js-top__main-visual-slide-navi-next',
  145.                     }
  146.                 })
  147.     
  148.                 {# category #}
  149.                 var categorySwiper = new Swiper('#js-category__slide', {
  150.                     slidesPerView: 2,
  151.                     spaceBetween: 12,
  152.                     scrollbar: {
  153.                         el: '#js-category__slide-scrollbar',
  154.                         draggable: true
  155.                     },
  156.                     breakpoints: {
  157.                         480: {
  158.                             slidesPerView: 3,
  159.                             spaceBetween: 12
  160.                         },
  161.                         840: {
  162.                             slidesPerView: 4,
  163.                             spaceBetween: 30
  164.                         },
  165.     
  166.                     }
  167.                 });
  168.     
  169.                 {# news #}
  170.                 $('#js-news__contents').each(function() {
  171.                     var listLength = $(this).find('.js-news__post').length;
  172.                     if (listLength > 5) {
  173.                         $(this).find('.js-news__post:gt(4)').each(function() {
  174.                             $(this).hide();
  175.                         });
  176.                         var dispNum = 5;
  177.                         $(this).find('#js-news-button').click(function() {
  178.                             dispNum += 5;
  179.                             $(this).parents('#js-news__contents').find('.js-news__post:lt(' + dispNum + ')').fadeIn();
  180.                             if (dispNum >= listLength) {
  181.                                 $(this).parents('#js-news__actions').hide();
  182.                             }
  183.                         })
  184.                     }
  185.                 });
  186.                 $('.js-news__post-heading').on('click', function() {
  187.                     $newsPost = $(this).parent('.js-news__post');
  188.                     $newsDescription = $newsPost.children('.js-news__post-contents');
  189.                     if ($newsDescription.css('display') == 'none') {
  190.                         $newsPost.addClass('is-active');
  191.                         $newsDescription.slideDown(300);
  192.                     } else {
  193.                         $newsPost.removeClass('is-active');
  194.                         $newsDescription.slideUp(300);
  195.                     }
  196.                 });
  197.     
  198.             });
  199.     
  200.             $(window).on('load',function() {
  201.     
  202.                 {# topic #}
  203.                 gridItems();
  204.     
  205.             });
  206.     
  207.             var resizeTimer = null;
  208.             $(window).on('resize', function() {
  209.                 clearTimeout(resizeTimer);
  210.                 resizeTimer = setTimeout(function() {
  211.     
  212.                     {# topic #}
  213.                     gridItems();
  214.     
  215.                 }, 200);
  216.     
  217.             });
  218.     
  219.             function gridItems(){
  220.                 var items = $('.js-topic__list-item');
  221.                 items.each(function(index, elem) {
  222.                     gridItem($(elem));
  223.                 });
  224.             }
  225.     
  226.             function gridItem(item){
  227.                 var grid,
  228.                     rowHeight,
  229.                     rowGap,
  230.                     rowSpan;
  231.                 grid = $('#js-topic__list');
  232.                 rowHeight = parseInt(grid.css('grid-auto-rows'));
  233.                 rowGap = parseInt(grid.css('grid-row-gap'));
  234.                 rowSpan = Math.ceil((item.find('.js-topic__item').outerHeight() + rowGap) / (rowHeight + rowGap));
  235.                 if (window.innerWidth > 839) {
  236.                     item.css('grid-row-end', '');
  237.                 } else {
  238.                     item.css('grid-row-end', 'span ' + rowSpan);
  239.                 }
  240.             }
  241.     
  242.         </script>
  243.     {% endblock javascript %}
  244.     
  245.     {% block main %}
  246.         <div class="p-top__main-visual">
  247.             <div class="p-top__main-visual-slide" id="js-top__main-visual-slide">
  248.                 <div class="p-top__main-visual-slide-contents swiper-wrapper">
  249.                     <a class="p-top__main-visual-slide-link is-1st swiper-slide" href="{{ url('homepage') }}">
  250.                         <span class="p-top__main-visual-slide-link-text">Slide1</span>
  251.                     </a>
  252.                     <a class="p-top__main-visual-slide-link is-2nd swiper-slide" href="{{ url('homepage') }}">
  253.                         <span class="p-top__main-visual-slide-link-text">Slide2</span>
  254.                     </a>
  255.                     <a class="p-top__main-visual-slide-link is-3rd swiper-slide" href="{{ url('homepage') }}">
  256.                         <span class="p-top__main-visual-slide-link-text">Slide3</span>
  257.                     </a>
  258.                 </div>
  259.                 <div class="p-top__main-visual-slide-navi">
  260.                     <div class="p-top__main-visual-slide-navi-prev" id="js-top__main-visual-slide-navi-prev"></div>
  261.                     <div class="p-top__main-visual-slide-navi-next" id="js-top__main-visual-slide-navi-next"></div>
  262.                 </div>
  263.             </div>
  264.             <div class="p-top__main-visual-pager">
  265.                 <div class="p-top__main-visual-pager-contents" id="js-top__main-visual-pager-contents"></div>
  266.             </div>
  267.             <div class="p-top__main-visual-reading">
  268.                 <div class="p-top__main-visual-reading-contents">
  269.                     <div class="p-top__main-visual-copy">
  270.                         <p class="p-top__main-visual-copy--main">THE<br>SUPERMARKET<br>TOKYO</p>
  271.                         <p class="p-top__main-visual-copy--sub">Wear the Future,<br>Choose Sustainability</p>
  272.                     </div>
  273.                     <p class="p-top__main-visual-description">未来を纏う、サステナブルな選択</p>
  274.                 </div>
  275.             </div>
  276.             <div class="p-top__main-visual-sns">
  277.                 <ul class="p-top__main-visual-sns-list">
  278.                     <!-- <li class="p-top__main-visual-sns-list-item">
  279.                         <a class="p-top__main-visual-sns-link is-twitter" href="#">Twitter</a>
  280.                     </li> -->
  281.                     <li class="p-top__main-visual-sns-list-item">
  282.                         <a class="p-top__main-visual-sns-link is-instagram" href="https://www.instagram.com/the.supermarket.tokyo/">Instagram</a>
  283.                     </li>
  284.                     <li class="p-top__main-visual-sns-list-item">
  285.                         <a class="p-top__main-visual-sns-link is-facebook" href="https://www.facebook.com/tsmt.tokyo/">Facebook</a>
  286.                     </li>
  287.                 </ul>
  288.             </div>
  289.         </div>
  290.         <section class="b-about">
  291.             <h2 class="b-about__title c-animation-fade js-animation-fade is-show">
  292.                 <span class="b-about__title--main">ABOUT THE SUPERMARKET TOKYO</span>
  293.                 <!-- <span class="b-about__title--sub">Special Category</span> -->
  294.             </h2>
  295.             <div class="b-about__contents c-animation-fade js-animation-fade is-show">
  296.                 <p>
  297.                     サステナブル、持続可能、SDGS、カーボンニュートラル、環境問題と物事を大きく捉えてしまうとその一歩が踏み出せなくなることが多くあります。<br>
  298.                     そこで、“ちょっとだけ何かいいこと!”をコンセプトに2021年クラウドファンディングプロジェクトからスタートしたブランド。
  299.                 </p>
  300.                 <p>
  301.                     [ 見えないけれど、ちょっといいこと ]<br>
  302.                     それは環境に優しいことはもちろん、無駄をなくし時間にゆとりをもたらすことだったり、人、体にも優しい機能としての軽量性や簡単ケアもそれにあたります。<br>
  303.                     加えて、カラーバリエーションのように個性を重視し暮らしを豊かにするデザインにこだわっています。
  304.                 </p>
  305.                 <p>
  306.                     繊維業界では基準に満たず納品出来ない規格外素材が存在しその処分が問題になっています。<br>
  307.                     「ZERO WASTE DESIGN」の考えの元、不要になった規格外素材を有効利用し商品として蘇らせること、それも”ちょっとだけ何かいいこと“のひとつです。
  308.                 </p>
  309.                 <p>
  310.                     「THE SUPERMARKET TOKYO」が現在使用している規格外素材は<br>
  311.                     元々高級車のシートや内装として世界的にも評価の高い日本製合成皮革です。<br>
  312.                     この合成皮革を出来るだけ棄てず有効利用するため、小さく残ったハギレも風呂敷のハンドルや小さなカードケースとして商品化しています。
  313.                 </p>
  314.             </div>
  315.         </section>
  316.     {% endblock %}