diff --git a/image-loader.js b/image-loader.js new file mode 100644 index 0000000..e5847f0 --- /dev/null +++ b/image-loader.js @@ -0,0 +1,11 @@ +const cdnUrl = 'https://balatromp.b-cdn.net' + +export default function bunnyLoader({ src, width, quality }) { + if (!cdnUrl) { + throw new Error('missing NEXT_PUBLIC_CDN_URL env variable.') + } + const params = new URLSearchParams() + params.set('width', width.toString()) + params.set('quality', (quality || 100).toString()) + return `${cdnUrl}${src}?${params.toString()}` +} diff --git a/next.config.mjs b/next.config.mjs index 9ea1256..84760ba 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -10,6 +10,10 @@ const withMDX = createMDX() /** @type {import("next").NextConfig} */ const config = { output: 'standalone', + images: { + loader: 'custom', + loaderFile: './image-loader.js', + }, } const withNextIntl = createNextIntlPlugin() export default withNextIntl(withMDX(config)) diff --git a/src/app/(home)/log-parser/page.tsx b/src/app/(home)/log-parser/page.tsx index 98aa795..2c07741 100644 --- a/src/app/(home)/log-parser/page.tsx +++ b/src/app/(home)/log-parser/page.tsx @@ -928,7 +928,10 @@ export default function LogParser() {
- +
)} diff --git a/src/app/(home)/support-us/page.tsx b/src/app/(home)/support-us/page.tsx index 730a9cb..9e15f2c 100644 --- a/src/app/(home)/support-us/page.tsx +++ b/src/app/(home)/support-us/page.tsx @@ -1,32 +1,85 @@ -import { ExternalLink } from 'lucide-react' +import { CircleDollarSign, Coffee, ExternalLink, Heart } from 'lucide-react' import Link from 'next/link' +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from '@/components/ui/card' export default async function SupportUsPage() { return ( -
-
-

Support us

-

- - Support Multiplayer Mod development{' '} - - +

+
+

Support Us

+

+ Your support helps us continue developing and maintaining Balatro Multiplayer

-

- - Support the development of this website{' '} - - +

+ +
+ + +
+ +
+
+ Support Multiplayer Mod + Help fund the development of the Balatro Multiplayer Mod +
+
+ +

+ Your contribution helps us add new features, fix bugs, and maintain the multiplayer experience for everyone. +

+
+ + + Support on Ko-fi + + +
+ + + +
+ +
+
+ Support This Website + Help fund the development and hosting of this website +
+
+ +

+ Your contribution helps us improve the website, add new features, and keep the servers running smoothly. +

+
+ + + Support on Ko-fi + + +
+
+ +
+ +

Why Your Support Matters

+

+ Balatro Multiplayer is a community-driven project maintained by volunteers. Your support directly contributes to server costs, development time, and the continued improvement of the multiplayer experience for all players.

diff --git a/src/app/_components/joker-card.tsx b/src/app/_components/joker-card.tsx index 6d8ca69..cb2d1ae 100644 --- a/src/app/_components/joker-card.tsx +++ b/src/app/_components/joker-card.tsx @@ -19,6 +19,8 @@ export function JokerCard({ name, img, h = 3 }: JokerCardProps) { > diff --git a/src/components/optimized-image.tsx b/src/components/optimized-image.tsx index 4911a63..d63387e 100644 --- a/src/components/optimized-image.tsx +++ b/src/components/optimized-image.tsx @@ -1,14 +1,8 @@ 'use client' -import { CDN_URL } from '@/shared/constants' +import Image from 'next/image' import type { ComponentPropsWithoutRef } from 'react' -export function OptimizedImage(props: ComponentPropsWithoutRef<'img'>) { - const isDev = process.env.NODE_ENV === 'development' - - if (isDev) { - return - } - - return {props.alt} +export function OptimizedImage(props: ComponentPropsWithoutRef) { + return }