Skip to content

Commit e0b7f5d

Browse files
chore: add game prune info & source code link
1 parent 39fd751 commit e0b7f5d

File tree

3 files changed

+35
-3
lines changed

3 files changed

+35
-3
lines changed

game/next.config.mjs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {};
2+
const nextConfig = {
3+
images: {
4+
remotePatterns: [
5+
{
6+
protocol: "https",
7+
hostname: "assets.stackrlabs.xyz",
8+
pathname: "/**",
9+
},
10+
],
11+
},
12+
};
313

414
export default nextConfig;

game/src/components/footer.tsx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,24 @@ export const Footer = () => {
1212
<Link href="https://stackrlabs.xyz" target="_blank" passHref>
1313
<Image
1414
src={`https://assets.stackrlabs.xyz/light.svg`}
15-
width={100}
16-
height={100}
15+
width={72}
16+
height={72}
1717
alt="stackr-logo"
1818
/>
19+
</Link>{" "}
20+
<p className="mx-2">|</p>
21+
<Link
22+
className="flex gap-2 items-center"
23+
href="https://github.com/stackrlabs/dchess"
24+
target="_blank"
25+
>
26+
Source Code
27+
<Image
28+
src={`https://assets.stackrlabs.xyz/github-white.svg`}
29+
width={18}
30+
height={18}
31+
alt="GitHub Logo"
32+
/>
1933
</Link>
2034
</footer>
2135
);

game/src/components/games-table.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Button } from "@/components/ui/button";
66
import { useAddress } from "@/hooks/useAddress";
77
import { formatHash } from "@/lib/utils";
88
import { usePrivy } from "@privy-io/react-auth";
9+
import { InfoIcon } from "lucide-react";
910
import { useRouter } from "next/navigation";
1011
import { useState } from "react";
1112
import { Chessboard } from "react-chessboard";
@@ -152,6 +153,13 @@ export const GameTable = () => {
152153
{walletAddress && (
153154
<div className="mt-4">
154155
<h1 className="text-2xl font-mono">My Games</h1>
156+
157+
<div className="py-2 text-blue-200 text-sm font-mono flex gap-2 text-center align-middle items-center">
158+
<InfoIcon className="inline" size={16} />
159+
If no one joins a created game within a certain period, it is
160+
automatically pruned from the rollup state.
161+
</div>
162+
155163
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 mt-4">
156164
{myGames.length ? (
157165
myGames.map(renderGame)

0 commit comments

Comments
 (0)