Skip to content

Commit 07a2b6b

Browse files
committed
feat: add Ko-fi support button to sidebar
1 parent 05efafa commit 07a2b6b

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
<!-- changelog-id: 6 -->
1+
<!-- changelog-id: 7 -->
22
# Changelog
33

4+
## 2026-02-23 — Ko-fi Support Button
5+
A "Support me on Ko-fi" button now appears in the sidebar, if you'd like to
6+
help keep the servers running.
7+
8+
[View changes](https://github.com/jackharrhy/where-the-plow/compare/05efafa...5184464)
9+
410
## 2026-02-23 — Multi-Source Tracking
511
The map now tracks plows from Mount Pearl and the Provincial fleet alongside
612
St. John's. Toggle sources on and off from the legend, or zoom into a specific

src/where_the_plow/static/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ <h3>where the plow</h3>
231231
</div>
232232
</div>
233233
</div>
234+
<div id="kofi-container"></div>
234235
<div id="panel-footer">
235236
Data from
236237
<a
@@ -433,6 +434,11 @@ <h2>What's New</h2>
433434
<div id="changelog-content">Loading...</div>
434435
</div>
435436
</div>
437+
<script src="https://storage.ko-fi.com/cdn/widget/Widget_2.js"></script>
438+
<script>
439+
kofiwidget2.init('Support me on Ko-fi', '#4d0e0e', 'N4N0OLPJS');
440+
document.getElementById('kofi-container').innerHTML = kofiwidget2.getHTML();
441+
</script>
436442
<script src="/static/app.js"></script>
437443
</body>
438444
</html>

src/where_the_plow/static/style.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,19 @@ body {
353353
display: none;
354354
}
355355

356+
/* ── Ko-fi widget ──────────────────────────────────── */
357+
358+
#kofi-container {
359+
margin-top: 10px;
360+
padding-top: 10px;
361+
border-top: var(--border-subtle);
362+
text-align: center;
363+
}
364+
365+
#kofi-container .btn-container {
366+
display: inline-block !important;
367+
}
368+
356369
/* ── Panel footer ──────────────────────────────────── */
357370

358371
#panel-footer {

0 commit comments

Comments
 (0)