File size: 5,846 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
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
{% extends "family_base.html" %}
{% import "_family_ui.html" as fam %}
{# /contest/.
   contest-desktop: a pale checkered field behind the whole page; a centred
   trophy, title and one-line lead; a 400x250 orange card beside a 350x230
   purple card; a "Sponsor a Contest" line; and below that a 320px global
   ranking column beside a 538px tabbed panel of past contests with a pager.
   contest-mobile keeps the same order and scrolls the two hero cards
   sideways instead of shrinking them. #}
{% block main %}
<div class="lc-contest">
  <header class="lc-contest__hero">
    <p class="lc-contest__ribbonrow">
      <a class="lc-contest__ribbon" href="/store/">
        <svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" focusable="false"><path d="M2 6h12v7.5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1Z" fill="none" stroke="currentColor" stroke-width="1.2"/><path d="M1.5 3.5h13V6h-13Z" fill="none" stroke="currentColor" stroke-width="1.2"/><path d="M8 3.5v11" stroke="currentColor" stroke-width="1.2"/></svg>
        Unbox surprise
      </a>
    </p>
    <svg class="lc-contest__trophy" viewBox="0 0 140 130" width="128" height="118" role="img" aria-label="Contest trophy">
      <path d="M36 12h68v34a34 34 0 0 1-68 0Z" fill="rgb(245, 176, 32)"/>
      <path d="M36 12h34v68a34 34 0 0 1-34-34Z" fill="rgb(253, 201, 84)"/>
      <path d="M36 20H22a16 16 0 0 0 16 30M104 20h14a16 16 0 0 1-16 30" fill="none" stroke="rgb(228, 156, 22)" stroke-width="7"/>
      <rect x="60" y="78" width="20" height="24" fill="rgb(228, 156, 22)"/>
      <rect x="40" y="100" width="60" height="10" rx="3" fill="rgb(206, 138, 14)"/>
      <rect x="32" y="110" width="76" height="12" rx="4" fill="rgb(228, 156, 22)"/>
      <path d="M79 30a9 9 0 1 0-4 12l-5-5" fill="none" stroke="#ffffff" stroke-width="4.4" stroke-linecap="round"/>
    </svg>
    <h1 class="lc-contest__title">{{ heading }}</h1>
    <p class="lc-contest__lead">{{ lead }}</p>

    <ul class="lc-contest__cards">
      {% for card in upcoming %}
      <li>
        <a class="lc-contest__card{% if not loop.first %} lc-contest__card--secondary{% endif %}" href="{{ card.href }}">
          <span class="lc-contest__cardart">
            <span class="lc-contest__countdown">
              <svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path d="M4.5 2h7M4.5 14h7M5.5 2v2.5L8 7l2.5-2.5V2M5.5 14v-2.5L8 9l2.5 2.5V14" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/></svg>
              Scheduled
            </span>
          </span>
          <span class="lc-contest__cardfoot">
            <span>
              <span class="lc-contest__cardname">{{ card.name }}</span>
              <span class="lc-contest__cardwhen">{{ card.starts }}</span>
            </span>
            <span class="lc-contest__bell" aria-hidden="true">
              <svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true" focusable="false"><path d="M8 2a4 4 0 0 0-4 4v3l-1.2 2.2h10.4L12 9V6a4 4 0 0 0-4-4Z" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linejoin="round"/><path d="M6.4 13a1.7 1.7 0 0 0 3.2 0" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round"/></svg>
            </span>
          </span>
        </a>
      </li>
      {% endfor %}
    </ul>

    <a class="lc-contest__sponsor" href="/business/contact/">
      <svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" focusable="false"><rect x="1.5" y="4" width="13" height="9" rx="2" fill="none" stroke="currentColor" stroke-width="1.3"/><path d="M6 4V2.5h4V4" fill="none" stroke="currentColor" stroke-width="1.3"/></svg>
      Sponsor a Contest
    </a>
  </header>

  <div class="lc-contest__main">
    <section aria-label="Global ranking">
      <p class="lc-contest__toggle"><span class="is-active">GLOBAL</span><span>LLM</span></p>
      <ul class="lc-rank">
        {% for row in ranking %}
        <li>
          {% if row.href %}
          <a class="lc-rank__row" href="{{ row.href }}">
            <span class="lc-rank__place">{{ row.place }}</span>
            <span class="lc-rank__name">{{ row.name }}</span>
            <span class="lc-rank__stat">{{ row.stat }}</span>
          </a>
          {% else %}
          <div class="lc-rank__row">
            <span class="lc-rank__place">{{ row.place }}</span>
            <span class="lc-rank__name lc-rank__plain">{{ row.name }}</span>
            <span class="lc-rank__stat">{{ row.stat }}</span>
          </div>
          {% endif %}
        </li>
        {% endfor %}
      </ul>
      <p class="lc-rank__more">{{ ranking_note }}</p>
    </section>

    <section class="lc-contest__panel" aria-label="Past contests">
      <p class="lc-contest__tabs">
        <span class="lc-contest__tab is-active">Past Contests</span>
        <a class="lc-contest__tab" href="{{ my_contests_href }}">My Contests</a>
      </p>
      <ul class="lc-contest__list">
        {% for row in past %}
        <li>
          <a class="lc-contest__row" href="{{ row.href }}">
            <span class="lc-contest__thumb{% if row.biweekly %} lc-contest__thumb--biweekly{% endif %}" aria-hidden="true"></span>
            <span>
              <span class="lc-contest__rowname">{{ row.name }}</span>
              <span class="lc-contest__rowwhen">{{ row.starts }}</span>
            </span>
            <span class="lc-contest__score">{{ row.score }}</span>
            <span class="lc-contest__virtual">Virtual</span>
          </a>
        </li>
        {% endfor %}
      </ul>
      <p class="lc-contest__pager">
        <span class="is-active">1</span><span>of</span><span>{{ pages }}</span>
      </p>
    </section>
  </div>

  <div class="lc-body">
    {{ fam.boundary(boundary) }}
    {{ fam.provenance(provenance) }}
  </div>
</div>
{% endblock %}