src/Eccube/Resource/template/default/hamburger.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. {% set categories = [
  9.     {
  10.         'name': 'お仏壇・ステージ',
  11.         'id':'2',
  12.     },
  13.     {
  14.         'name': 'お位牌',
  15.          'id':'1',
  16.     },
  17.     {
  18.         'name': '仏具・日用品',
  19.          'id':'3',
  20.     },
  21.     {
  22.         'name': '仏壇・仏具セット',
  23.          'id':'4',
  24.     },
  25.     {
  26.         'name': '手元供養',
  27.          'id':'21',
  28.     },
  29. ] %}
  30. {% set siteMaps = [
  31.     {
  32.         'name': 'お知らせ',
  33.         'route': 'reading',
  34.         'url': 'user_data'
  35.     },
  36.     {
  37.         'name': '祈りに親しむ',
  38.         'route': null,
  39.         'url': 'special_posts'
  40.     },
  41.     {
  42.         'name': 'サポートサービス',
  43.         'route': 'service',
  44.         'url': 'user_data'
  45.     },
  46.     {
  47.         'name': 'ご利用ガイド',
  48.         'route': 'guide_top',
  49.         'url': 'user_data'
  50.     },
  51.     {
  52.         'name': '会社概要',
  53.         'route': 'corporate',
  54.         'url': 'user_data'
  55.     },
  56.     {
  57.         'name': 'プライバシーポリシー',
  58.         'route': null,
  59.         'url': 'help_privacy'
  60.     },
  61.     {
  62.         'name': '会員規約',
  63.         'route': null,
  64.         'url': 'help_agreement'
  65.     },
  66.     {
  67.         'name': '特定商取引に基づく表記',
  68.         'route': null,
  69.         'url': 'help_tradelaw'
  70.     },
  71.     {
  72.         'name': 'お問い合わせ',
  73.         'route': null,
  74.         'url': 'contact'
  75.     },
  76.     {
  77.         'name': 'サイトマップ',
  78.         'route': null,
  79.         'url':'help_sitemap'
  80.     },
  81. ] %}
  82. {% block main %}
  83.     <div class="max-w-[1120px] mx-auto flex flex-col lg:px-2">
  84.         <div class="flex items-center justify-center gap-6 lg:hidden">
  85.             <span class="bg-[#E2DFD6] h-px inline-block w-1/2"></span>
  86.             <p class="tracking-wide leading-6 w-1/5 text-center text-[#222] lg:w-auto">商品カテゴリ一覧</p>
  87.             <span class="bg-[#E2DFD6] h-px inline-block w-1/2"></span>
  88.         </div>
  89.         <div class="flex items-center gap-8 justify-center w-full -mt-1 lg:flex-col font-extralight lg:gap-0 lg:max-w-[max(84vw,315px)] lg:mx-auto lg:mb-8 py-10 lg:py-0">
  90.             <p class="tracking-wide leading-6 text-center text-[#222] hidden lg:block mb-3">商品カテゴリ一覧</p>
  91.             {% for category in categories %}
  92.                 <a href="{{url('product_list',{'category_id':category.id})}}" class="cursor-pointer font-normal lg:border-[#E2DFD6] lg:w-full lg:border-b lg:mb-4 lg:last:mb-0 lg:pl-3 lg:py-2 hover text-lg tracking-widest leading-8 lg:text-base">
  93.                     {{category.name}}
  94.                 </a>
  95.             {% endfor %}
  96.         </div>
  97.         <span class="bg-[#E2DFD6] h-px inline-block w-full lg:hidden mb-16"></span>
  98.         <a href="{{ url('user_data', {'route': 'showroom' }) }}" class="block mb-16 lg:mb-8">
  99.             <img src={{ asset('assets/img/header/showroom_banner.png') }} class="lg:max-w-[max(84vw,315px)] w-[500px] h-auto lg:w-ful mx-auto cursor-pointer hover">
  100.         </a>
  101.         <div class="w-full flex md:flex-col items-center justify-center gap-2 mb-14 lg:mb-0 font-normal">
  102.             <a href="{{url("contact")}}" class="flex text-[#222222] w-[208px] lg:max-w-[max(84vw,315px)] lg:w-full border-[#E2DFD6] border rounded justify-between items-center p-3">
  103.                 <div class="flex gap-2 items-center">
  104.                     <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
  105.                         <path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75"/>
  106.                     </svg>
  107.                     お問い合わせ
  108.                 </div>
  109.                 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6 w-3 h-3">
  110.                     <path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5"/>
  111.                 </svg>
  112.             </a>
  113.             <a href="{{url("catalog_confirm")}}" class="flex text-[#222222] w-[208px] lg:max-w-[max(84vw,315px)] lg:w-full border-[#E2DFD6] border rounded justify-between items-center p-3">
  114.                 <div class="flex gap-2 items-center">
  115.                     <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
  116.                         <path stroke-linecap="round" stroke-linejoin="round" d="M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"/>
  117.                     </svg>
  118.                     資料請求
  119.                 </div>
  120.                 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6 w-3 h-3">
  121.                     <path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5"/>
  122.                 </svg>
  123.             </a>
  124.             <a href="tel:0355795671" class=" text-[#222222] w-[208px] lg:max-w-[max(84vw,315px)] lg:w-full border-[#E2DFD6] border rounded justify-between items-center p-3 lg:flex hidden">
  125.                 <div class="flex gap-2 items-center">
  126.                     <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
  127.                         <path stroke-linecap="round" stroke-linejoin="round" d="M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5v2.25Z"/>
  128.                     </svg>
  129.                     03-5579-5671
  130.                 </div>
  131.                 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewbox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6 w-3 h-3">
  132.                     <path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5"/>
  133.                 </svg>
  134.             </a>
  135.         </div>
  136.         <nav class="mb-10 lg:hidden">
  137.             <ul class="flex-wrap flex items-center justify-center gap-6 lg:gap-4 font-light">
  138.                 {% for siteMap in siteMaps %}
  139.                     <li class="font-notosans">
  140.                         {% if siteMap.url != null %}
  141.                             <a href="{{ url(siteMap.url, {'route': siteMap.route }) }}" class="text-xs leading-6 hover tracking-wider">
  142.                                 {{siteMap.name}}
  143.                             </a>
  144.                         {% else %}
  145.                             <a href="{{ url(siteMap.url)}}" class="text-xs leading-6 hover tracking-wider">
  146.                                 {{siteMap.name}}
  147.                             </a>
  148.                         {% endif %}
  149.                     </li>
  150.                 {% endfor %}
  151.             </ul>
  152.         </nav>
  153.     </div>
  154. {% endblock %}