app/template/default/Block/supported_services.twig line 1

Open in your IDE?
  1. {% block stylesheet %}
  2.     <style>
  3.         .top-service__box {
  4.             background-color: #ECF6FF;
  5.             text-align: center;
  6.             width: 100%;
  7.             padding: 5% 180px 0;
  8.         }
  9.         .top-service__services {
  10.             list-style: none;
  11.             padding: 0;
  12.             display: inline-block;
  13.         }
  14.         .top-service__service {
  15.             float: left;
  16.             margin: 0.73%;
  17.             background: #FFFFFF;
  18.             text-align: center;
  19.             border-radius: 8px;
  20.             position: relative;
  21.         }
  22.         .top-service__service:nth-child(1),
  23.         .top-service__service:nth-child(5),
  24.         .top-service__service:nth-child(9),
  25.         .top-service__service:nth-child(13) {
  26.             margin-left: unset;
  27.         }
  28.         .top-service__service:nth-child(4),
  29.         .top-service__service:nth-child(8),
  30.         .top-service__service:nth-child(12),
  31.         .top-service__service:nth-child(16) {
  32.             margin-right: unset;
  33.         }
  34.         .top-service__service-a {
  35.             padding: 18px 0;
  36.             vertical-align: middle;
  37.             font-family: "Roboto", "ヒラギノ角ゴ ProN", "メイリオ", "sans-serif";
  38.             font-weight: 600;
  39.             font-size: 17px;
  40.             line-height: 23.8px;
  41.             text-align: center;
  42.             color: #333333;
  43.         }
  44.         .link-nav__block {
  45.             display: block;
  46.             width: 100%;
  47.         }
  48.         .top-service-title {
  49.             font-family: "Roboto", "ヒラギノ角ゴ ProN", "メイリオ", "sans-serif";
  50.             font-weight: 600;
  51.             font-size: 24px;
  52.             line-height: 36px;
  53.             text-align: center;
  54.             color: #333333;
  55.         }
  56.         .fa-custom {
  57.             position: absolute;
  58.             right: 15%;
  59.             display: inline-block;
  60.             vertical-align: middle;
  61.             top: 36%;
  62.             color: #333333;
  63.         }
  64.         .pc-line {
  65.             border-top: 3px solid #2379E7;
  66.             position: relative;
  67.             top: 15px;
  68.             width: 40px;
  69.             left: 0;
  70.             right: 0;
  71.             margin: auto;
  72.             border-radius: 8px;
  73.         }
  74.         @media (min-width: 768px) {
  75.             .top-service__services {
  76.                 margin-top: 60px;
  77.                 margin-right: auto;
  78.                 margin-bottom: 40px;
  79.                 margin-left: auto;
  80.             }
  81.             .top-service__service {
  82.                 width: 23.9%;
  83.                 height: 60px;
  84.             }
  85.         }
  86.         @media (max-width: 768px) {
  87.             .top-service__box {
  88.                 font-weight: 600;
  89.                 text-align: center;
  90.                 line-height: 1.4em;
  91.                 padding: 10% 20px;
  92.             }
  93.             .top-service__services {
  94.                 list-style: none;
  95.                 padding: 0;
  96.             }
  97.             .top-service__service {
  98.                 width: 48%;
  99.                 float: left;
  100.                 margin: 1%;
  101.             }
  102.             .top-service__service:nth-child(1),
  103.             .top-service__service:nth-child(5),
  104.             .top-service__service:nth-child(9),
  105.             .top-service__service:nth-child(13) {
  106.                 margin-left: 1%;
  107.             }
  108.             .top-service__service:nth-child(4),
  109.             .top-service__service:nth-child(8),
  110.             .top-service__service:nth-child(12),
  111.             .top-service__service:nth-child(16) {
  112.                 margin-right: 1%;
  113.             }
  114.             .fa-custom {
  115.                 right: 10%;
  116.             }
  117.             .pc-line {
  118.                 border-top: 3px solid #2379E7;
  119.                 position: relative;
  120.                 top: 0;
  121.                 width: 40px;
  122.                 left: 0;
  123.                 right: 0;
  124.                 margin: 15px auto 20px;
  125.                 border-radius: 8px;
  126.             }
  127.             .top-service-title {
  128.                 font-family: "Roboto", "ヒラギノ角ゴ ProN", "メイリオ", "sans-serif";
  129.                 font-weight: 600;
  130.                 font-size: 22px;
  131.                 line-height: 28px;
  132.                 text-align: center;
  133.                 color: #333333;
  134.             }
  135.         }
  136.     </style>
  137. {% endblock %}
  138. {% set TagList = repository('Eccube\\Entity\\Tag').getList() %}
  139. {% block main %}
  140.     {% if TagList is not empty %}
  141.         <div class="top-service__box">
  142.             <h2 class="top-service-title mt-0">対応サービス</h2>
  143.             <div class="pc-line"></div>
  144.             <ul class="top-service__services">
  145.                 {% for Tag in TagList %}
  146.                     <li class="top-service__service">
  147.                         <a class="link-nav link-nav__block top-service__service-a"
  148.                            href="{{ url('product_list') }}?tag_id={{ Tag.id }}">{{ Tag.name }}</a>
  149.                         <i class="fa fa-chevron-right fa-lg fa-custom" aria-hidden="true"></i>
  150.                     </li>
  151.                 {% endfor %}
  152.             </ul>
  153.         </div>
  154.     {% endif %}
  155. {% endblock %}