@@ -28,11 +28,17 @@ import { usePusher } from '@utils/hooks/usePusher';
2828import { useStore } from '@utils/hooks/useStore' ;
2929import { ChannelName , Event } from '@utils/pusher' ;
3030import { getStyles } from '@utils/theme' ;
31+ import Head from 'next/head' ;
3132import Image from 'next/image' ;
3233import NextLink from 'next/link' ;
3334import { NextSeo , VideoGameJsonLd } from 'next-seo' ;
3435import { 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+
3642function 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