-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
179 lines (167 loc) · 6.88 KB
/
index.html
File metadata and controls
179 lines (167 loc) · 6.88 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>EV Parlay Pro</title>
<meta name="description" content="Static GitHub Pages frontend for the EV Parlay Service backend." />
<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;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="page-shell">
<header class="hero">
<div class="hero__content">
<span class="eyebrow">GitHub Pages Frontend</span>
<h1>EV Parlay Pro</h1>
<p class="hero__subtitle">
A static site for browsing odds, checking API health, and testing your EV Parlay backend without Discord.
</p>
<div class="hero__actions">
<a class="btn btn--primary" href="#dashboard">Open Dashboard</a>
<a class="btn btn--ghost" href="#deploy">Deploy Steps</a>
</div>
</div>
<div class="hero__card">
<div class="stat-card">
<span class="stat-card__label">Backend</span>
<strong id="apiBasePreview">https://gamblebotapi.onrender.com</strong>
</div>
<div class="stat-grid">
<div class="stat-box">
<span>Endpoint</span>
<strong>/odds</strong>
</div>
<div class="stat-box">
<span>Method</span>
<strong>GET</strong>
</div>
<div class="stat-box">
<span>Endpoint</span>
<strong>/ev_parlays</strong>
</div>
<div class="stat-box">
<span>Method</span>
<strong>POST</strong>
</div>
</div>
</div>
</header>
<main>
<section id="dashboard" class="panel panel--large">
<div class="section-heading">
<div>
<span class="eyebrow">Live Tester</span>
<h2>Frontend dashboard</h2>
</div>
<button class="btn btn--ghost" id="clearOutputBtn" type="button">Clear Output</button>
</div>
<div class="grid grid--settings">
<label class="field field--full">
<span>API base URL</span>
<input id="apiBase" type="url" value="https://gamblebotapi.onrender.com" placeholder="https://your-backend.onrender.com" />
</label>
<label class="field field--full">
<span>X-API-Key (optional)</span>
<input id="apiKey" type="password" placeholder="Only needed if your backend enforces X-API-Key" />
<small>This stays in your browser session only. Do not hardcode secret keys into GitHub Pages.</small>
</label>
</div>
<div class="grid grid--cards">
<article class="tool-card">
<div class="tool-card__header">
<h3>Health Check</h3>
<span class="badge">GET /healthz</span>
</div>
<p>Verify the backend is awake and reachable.</p>
<button class="btn btn--primary" id="healthBtn" type="button">Check Health</button>
</article>
<article class="tool-card">
<div class="tool-card__header">
<h3>Odds Lookup</h3>
<span class="badge">GET /odds</span>
</div>
<div class="grid grid--compact">
<label class="field">
<span>Sport</span>
<select id="sport">
<option value="NBA">NBA</option>
<option value="NFL">NFL</option>
<option value="NHL">NHL</option>
</select>
</label>
<label class="field">
<span>Window (minutes)</span>
<input id="windowMinutes" type="number" min="1" value="240" />
</label>
<label class="field field--full">
<span>Books</span>
<input id="books" type="text" placeholder="FD,DK,MGM" />
<small>Comma-separated books. Leave blank for all.</small>
</label>
</div>
<button class="btn btn--primary" id="oddsBtn" type="button">Load Odds</button>
</article>
<article class="tool-card">
<div class="tool-card__header">
<h3>EV Parlays</h3>
<span class="badge">POST /ev_parlays</span>
</div>
<p>Trigger the current parlay endpoint. Your backend currently returns a placeholder payload.</p>
<button class="btn btn--primary" id="parlaysBtn" type="button">Run Parlay Scan</button>
</article>
<article class="tool-card">
<div class="tool-card__header">
<h3>Log Result</h3>
<span class="badge">POST /log_result</span>
</div>
<p>Send a test request to the result logger endpoint.</p>
<button class="btn btn--primary" id="logBtn" type="button">Send Test Log</button>
</article>
</div>
<div class="output-wrap">
<div class="output-header">
<h3>Response</h3>
<span id="statusPill" class="status-pill">Idle</span>
</div>
<pre id="output">Ready.</pre>
</div>
</section>
<section class="grid grid--info">
<article class="panel">
<span class="eyebrow">What changed</span>
<h2>Discord bot → web app</h2>
<ul class="clean-list">
<li>The Discord commands are replaced by buttons and form inputs.</li>
<li>The backend still stays in Python on Render or another host.</li>
<li>This static site can be hosted directly from GitHub Pages.</li>
</ul>
</article>
<article class="panel">
<span class="eyebrow">Important</span>
<h2>API key warning</h2>
<p>
GitHub Pages is public static hosting. If you bake an API key into the JavaScript, anyone can see it.
Use public endpoints, add your key manually in the form, or put auth behind a proper backend layer.
</p>
</article>
</section>
<section id="deploy" class="panel">
<span class="eyebrow">Deploy</span>
<h2>How to publish this on GitHub Pages</h2>
<ol class="steps">
<li>Add this <code>docs</code> folder to your repository.</li>
<li>Push to GitHub.</li>
<li>Open <strong>Settings → Pages</strong>.</li>
<li>Set the source to <strong>Deploy from a branch</strong>.</li>
<li>Select branch <strong>main</strong> and folder <strong>/docs</strong>.</li>
<li>Save. Your site will publish at your GitHub Pages URL.</li>
</ol>
</section>
</main>
</div>
<script src="script.js"></script>
</body>
</html>