<!-- Error rendering component -->
<!-- TwigException: Unable to parse 'switch entry.type' -->
<!-- Error: TwigException: Unable to parse 'switch entry.type'
    at /opt/build/repo/node_modules/@frctl/twig/src/adapter.js:156:24
    at new Promise (<anonymous>)
    at TwigAdapter.render (/opt/build/repo/node_modules/@frctl/twig/src/adapter.js:134:16)
    at ComponentSource._renderVariant (/opt/build/repo/node_modules/@frctl/fractal/src/api/components/source.js:212:30)
    at _renderVariant.next (<anonymous>)
    at onFulfilled (/opt/build/repo/node_modules/co/index.js:65:19) -->
<div id="pricing-slat" class="pricing-slat">
  <div class="grid grid--of-two">
    <div class="flow--l">
      <div class="body flow--xs">
        <h2>{{ title }}</h2>
        <p>{{ text }}</p>
      </div>
      {% include '@button' with {
        arrow: true,
        link: cta.link,
        text: cta.text ? cta.text : 'Book your training',
        style: 'large'
      } %}
    </div>
    <div class="pricing-slat__info flow--s">
      <h3 class="h h-5">Pricing</h3>
      <div role="region" aria-labelledby="pricing-table-{{ entry.id }}" tabindex="0">
        <table class="pricing-slat__table">
          <caption id="pricing-table-{{ entry.id }}" class="vh">Pricing for Clearleft's {{ entry.title }} workshop</caption>
          {% if show_table_head is defined and show_table_head == true %}
          <thead>
            <tr>
              <th scope="col">Group size</th>
              <th class="align-right" scope="col">Price per person + VAT</th>
            </tr>
          </thead>
          {% endif %}
          <tbody>
            {% switch entry.type %}
              {% case 'product' %}
                {% for row in pricing_table %}
                  <tr>
                    <td data-title="{{ row.key }}">{{ row.key }}</td>
                    <td data-title="{{ row.value }}" class="align-right"><strong>{{ row.value }}</strong></td>
                  </tr>
                {% endfor %}

              {% default %}
                {% for row in pricing_table %}
                  <tr>
                    <td data-title="Group size">{{ row.groupSize }}</td>
                    <td data-title="Price per person + VAT" class="align-right">{{ row.pricePerPersonVat }}</td>
                  </tr>
                {% endfor %}

            {% endswitch %}
          </tbody>
        </table>
      </div>
      <p class="caption">{{ note }}</p>
    </div>
  </div>
</div>
/* No context defined. */
  • Content:
    .pricing-slat {
      background-color: var(--green-step-2);
      padding: var(--space-s-l);
    
      &__info {
        background-color: var(--white);
        height: fit-content;
        padding: var(--space-s);
      }
    }
    
    .pricing-slat > .grid {
      align-items: center;
    }
    
    .pricing-slat__table {
      border-collapse: collapse;
      width: 100%;
    }
    .pricing-slat__table tr {
      border-block-end: 1px solid var(--grey-step-2);
    }
    .pricing-slat__table th {
      font-weight: 700;
      padding-bottom: var(--space-2xs);
    }
    .pricing-slat__table td {
      padding-block: var(--space-2xs);
    }
    .pricing-slat__table th,
    .pricing-slat__table td {
      line-height: 1.7;
      padding-right: var(--space-2xs);
      text-align: left;
      text-wrap: nowrap;
    }
    .pricing-slat__table th.align-right,
    .pricing-slat__table td.align-right {
      text-align: right;
    }
    
    [role="region"][aria-labelledby][tabindex] {
      /* Allow overflow of applicable divs while prevent horizontal scrolling of whole page. */
      overflow: auto;
    
      /* Scrolling visual cue */
      background: linear-gradient(to right, var(--white) 30%, rgba(255, 255, 255, 0)),
        linear-gradient(to right, rgba(255, 255, 255, 0), var(--white) 70%) 0 100%,
        radial-gradient(
          farthest-side at 0% 50%,
          rgba(0, 0, 0, 0.2),
          rgba(0, 0, 0, 0)
        ),
        radial-gradient(
            farthest-side at 100% 50%,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0)
          )
          0 100%;
      background-repeat: no-repeat;
      background-color: var(--white);
      background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
      background-position: 0 0, 100%, 0 0, 100%;
      background-attachment: local, local, scroll, scroll;
    }
    
    [role="region"][aria-labelledby][tabindex]:focus {
      outline: 2px solid var(--orange);
      outline-offset: 2px;
    }
    
  • URL: /components/raw/pricing-slat/pricing-slat.css
  • Filesystem Path: src/templates/components/pricing-slat/pricing-slat.css
  • Size: 1.7 KB

No notes defined.