src/Eccube/Resource/template/default/recommendation.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 body_class = 'front_page' %}
  9. {% set recommends = [
  10.     {
  11.         'url':'/user_data/showroom',
  12.         'heading3':'REAL SHOP',
  13.         'heading2_1':'銀座・横浜元町',
  14.         'heading2_2':'ショールーム',
  15.         'image':'assets/img/recommend/recommend1.webp',
  16.         'pick_up':'<p class="absolute z-10 text-white font-extralight tracking-widest text-[10px] px-2 py-1 whitespace-nowrap bg-[#B50000] top-[-10px] lg:top-[-12px] left-[-10px] rounded-full first:block hidden">PICK UP</p>'
  17.     },
  18.     {
  19.         'url':'/help/about',
  20.         'heading3':'CONCEPT',
  21.         'heading2_1':'祈りの道具屋',
  22.         'heading2_2':'まなかについて',
  23.         'image':'assets/img/recommend/recommend2.webp',
  24.         'pick_up':''
  25.     },
  26.     {
  27.         'url':'/special',
  28.         'heading3':'SPECIAL',
  29.         'heading2_1':'祈りに親しむ',
  30.         'heading2_2':'',
  31.         'image':'assets/img/recommend/recommend3.webp',
  32.         'pick_up':''
  33.     },
  34.     {
  35.         'url':'/user_data/catalog',
  36.         'heading3':'SERVICE',
  37.         'heading2_1':'カタログお届け',
  38.         'heading2_2':'サービス',
  39.         'image':'assets/img/recommend/recommend4.webp',
  40.         'pick_up':''
  41.     },
  42.     {
  43.         'url':'/user_data/pick_up_altar',
  44.         'heading3':'SERVICE',
  45.         'heading2_1':'仏壇引き取り',
  46.         'heading2_2':'サービス',
  47.         'image':'assets/img/recommend/recommend6.webp',
  48.         'pick_up':''
  49.     },
  50. ] %}
  51. {% block main %}
  52.     <div class="bg-recommend py-9 w-full flex justify-center h-[400px] bg-cover lg:bg-recommend-md lg:h-[696px]">
  53.         <div class="max-w-[1120px] lg:max-w-[max(15.36vw,295px)] w-full flex flex-col gap-y-8 items-center justify-center">
  54.             <div class="flex items-center gap-x-2 w-full">
  55.                 <div class="w-full flex flex-col">
  56.                     <div class="w-full bg-[#C5C5C5]  h-[1px]"></div>
  57.                     <div class="w-full bg-white h-[1px]"></div>
  58.                 </div>
  59.                 <p class="whitespace-nowrap text-sm font-extralight ">おすすめコンテンツ</p>
  60.                 <div class="w-full flex flex-col">
  61.                     <div class="w-full bg-[#C5C5C5]  h-[1px]"></div>
  62.                     <div class="w-full bg-white h-[1px]"></div>
  63.                 </div>
  64.             </div>
  65.             {# コンテンツ #}
  66.             <div class="relative gap-8 flex flex-wrap items-center justify-center xl:gap-y-4 w-full">
  67.                 {% for recommend in recommends %}
  68.                     <a href={{recommend.url}} class="relative w-[348px] xl:w-[275px] flex py-[3px] pl-[36px] pr-[3px] xl:pl-7 justify-between rounded drop-shadow-[0px_2px_12px_rgba(137,137,137,0.15)] bg-white hover:drop-shadow-[0px_2px_8px_rgba(137,137,137,0.5)] hover:duration-500">
  69.                         {{recommend.pick_up|raw}}
  70.                         <div class="flex flex-col items-center justify-center gap-y-2 whitespace-nowrap ">
  71.                             <p class="text-[10px] xl:text-[8px] font-extralight tracking-widest">{{recommend.heading3}}</p>
  72.                             <span class="flex flex-col gap-y-2 text-sm xl:text-xs font-extralight tracking-widest text-center">
  73.                                 <p>{{recommend.heading2_1}}</p>
  74.                                 <p>{{recommend.heading2_2}}</p>
  75.                             </span>
  76.                         </div>
  77.                         <img src={{asset(recommend.image)}} alt="" class="w-[152px] xl:w-[110px] h-[104px] xl:h-[75px]">
  78.                     </a>
  79.                 {% endfor %}
  80.             </div>
  81.         </div>
  82.     </div>
  83. {% endblock %}