67 lines
2.1 KiB
HTML
67 lines
2.1 KiB
HTML
<!doctype html>
|
|
<html lang="fr">
|
|
<head>
|
|
<title>Détail tournoi — Super Sunday</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" />
|
|
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>Détail du tournoi</h1>
|
|
<nav>
|
|
<a href="/">Accueil</a>
|
|
<a href="/events" class="active">Événements</a>
|
|
<a href="/admin">Admin</a>
|
|
</nav>
|
|
</header>
|
|
|
|
<main class="container">
|
|
<section class="card accent" style="padding:22px; margin:8px 0 18px;">
|
|
<div class="kicker">Super Sunday</div>
|
|
<h2 class="hero-title" id="ttitle">Tournoi</h2>
|
|
<p class="muted" id="tsub">Détails & participants</p>
|
|
</section>
|
|
|
|
<section>
|
|
<h2 class="section-title">Infos</h2>
|
|
<div id="info" class="card"></div>
|
|
</section>
|
|
<section>
|
|
<h2 class="section-title">Participants</h2>
|
|
<div id="participants"></div>
|
|
</section>
|
|
<section>
|
|
<h2 class="section-title">Matches</h2>
|
|
<div id="matchlist"></div>
|
|
</section>
|
|
</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/tournament.js"></script>
|
|
<script>
|
|
(function(){
|
|
const params = new URLSearchParams(location.search);
|
|
const id = Number(params.get('id')||'0');
|
|
if(!id) return;
|
|
fetch('/api/tournaments/'+id).then(r=>r.json()).then(t=>{
|
|
if(t && t.name){
|
|
document.getElementById('ttitle').textContent = t.name;
|
|
const d = (t.start_date||'') + (t.end_date? ' → '+t.end_date : '');
|
|
document.getElementById('tsub').textContent = [t.location||'Lieu à venir', d].filter(Boolean).join(' • ');
|
|
}
|
|
}).catch(()=>{});
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html> |