File size: 2,577 Bytes
60e9d75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{% extends 'base.html' %}
{% block title %}Home – {{ app_brand }}{% endblock %}
{% block content %}
<div class="page" style="max-width:520px;">
  <div class="card" style="text-align:center; margin-bottom:1.5rem; border-color:rgba(249,115,22,0.25);">
    <div style="font-size:2.5rem; margin-bottom:0.5rem;">🏏</div>
    <div class="page-title" style="font-size:1.75rem; letter-spacing:3px;">
      DIS <span style="color:var(--white);">IPL</span> <span style="color:var(--gold);">2026</span>
    </div>
    <div style="font-size:1rem; color:var(--orange); font-weight:600; margin-top:0.5rem;">DIS IPL Match Predictions</div>
    <div class="page-subtitle" style="margin-top:0.75rem;">🏆 {{ app_tagline }} 🏏</div>
    <div style="font-size:0.88rem; color:var(--muted2); margin-top:0.75rem;">Pick your name to track predictions &amp; points.</div>
  </div>

  <div class="card">
    <div class="card-title">WHO ARE YOU?</div>
    {% if current_user %}
    <div style="text-align:center; padding-bottom:1.25rem; margin-bottom:1.25rem; border-bottom:1px solid var(--border);">
      <div style="font-size:0.85rem; color:var(--muted2);">You’re signed in as</div>
      <div style="font-size:1.2rem; font-weight:700; color:var(--orange); margin-top:0.35rem;">{{ current_user.display_name or current_user.username }}</div>
      <a href="{{ url_for('dashboard') }}" class="btn btn-primary" style="margin-top:1rem; width:100%; max-width:280px; justify-content:center;">Open app — today’s matches</a>
      <div style="font-size:0.8rem; color:var(--muted); margin-top:1rem;">Someone else on this device? Pick their name below.</div>
    </div>
    {% endif %}
    <form method="post" action="{{ url_for('index') }}">
      <input type="hidden" name="remember" value="1">
      <div class="form-group">
        <label for="member_key">Team member</label>
        <select name="member_key" id="member_key" required>
          <option value="">Select your name…</option>
          {% for m in members %}
          <option value="{{ m.key }}"
            {% if suggested and suggested.member_key == m.key %}selected{% endif %}>
            {{ m.display_name or m.key }}
          </option>
          {% endfor %}
        </select>
      </div>
      <button type="submit" class="btn btn-primary" style="width:100%; justify-content:center; padding:0.85rem;">Let’s go →</button>
    </form>
    <p style="margin-top:1.25rem; font-size:0.8rem; color:var(--muted);">
      New teammate? Ask your admin to add you to the team roster.
    </p>
  </div>
</div>
{% endblock %}