File size: 2,679 Bytes
7f8e190
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{% extends "family_base.html" %}
{% import "_family_ui.html" as fam %}
{# Explore index and its section pages.
   explore-desktop: library rail plus rows of gradient card tiles, each tile
   captioned in white over the art with a Chapters / Items / progress footer
   below it. The mobile capture drops the rail and stacks the same tiles. #}
{% block main %}
<div class="lc-shell">
  {{ fam.rail(member, 'explore') }}
  <div class="lc-body">
    <header class="lc-dir__head">
      <p class="lc-dir__eyebrow">{{ eyebrow }}</p>
      <h1 class="lc-dir__title">{{ heading }}</h1>
      <p class="lc-dir__lead">{{ lead }}</p>
    </header>

    <section class="lc-explore__section">
      <div class="lc-explore__head">
        <h2 class="lc-explore__title">{{ cards_title }}</h2>
        <a class="lc-explore__more" href="/explore/">All sections</a>
      </div>
      {% if cards %}
      <ul class="lc-cards">
        {% for card in cards %}
        <li class="lc-card">
          {% if card.locked %}<span class="lc-card__lock">Premium</span>{% endif %}
          {% if card.href %}
          <a class="lc-card__art lc-card__art--{{ card.tint }}" href="{{ card.href }}">
            <span class="lc-card__caption">{{ card.caption }}</span>
          </a>
          {% else %}
          <span class="lc-card__art lc-card__art--{{ card.tint }}">
            <span class="lc-card__caption">{{ card.caption }}</span>
          </span>
          {% endif %}
          <p class="lc-card__foot">
            {% if card.chapters is not none %}<span><span class="lc-card__figure">{{ card.chapters }}</span> Chapters</span>{% endif %}
            {% if card["items"] is not none %}<span><span class="lc-card__figure">{{ card["items"] }}</span> Items</span>{% endif %}
            {% if card.locked %}<span>Locked</span>{% endif %}
          </p>
          {% if not card.href %}
          <p class="lc-card__boundary">No local page: the capture recorded this card in the index only.</p>
          {% endif %}
        </li>
        {% endfor %}
      </ul>
      {% else %}
      <p class="lc-empty">{{ empty }}</p>
      {% endif %}
    </section>

    <section class="lc-explore__section">
      <div class="lc-explore__head">
        <h2 class="lc-explore__title">Explore sections</h2>
      </div>
      <ul class="lc-dir__grid">
        {% for entry in sections %}
        <li class="lc-dir__row">
          <a href="{{ entry.href }}"><span>{{ entry.title }}</span><span class="lc-dir__meta">{{ entry.href }}</span></a>
        </li>
        {% endfor %}
      </ul>
    </section>

    {{ fam.boundary(boundary) }}
    {{ fam.provenance(provenance) }}
  </div>
</div>
{% endblock %}