templates/pages/staff/_content.html.twig line 1

Open in your IDE?
  1. {% set staff_items = [
  2.   {
  3.   href: path('staff_detail_01'),
  4.   sp_img: asset('build/images/staff/sp_staff01.jpg'),
  5.   pc_img: asset('build/images/staff/staff01.jpg'),
  6.   class:'c-block-title_staff-item_col3',
  7.   sp_text01: '求められる能力は「素直',
  8.   sp_text02: 'さ」そして「常に笑顔で',
  9.   sp_text03: 'ありたい」と思う気持ち。',
  10.   pc_text01: '求められる能力は「素直さ」',
  11.   pc_text02: 'そして「常に笑顔でありたい」',
  12.   pc_text03: 'と思う気持ち。',
  13.   name: '本部長 田雑 秀敏',
  14.   button_text: '本部長 田雑 秀敏',
  15.   },
  16.   {
  17.   href: path('staff_detail_02'),
  18.   sp_img: asset('build/images/staff/sp_staff02.jpg'),
  19.   pc_img: asset('build/images/staff/staff02.jpg'),
  20.   class:'c-block-title_staff-item_col2',
  21.   sp_text01: '今日の「ありがとう」が',
  22.   sp_text02: '明日の「ありがとう」に',
  23.   sp_text03: '繋がる。',
  24.   pc_text01: '今日の「ありがとう」が',
  25.   pc_text02: '明日の「ありがとう」に繋がる。',
  26.   name: 'ホール主任 臼井 雪奈',
  27.   button_text: 'ホール主任 臼井 雪奈',
  28.   },
  29.   {
  30.   href: path('staff_detail_03'),
  31.   sp_img: asset('build/images/staff/sp_staff03.jpg'),
  32.   pc_img: asset('build/images/staff/staff03.jpg'),
  33.   class:'c-block-title_staff-item_col2',
  34.   sp_text01: '「良いものは良い。」と',
  35.   sp_text02: '素直に認めあう',
  36.   sp_text03: '文化がある。',
  37.   pc_text01: '「良いものは良い。」と',
  38.   pc_text02: '素直に認めあう文化がある。',
  39.   name: '店長代理 田口 光章',
  40.   button_text: '店長代理 田口 光章',
  41.   },
  42.   {
  43.   href: path('staff_detail_04'),
  44.   sp_img: asset('build/images/staff/sp_staff04.jpg'),
  45.   pc_img: asset('build/images/staff/staff04.jpg'),
  46.   class:'c-block-title_staff-item_col2',
  47.   sp_text01: '「やっぱりふじ丸最高」の',
  48.   sp_text02: 'ビジョンに向かって。',
  49.   pc_text01: '「やっぱりふじ丸最高」の',
  50.   pc_text02: 'ビジョンに向かって。',
  51.   name: 'ホール主任 森 玲奈',
  52.   button_text: 'ホール主任 森 玲奈',
  53.   },
  54.   {
  55.   href: path('staff_detail_05'),
  56.   sp_img: asset('build/images/staff/sp_staff05.jpg'),
  57.   pc_img: asset('build/images/staff/staff05.jpg'),
  58.   class:'c-block-title_staff-item_col2',
  59.   sp_text01: '知りたいを極める。',
  60.   pc_text01: '知りたいを極める。',
  61.   name: '店長 伊丹 悟郎',
  62.   button_text: '店長 伊丹 悟郎',
  63.   },
  64. ] %}
  65. <section class="pg_staff_content">
  66.   <div class="pg_staff_content_main-title">
  67.     {% include "components/common/_main-title.html.twig" with {
  68.     title: '平塚富士キッチンの<br class="sp-style">スタッフ',
  69.     text: '-STAFF-',
  70.     class: 'c-main-title',
  71.     }%}
  72.   </div>
  73.   <div class="pg_staff_content_item">
  74.     {% for item in staff_items %}
  75.     <a class="pg_staff_content_item__anchor" href="{{ item.href }}">
  76.       <div class="pg_staff_content_item__img">
  77.         <img src="{{ item.sp_img }}" alt="" class="sp-style">
  78.         <img src="{{ item.pc_img }}" alt="" class="pc-style">
  79.       </div>
  80.       <div class="pg_staff_content_item__title">
  81.         <h2 class="c-block-title">
  82.           {#<span class="sp-style">
  83.             <span class="{{ item.class }}">{{ item.sp_text01 }}</span>
  84.             {% if item.sp_text02 is defined %}
  85.               <span class="{{ item.class }}">{{ item.sp_text02 }}</span>
  86.             {% endif %}
  87.             {% if item.sp_text03 is defined %}
  88.               <span class="{{ item.class }}">{{ item.sp_text03 }}</span>
  89.             {% endif %}
  90.           </span>
  91.           <span class="pc-style">
  92.             <span class="{{ item.class }}">{{ item.pc_text01 }}</span>
  93.             {% if item.pc_text02 is defined %}
  94.               <span class="{{ item.class }}">{{ item.pc_text02 }}</span>
  95.             {% endif %}
  96.             {% if item.pc_text03 is defined %}
  97.               <span class="{{ item.class }}">{{ item.pc_text03 }}</span>
  98.             {% endif %}
  99.             {% if item.name is defined and item.name %}
  100.               <span class="c-block-title-name_item">{{ item.name }}</span>
  101.             {% endif %}
  102.           </span>#}
  103.         </h2>
  104.       </div>
  105.       <div class="pg_staff_content_item_button">
  106.         <span class="pg_staff_content_item_button__text">{{ item.button_text|raw }}</span>
  107.         <span class="pg_staff_content_item_button__arrow">
  108.           <img src="{{ asset('build/images/common/double_arrow_black.svg') }}" alt="">
  109.         </span>
  110.       </div>
  111.     </a>
  112.     {% endfor %}
  113.   </div>
  114. </section>