🚀 Patch auto
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
<!doctype html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<title>Super Sunday — Accueil</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/assets/style.css?v=4" />
|
||||
|
||||
<title>Super Sunday — Accueil</title>
|
||||
<link rel="stylesheet" href="/assets/style.css?v=8" />
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
@@ -19,36 +15,22 @@
|
||||
<a href="/admin">Admin</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="container">
|
||||
<div class="card accent" style="padding:22px; margin:8px 0 18px;">
|
||||
<div class="kicker">Tournoi du dimanche</div>
|
||||
<h2 class="hero-title">Padel, ambiance & performance</h2>
|
||||
<p class="muted" style="margin:6px 0 0">Inscriptions, poules Americano, scores en direct.</p>
|
||||
<div class="cta-row" style="display:flex; gap:12px; flex-wrap:wrap; margin-top:12px">
|
||||
<a class="btn" href="/events">Voir les événements</a>
|
||||
<a class="btn-outline" href="/admin">Espace organisateur</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section>
|
||||
<h2 class="section-title">Tournois</h2>
|
||||
<div id="tournaments"></div>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2 class="section-title">Matches</h2>
|
||||
<div id="matches" class="empty">Aucun match</div>
|
||||
</section>
|
||||
<h2 class="section-title">Tournois</h2>
|
||||
<div id="tournaments"></div>
|
||||
</main>
|
||||
|
||||
<div class="bg-bubble b1"></div>
|
||||
<div class="bg-bubble b2"></div>
|
||||
<div class="bg-bubble b3"></div>
|
||||
<div class="bg-bubble b4"></div>
|
||||
<div class="bg-bubble b5"></div>
|
||||
|
||||
<script src="/assets/api.js"></script>
|
||||
<script src="/assets/main.js"></script>
|
||||
<script type="module">
|
||||
import { listTournaments } from '/assets/api.js?v=8';
|
||||
(async()=>{
|
||||
const root=document.getElementById('tournaments');
|
||||
const ts=await listTournaments().catch(()=>[]);
|
||||
root.innerHTML=ts.map(t=>
|
||||
`<a class="card event-card" href="/tournament?id=${t.id}">
|
||||
<h3>${t.name}</h3>
|
||||
<p class="muted">${[t.location||'—',t.start_date].filter(Boolean).join(' • ')}</p>
|
||||
</a>`
|
||||
).join('') || '<div class="empty">Aucun tournoi</div>';
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user