File size: 2,518 Bytes
6a65890
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{% extends "base.html" %}
{% block title %}Everyplate{% endblock %}
{% block main_class %} ep-main--faq{% endblock %}
{% block content %}

<section class="ep-faqhead">
  <h2 class="ep-faqhead__title">Frequently Asked Questions</h2>
</section>

<section class="ep-faqsearch">
  <form method="get" action="/about/faq" role="search">
    <input class="ep-faqsearch__input" type="search" name="q" value="{{ q }}"
           placeholder="What can we help you with?" aria-label="What can we help you with?">
    <button class="ep-faqsearch__btn" type="submit" aria-label="Search"></button>
  </form>
</section>

{% if q %}
<section class="ep-faqresults">
  {% if results %}
  <p class="ep-faqresults__count">{{ results|length }} answer{{ '' if results|length == 1 else 's' }} matching &ldquo;{{ q }}&rdquo;</p>
  <ul class="ep-accordion ep-accordion--light">
    {% for r in results %}
    <li class="ep-accordion__item"{% if r.open %} data-open="true"{% endif %}>
      <a class="ep-accordion__q" id="{{ r.id }}"
         href="{% if r.open %}?q={{ q|urlencode }}{% else %}?q={{ q|urlencode }}&amp;faq={{ r.id }}#{{ r.id }}{% endif %}"
         aria-expanded="{{ 'true' if r.open else 'false' }}" aria-controls="{{ r.id }}-a">
        <span>{{ r.question }}</span><span class="ep-accordion__chev{% if r.open %} is-open{% endif %}" aria-hidden="true"></span>
      </a>
      {% if r.open and r.answer %}<div class="ep-accordion__a" id="{{ r.id }}-a"><p>{{ r.answer }}</p></div>{% endif %}
    </li>
    {% endfor %}
  </ul>
  {% else %}
  <p class="ep-empty" role="status">No answers match &ldquo;{{ q }}&rdquo;. Try another search or pick a category below.</p>
  {% endif %}
</section>
{% endif %}

<section class="ep-faqcats">
  <ul class="ep-faqcats__grid">
    {% for c in categories %}
    <li>
      <a class="ep-faqcat" href="/about/faq?q={{ c.query|urlencode }}">
        <img src="{{ c.icon }}" alt="" width="50" height="50" loading="lazy">
        <h4 class="ep-faqcat__name">{{ c.name }}</h4>
      </a>
    </li>
    {% endfor %}
  </ul>
</section>

<section class="ep-faqcontact">
  <h2 class="ep-h2">Can&rsquo;t find your answer?</h2>
  <a class="ep-cta ep-faqcontact__cta" href="/contact">Contact Us</a>
</section>

<section class="ep-faqoffer">
  <h2 class="ep-h2">Get 50% off + 10% off a month</h2>
  <p class="ep-faqoffer__lede">Start cooking with EveryPlate and get your first box at the lowest price around.</p>
  <a class="ep-cta ep-faqoffer__cta" href="/plans">Get Offer</a>
</section>
{% endblock %}