mirror of
https://github.com/Such-Software/such.software.git
synced 2026-12-01 11:53:56 +01:00
Search Console shows such.software drawing clicks for "puzzle online", yet no page offered players a game to play. /games now lists the browser games with a Play online button each, and links from the header, footer and /apps. The Bauhaus Echo and Moon Launch "Play on Web" links pointed at retired hosts (moonlaunch.such.software no longer resolves); they now open play.bauhausecho.com and play.moonlaunch.space. Vegan IQ gains a link to its web app at app.veganiq.site. Each game page links to the game's own site. Game pages describe themselves as schema.org VideoGame with genre, platforms and a free Offer pointing at the playable build, and their titles name "free" and "play online". radiation.space's page gains the site's social card, which check-metadata required.
118 lines
3.7 KiB
TypeScript
118 lines
3.7 KiB
TypeScript
'use client';
|
|
|
|
import { FaApple, FaGooglePlay } from "react-icons/fa6";
|
|
import { Button } from "@repo/ui/components/button";
|
|
|
|
type StoreLink = {
|
|
platform: "apple" | "google";
|
|
/** Live store URL, or `null` to render a disabled "Coming Soon" button. */
|
|
href: string | null;
|
|
};
|
|
|
|
type StoreButtonsProps = {
|
|
links: StoreLink[];
|
|
extraLinks?: { href: string; label: string }[];
|
|
};
|
|
|
|
const platformConfig = {
|
|
apple: { icon: FaApple, label: "App Store" },
|
|
google: { icon: FaGooglePlay, label: "Google Play" },
|
|
} as const;
|
|
|
|
export function StoreButtons({ links, extraLinks }: StoreButtonsProps) {
|
|
return (
|
|
<div className="flex flex-wrap gap-4 not-prose">
|
|
{links.map(({ platform, href }) => {
|
|
const { icon: Icon, label } = platformConfig[platform];
|
|
if (href === null) {
|
|
return (
|
|
<Button key={platform} variant="outline" size="lg" disabled>
|
|
<Icon className="h-5 w-5 mr-2" aria-hidden="true" />
|
|
{label}: Coming Soon
|
|
</Button>
|
|
);
|
|
}
|
|
return (
|
|
<a key={platform} href={href} target="_blank" rel="noopener noreferrer">
|
|
<Button variant="outline" size="lg">
|
|
<Icon className="h-5 w-5 mr-2" aria-hidden="true" />
|
|
{label}
|
|
</Button>
|
|
</a>
|
|
);
|
|
})}
|
|
{extraLinks?.map(({ href, label }) => (
|
|
<a key={href} href={href} target="_blank" rel="noopener noreferrer">
|
|
<Button variant="outline" size="lg">
|
|
{label}
|
|
</Button>
|
|
</a>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
// Pre-configured components for use in MDX blog posts
|
|
export function VeganIqStoreButtons() {
|
|
return (
|
|
<StoreButtons links={[
|
|
{ platform: "google", href: "https://play.google.com/store/apps/details?id=com.veganiq.vegan_iq" },
|
|
{ platform: "apple", href: "https://apps.apple.com/us/app/vegan-iq-plant-based-trivia/id6761139580" },
|
|
]} extraLinks={[
|
|
{ href: "https://app.veganiq.site", label: "Play Online Free" },
|
|
]} />
|
|
);
|
|
}
|
|
|
|
export function SuchoiceStoreButtons() {
|
|
return (
|
|
<StoreButtons links={[
|
|
{ platform: "google", href: "https://play.google.com/store/apps/details?id=com.suchsoftware.suchoice" },
|
|
{ platform: "apple", href: "https://apps.apple.com/us/app/suchoice/id6759626658" },
|
|
]} />
|
|
);
|
|
}
|
|
|
|
export function SuchMoonLaunchStoreButtons() {
|
|
return (
|
|
<StoreButtons
|
|
links={[
|
|
{ platform: "google", href: "https://play.google.com/store/apps/details?id=com.suchsoftware.suchmoonlaunch" },
|
|
{ platform: "apple", href: "https://apps.apple.com/us/app/such-moon-launch/id6767909623" },
|
|
]}
|
|
extraLinks={[
|
|
{ href: "https://play.moonlaunch.space", label: "Play Online Free" },
|
|
]}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export function WownerogueLinks() {
|
|
// Wownerogue is a browser game, not a store app: link the two live instances + source.
|
|
return (
|
|
<StoreButtons
|
|
links={[]}
|
|
extraLinks={[
|
|
{ href: "https://play.wowne.ro", label: "Play Free (Wownero)" },
|
|
{ href: "https://monerogue.app", label: "Monero Stagenet" },
|
|
{ href: "https://github.com/Such-Software/wownerogue", label: "Source on GitHub" },
|
|
]}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export function BauhausEchoStoreButtons() {
|
|
return (
|
|
<StoreButtons
|
|
links={[
|
|
{ platform: "apple", href: "https://apps.apple.com/us/app/bauhaus-echo/id6759010657" },
|
|
{ platform: "google", href: "https://play.google.com/store/apps/details?id=com.suchsoftware.bauhausecho" },
|
|
]}
|
|
extraLinks={[
|
|
{ href: "https://play.bauhausecho.com", label: "Play Online Free" },
|
|
{ href: "https://suchsoftware.itch.io/bauhaus-echo", label: "itch.io: $2" },
|
|
]}
|
|
/>
|
|
);
|
|
}
|