Skip to content

Commit 094f712

Browse files
committed
feat: v1.4.0 - ko-fi support button
1 parent 1e951f3 commit 094f712

File tree

5 files changed

+52
-4
lines changed

5 files changed

+52
-4
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- 🌏 Localization - language features for diverse player bases (Indonesian, Chinese, etc.)
1213
- Add feature for majority vote to end game and return to lobby
1314
- Add bot players option for multiplayer games
1415
- Improved bot skill
1516
- More to come soon!
1617

18+
## [1.4.0] - 2025-10-27
19+
20+
### Added
21+
22+
- Ko-fi support link/text!
23+
24+
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/X8X31NFVB9)
25+
1726
## [1.3.1] - 2025-10-05
1827

1928
### Changed
@@ -104,6 +113,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
104113
- All existing functionality as of 10-22-2023
105114

106115
[unreleased]: https://github.com/AdoryVo/big-two/compare/v1.1.0...HEAD
116+
[1.4.0]: https://github.com/AdoryVo/big-two/releases/tag/v1.4.0
107117
[1.3.1]: https://github.com/AdoryVo/big-two/releases/tag/v1.3.1
108118
[1.3.0]: https://github.com/AdoryVo/big-two/releases/tag/v1.3.0
109119
[1.2.1]: https://github.com/AdoryVo/big-two/releases/tag/v1.2.1

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# ♠️ big-two
22

3+
Help fund database/server costs to keep the site ad-free and supporting thousands of users!
4+
5+
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/X8X31NFVB9)
6+
37
## 🚀 Getting Started
48

59
### Installation

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "big-two",
3-
"version": "1.3.1",
3+
"version": "1.4.0",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

src/components/Version.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function Version(props: TextProps) {
1616
href="https://github.com/AdoryVo/big-two/blob/main/CHANGELOG.md"
1717
isExternal
1818
>
19-
v1.3.1
19+
v1.4.0
2020
</Link>
2121
</Text>
2222
</Tooltip>

src/pages/index.tsx

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,17 @@ import { usePusher } from '@utils/hooks/usePusher';
2828
import { useStore } from '@utils/hooks/useStore';
2929
import { ChannelName, Event } from '@utils/pusher';
3030
import { getStyles } from '@utils/theme';
31+
import Head from 'next/head';
3132
import Image from 'next/image';
3233
import NextLink from 'next/link';
3334
import { NextSeo, VideoGameJsonLd } from 'next-seo';
3435
import { useEffect } from 'react';
3536

37+
const KOFI_WIDGET = `<script type='text/javascript'>
38+
kofiwidget2.init('Support Big Two on Ko-fi', '#72a4f2', 'X8X31NFVB9');
39+
kofiwidget2.draw();
40+
</script>`;
41+
3642
function compareByNewest(lobby1: Date, lobby2: Date) {
3743
return new Date(lobby2).getTime() - new Date(lobby1).getTime();
3844
}
@@ -111,6 +117,9 @@ export default function Home() {
111117
keywords="cards, game, multiplayer"
112118
image="https://bigtwo.vercel.app/assets/site-preview.png"
113119
/>
120+
<Head>
121+
<script src="https://storage.ko-fi.com/cdn/widget/Widget_2.js" />
122+
</Head>
114123
<Version {...styles.text} />
115124

116125
<Container maxW="5xl" textAlign="center" p={5}>
@@ -119,13 +128,38 @@ export default function Home() {
119128
</Heading>
120129
<CreateLobby closeToast={toast.closeAll} />
121130
<Preferences />
122-
<Box>
131+
<Box mb={4}>
123132
<NextLink href={'/game/singleplayer'} passHref>
124-
<Button colorScheme="blue" onClick={() => toast.closeAll()}>
133+
<Button
134+
colorScheme="blue"
135+
shadow="1px 1px black"
136+
onClick={() => toast.closeAll()}
137+
>
125138
Singleplayer mode 🤖
126139
</Button>
127140
</NextLink>
128141
</Box>
142+
<Box>
143+
<Text {...styles.text} mb={1}>
144+
👋 If you've been enjoying <b>Big Two</b>, donations towards
145+
database/server costs
146+
<br />
147+
to keep the site ad-free and supporting thousands of users are
148+
greatly appreciated!
149+
<br />
150+
Feedback & suggestions via{' '}
151+
<Link
152+
href="https://forms.gle/jPd276dcsLVPswBZ7"
153+
target="_blank"
154+
textDecoration="underline"
155+
>
156+
this form
157+
</Link>{' '}
158+
are also appreciated!
159+
</Text>
160+
{/* biome-ignore lint/security/noDangerouslySetInnerHtml: Ko-fi button widget */}
161+
<div dangerouslySetInnerHTML={{ __html: KOFI_WIDGET }} />
162+
</Box>
129163

130164
{/* Lobbies */}
131165
<Heading {...styles.text} size="lg" my={5}>

0 commit comments

Comments
 (0)