File size: 8,042 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{% extends "checkout_base.html" %}
{% block title %}Select Plan | EveryPlate{% endblock %}
{% block content %}

<h1 class="ep-plans__title">Select your plan - America's lowest-priced home cooking box</h1>

{# main white card, 1054x678 in the source: preferences left, box size right #}
<section class="ep-plancard">
  <div class="ep-plancard__cols">
    <div class="ep-plancard__left">
      <h4 class="ep-plancard__step">1. Choose your preferences</h4>
      <p class="ep-plancard__hint">Your preferences help us show you the most relevant recipes first. You'll still have access to all recipes each week!</p>
      <form class="ep-prefgrid" method="get" action="/plans">
        <input type="hidden" name="people" value="{{ selected.people }}">
        <input type="hidden" name="recipes" value="{{ selected.recipes }}">
        {% if promo.code %}<input type="hidden" name="promo" value="{{ promo.code }}">{% endif %}
        {% for pref in preferences %}
        <button class="ep-prefcard{% if pref.id == selected.preference %} is-active{% endif %}"
                type="submit" name="preference" value="{{ pref.id }}"
                aria-pressed="{{ 'true' if pref.id == selected.preference else 'false' }}">
          {% if pref.icon %}<img class="ep-prefcard__icon" src="{{ pref.icon }}" alt="" width="40" height="40">{% endif %}
          <span class="ep-prefcard__label">{{ pref.label }}</span>
        </button>
        {% endfor %}
      </form>
      <p class="ep-plancard__prefdesc">{{ selected.preference_description }}</p>
    </div>

    <div class="ep-plancard__right">
      <h4 class="ep-plancard__step">2. Select your box size</h4>
      <div class="ep-sizerow">
        <form method="get" action="/plans">
          <input type="hidden" name="preference" value="{{ selected.preference }}">
          <input type="hidden" name="recipes" value="{{ selected.recipes }}">
          {% if promo.code %}<input type="hidden" name="promo" value="{{ promo.code }}">{% endif %}
          <span class="ep-sizerow__label">Number of people</span>
          <div class="ep-sizerow__group">
            {% for n in people_options %}
            <button class="ep-sizebtn{% if n == selected.people %} active{% endif %}" type="submit"
                    name="people" value="{{ n }}"
                    aria-pressed="{{ 'true' if n == selected.people else 'false' }}">{{ n }}</button>
            {% endfor %}
          </div>
        </form>
        <form method="get" action="/plans">
          <input type="hidden" name="preference" value="{{ selected.preference }}">
          <input type="hidden" name="people" value="{{ selected.people }}">
          {% if promo.code %}<input type="hidden" name="promo" value="{{ promo.code }}">{% endif %}
          <span class="ep-sizerow__label">Recipes per week</span>
          <div class="ep-sizerow__group">
            {% for n in recipe_options %}
            <button class="ep-sizebtn{% if n == selected.recipes %} active{% endif %}" type="submit"
                    name="recipes" value="{{ n }}"
                    aria-pressed="{{ 'true' if n == selected.recipes else 'false' }}">{{ n }}</button>
            {% endfor %}
          </div>
        </form>
      </div>

      <div class="ep-pricecard" data-plan-summary>
        <p class="ep-pricecard__pref">{{ selected.preference_label }}</p>
        <p class="ep-pricecard__line">{{ selected.recipes }} recipes for {{ selected.people }} people per week</p>
        <dl class="ep-pricecard__rows">
          <div><dt>Box price</dt><dd data-box-price>{{ price.box_price }}</dd></div>
          <div><dt>Price per serving</dt><dd data-per-serving>{{ price.per_serving }}</dd></div>
          <div><dt>First box total</dt><dd data-first-box>{{ price.first_box }}</dd></div>
        </dl>
        {% if promo.applied %}
        <p class="ep-pricecard__promo">Promo <strong>{{ promo.code }}</strong> applied &mdash; {{ promo.description }} ({{ promo.discount }} off)</p>
        {% endif %}
      </div>
    </div>
  </div>

  <form class="ep-plancard__submit" method="post" action="/plans/select">
    <input type="hidden" name="preference" value="{{ selected.preference }}">
    <input type="hidden" name="people" value="{{ selected.people }}">
    <input type="hidden" name="recipes" value="{{ selected.recipes }}">
    {% if promo.applied %}<input type="hidden" name="promo" value="{{ promo.code }}">{% endif %}
    <button class="ep-cta ep-plancard__cta" type="submit">Select this plan</button>
  </form>
</section>

{# recipe-type carousel, 262x315 cards with the label overlaid #}
<section class="ep-flexmenu">
  <h2 class="ep-h2 ep-flexmenu__title">A flexible menu every week</h2>
  <p class="ep-flexmenu__lede">Simply select recipes after checkout or
    <a class="ep-link" href="/weekly-menu">view our complete weekly menus</a></p>
  <div class="ep-typecarousel">
    <button class="ep-typecarousel__arrow ep-typecarousel__arrow--prev" type="button"
            aria-label="Previous recipe types" data-carousel-prev="types">&#8249;</button>
    <ul class="ep-typecarousel__track" data-carousel="types">
      {% for card in recipe_types %}
      <li class="ep-typecard">
        <img src="{{ card.src }}" alt="{{ card.name }}" width="262" height="315" loading="lazy">
        <h2 class="ep-typecard__label">{{ card.name }}</h2>
      </li>
      {% endfor %}
    </ul>
    <button class="ep-typecarousel__arrow ep-typecarousel__arrow--next" type="button"
            aria-label="Next recipe types" data-carousel-next="types">&#8250;</button>
  </div>

  <form class="ep-promocard" method="get" action="/plans">
    <input type="hidden" name="preference" value="{{ selected.preference }}">
    <input type="hidden" name="people" value="{{ selected.people }}">
    <input type="hidden" name="recipes" value="{{ selected.recipes }}">
    <label class="ep-promocard__label" for="promo">Enter promo code</label>
    <div class="ep-promocard__row">
      <input class="ep-promocard__input" id="promo" name="promo" type="text" value="{{ promo.code or '' }}"
             {% if promo.error %}aria-invalid="true" aria-describedby="promo-error"{% endif %}>
      <button class="ep-promocard__apply" type="submit">Apply</button>
    </div>
    {% if promo.error %}<p class="ep-promocard__error" id="promo-error" role="alert">{{ promo.error }}</p>{% endif %}
  </form>

  <a class="ep-herobar" href="/plans?promo=HERO10&amp;people={{ selected.people }}&amp;recipes={{ selected.recipes }}">
    <strong>Special discount for heroes!</strong> Get the offer</a>
</section>

{# customer review band, with the source's Trustpilot attribution #}
<section class="ep-plansreviews">
  <h2 class="ep-h2 ep-plansreviews__title">We save you serious <span class="ep-plansreviews__word">money</span></h2>
  <blockquote class="ep-plansreviews__quote">
    <p>{{ review.body }}</p>
    <footer>- {{ review.author }}</footer>
  </blockquote>
  <p class="ep-plansreviews__source">Based on customer reviews on</p>
  {% if trustpilot %}<img class="ep-plansreviews__logo" src="{{ trustpilot }}" alt="Trustpilot" width="112" height="28">{% endif %}
</section>

{# FAQ accordion on the source's warm band #}
<section class="ep-plansfaq" id="plans-faq">
  <h2 class="ep-h2 ep-plansfaq__title">Got questions? We've got answers.</h2>
  <ul class="ep-accordion">
    {% for q in faqs %}
    <li class="ep-accordion__item"{% if q.open %} data-open="true"{% endif %}>
      <a class="ep-accordion__q" id="{{ q.id }}"
         href="{% if q.open %}#plans-faq{% else %}?{{ plan_query }}&amp;faq={{ q.id }}#{{ q.id }}{% endif %}"
         aria-expanded="{{ 'true' if q.open else 'false' }}" aria-controls="{{ q.id }}-a">
        <span>{{ q.question }}</span>
        <span class="ep-accordion__chev{% if q.open %} is-open{% endif %}" aria-hidden="true"></span>
      </a>
      {% if q.open and q.answer %}
      <div class="ep-accordion__a" id="{{ q.id }}-a"><p>{{ q.answer }}</p></div>
      {% endif %}
    </li>
    {% endfor %}
  </ul>
</section>
{% endblock %}