|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <link href='https://fonts.googleapis.com/css?family=Inter' rel='stylesheet'> |
| 7 | + <link rel="stylesheet" href="src/styles.css" /> |
| 8 | + <title>Pub/Sub rewind channel</title> |
| 9 | + </head> |
| 10 | + <body class="font-inter"> |
| 11 | + <div id="landing-page" class="min-h-screen flex items-center justify-center bg-gray-100"> |
| 12 | + <div class="bg-white p-8 rounded-lg shadow-lg w-96"> |
| 13 | + <h2 class="text-2xl mb-6 text-center">Live Football League Odds</h2> |
| 14 | + <p>Watch real-time odds movement for today's Football League match.</p> |
| 15 | + <div class="flex flex-col gap-4"> |
| 16 | + <button |
| 17 | + id="pre-load-odds" |
| 18 | + class="uk-btn uk-btn-primary uk-border-rounded-right whitespace-nowrap">Load Live Match Odds</button> |
| 19 | + </div> |
| 20 | + </div> |
| 21 | + </div> |
| 22 | + <div id="game" class="min-h-screen bg-gray-100 p-8" style="display: none;"> |
| 23 | + <div class="max-w-4xl mx-auto"> |
| 24 | + <div class="bg-white rounded-lg shadow-lg p-6 mb-8"> |
| 25 | + <div class="flex justify-between items-center text-2xl font-bold"> |
| 26 | + <span> |
| 27 | + <span class="hidden sm:inline">Royal Knights</span> |
| 28 | + <span class="sm:hidden">R K</span> |
| 29 | + </span> |
| 30 | + <span id="score" class="bg-gray-800 text-white px-4 py-2 rounded">0-0</span> |
| 31 | + <span> |
| 32 | + <span class="hidden sm:inline">North Rangers</span> |
| 33 | + <span class="sm:hidden">N R</span> |
| 34 | + </span> |
| 35 | + </div> |
| 36 | + </div> |
| 37 | + <div class="grid grid-cols-3 gap-6 mb-8"> |
| 38 | + <div class="bg-white rounded-lg shadow p-4"> |
| 39 | + <h3 class="text-lg font-semibold mb-2">Home Win</h3> |
| 40 | + <p id="current-home" class="text-3xl font-bold text-green-600">2.50</p> |
| 41 | + </div> |
| 42 | + <div class="bg-white rounded-lg shadow p-4"> |
| 43 | + <h3 class="text-lg font-semibold mb-2">Draw</h3> |
| 44 | + <p id="current-draw" class="text-3xl font-bold text-blue-600">3.42</p> |
| 45 | + </div> |
| 46 | + <div class="bg-white rounded-lg shadow p-4"> |
| 47 | + <h3 class="text-lg font-semibold mb-2">Away Win</h3> |
| 48 | + <p id="current-away" class="text-3xl font-bold text-red-600">2.87</p> |
| 49 | + </div> |
| 50 | + </div> |
| 51 | + <div class="bg-white rounded-lg shadow-lg p-6 mb-8"> |
| 52 | + <h2 class="text-xl font-bold mb-4">Next Goal</h2> |
| 53 | + <div class="grid grid-cols-3 gap-4"> |
| 54 | + <div class="bg-gray-50 p-4 rounded"> |
| 55 | + <h3 class="font-medium mb-2">Royal Knights</h3> |
| 56 | + <p id="next-goal-home" class="text-2xl font-bold">1.99</p> |
| 57 | + </div> |
| 58 | + <div class="bg-gray-50 p-4 rounded"> |
| 59 | + <h3 class="font-medium mb-2">North Rangers</h3> |
| 60 | + <p id="next-goal-away" class="text-2xl font-bold">1.91</p> |
| 61 | + </div> |
| 62 | + <div class="bg-gray-50 p-4 rounded"> |
| 63 | + <h3 class="font-medium mb-2">No Goal</h3> |
| 64 | + <p id="next-goal-none" class="text-2xl font-bold">2.66</p> |
| 65 | + </div> |
| 66 | + </div> |
| 67 | + </div> |
| 68 | + <div class="bg-white rounded-lg shadow-lg p-6"> |
| 69 | + <h2 class="text-xl font-bold mb-4">Odds Movement History</h2> |
| 70 | + <div id="history" class="space-y-4"> |
| 71 | + <div class="border-b pb-2"> |
| 72 | + <div class="flex justify-between text-sm text-gray-600"> |
| 73 | + <span>Home: 2.50</span> |
| 74 | + <span>Draw: 3.42</span> |
| 75 | + <span>Away: 2.87</span> |
| 76 | + <span>11:38:06</span> |
| 77 | + </div> |
| 78 | + </div> |
| 79 | + </div> |
| 80 | + </div> |
| 81 | + </div> |
| 82 | + </div> |
| 83 | + <script type="module" src="src/script.ts"></script> |
| 84 | + </body> |
| 85 | +</html> |
0 commit comments