Spaces:
Sleeping
Sleeping
| {% extends 'base.html' %} | |
| {% block title %}Home – {{ app_brand }}{% endblock %} | |
| {% block head %} | |
| <style> | |
| .home-wrap { max-width: 620px; } | |
| .home-hero { | |
| position: relative; | |
| overflow: hidden; | |
| border-color: rgba(249,115,22,0.28); | |
| background: | |
| radial-gradient(circle at 10% 10%, rgba(249,115,22,0.18), transparent 48%), | |
| radial-gradient(circle at 90% 20%, rgba(59,130,246,0.14), transparent 44%), | |
| linear-gradient(165deg, var(--card), #0f182b); | |
| } | |
| .home-hero:after { | |
| content: ""; | |
| position: absolute; | |
| inset: 0; | |
| pointer-events: none; | |
| background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.03) 45%, transparent 100%); | |
| } | |
| .home-hero-inner { position: relative; z-index: 1; text-align: center; } | |
| .home-title { font-size: 2rem; letter-spacing: 3px; } | |
| .home-sub { | |
| font-size: 0.95rem; | |
| color: var(--muted2); | |
| margin-top: 0.75rem; | |
| line-height: 1.45; | |
| } | |
| .home-chip-row { | |
| display: flex; | |
| justify-content: center; | |
| gap: 0.5rem; | |
| flex-wrap: wrap; | |
| margin-top: 1rem; | |
| } | |
| .home-chip { | |
| font-size: 0.72rem; | |
| letter-spacing: 0.05em; | |
| padding: 0.3rem 0.55rem; | |
| border-radius: 999px; | |
| border: 1px solid var(--border); | |
| background: rgba(10,14,26,0.45); | |
| color: var(--muted2); | |
| } | |
| .identity-panel { border-color: rgba(148,163,184,0.28); } | |
| .current-user-panel { | |
| text-align: center; | |
| padding: 1rem; | |
| border: 1px solid rgba(34,197,94,0.28); | |
| border-radius: var(--radius-sm); | |
| background: rgba(34,197,94,0.06); | |
| margin-bottom: 1rem; | |
| } | |
| </style> | |
| {% endblock %} | |
| {% block content %} | |
| <div class="page home-wrap"> | |
| <div class="card home-hero" style="margin-bottom:1.25rem;"> | |
| <div class="home-hero-inner"> | |
| <div style="font-size:2.4rem; margin-bottom:0.35rem;">🏏</div> | |
| <div class="page-title home-title"> | |
| DIS <span style="color:var(--white);">IPL</span> <span style="color:var(--gold);">2026</span> | |
| </div> | |
| <div style="font-size:1.02rem; color:var(--orange); font-weight:700; margin-top:0.35rem;">DIS IPL Match Predictions</div> | |
| <div class="home-sub">🏆 {{ app_tagline }} 🏏</div> | |
| <div class="home-chip-row"> | |
| <span class="home-chip">Team pool</span> | |
| <span class="home-chip">Match-day picks</span> | |
| <span class="home-chip">Live leaderboard</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="card identity-panel"> | |
| <div class="card-title">WHO ARE YOU?</div> | |
| {% if current_user %} | |
| <div class="current-user-panel"> | |
| <div style="font-size:0.82rem; color:var(--muted2);">You’re signed in as</div> | |
| <div style="font-size:1.28rem; font-weight:700; color:var(--orange); margin-top:0.25rem;">{{ current_user.display_name or current_user.username }}</div> | |
| <a href="{{ url_for('dashboard') }}" class="btn btn-primary" style="margin-top:0.9rem; width:100%; max-width:310px; justify-content:center;">Open app — today’s matches</a> | |
| <div style="font-size:0.8rem; color:var(--muted); margin-top:0.8rem;">Switch user? Select another teammate 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.9rem;">Let’s go →</button> | |
| </form> | |
| <p style="margin-top:1rem; font-size:0.8rem; color:var(--muted); text-align:center;"> | |
| New teammate? Ask your admin to add you to the team roster. | |
| </p> | |
| <p style="margin-top:0.5rem; font-size:0.8rem; text-align:center;"> | |
| {% if admin_login_configured %} | |
| <a href="{{ url_for('admin_login', next=url_for('admin')) }}" style="color:var(--orange);">🔐 Admin login</a> | |
| {% else %} | |
| <span style="color:var(--muted);">Admin login is not enabled yet.</span> | |
| {% endif %} | |
| </p> | |
| </div> | |
| </div> | |
| {% endblock %} | |