From 8c773da13703d62577391621018d2b6d66263f3e Mon Sep 17 00:00:00 2001 From: Devin Zuczek Date: Mon, 27 Jul 2026 18:46:37 -0400 Subject: [PATCH 1/6] www stuff --- apps/www/index.html | 11 +- apps/www/src/client/App.tsx | 34 +- apps/www/src/client/styles.css | 38 +-- apps/www/src/links.ts | 34 ++ apps/www/src/privacy.ts | 359 ++++++++++++++++++++++ apps/www/src/test/integration/api.test.ts | 29 ++ apps/www/src/www.app.ts | 7 + apps/www/wrangler.jsonc | 8 +- 8 files changed, 468 insertions(+), 52 deletions(-) create mode 100644 apps/www/src/links.ts create mode 100644 apps/www/src/privacy.ts diff --git a/apps/www/index.html b/apps/www/index.html index faf638b..ed7d3e3 100644 --- a/apps/www/index.html +++ b/apps/www/index.html @@ -3,10 +3,10 @@ - RecFlare — an open source implementation of the 2023 RecNet servers + RecFlare — play like it's 2023 @@ -14,14 +14,11 @@ rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='8' fill='%2314100c'/%3E%3Cpath d='M16 5c1.8 4.2 4.3 6 6.4 8.1a8.9 8.9 0 1 1-12.8 0C11.7 11 14.2 9.2 16 5z' fill='%23fe7101'/%3E%3C/svg%3E" /> - + diff --git a/apps/www/src/client/App.tsx b/apps/www/src/client/App.tsx index 99e0672..4a1cf14 100644 --- a/apps/www/src/client/App.tsx +++ b/apps/www/src/client/App.tsx @@ -1,19 +1,9 @@ import { useCallback, useEffect, useState } from 'react' +import { DISCORD_INVITE, DOWNLOAD_URL, LICENSE_URL, SOURCE_REPO } from '../links' + import type { ReactNode } from 'react' -/** The community Discord — the join instructions and the build both live there. */ -const DISCORD_INVITE = 'https://discord.gg/HhmMAKhrz' - -/** Where the stage's "Download for PC" button goes: the client's release listing. */ -const DOWNLOAD_URL = 'https://github.com/djdevin/recflare-client/releases' - -/** The public source repo, linked from the homepage and footer. */ -const SOURCE_REPO = 'https://github.com/djdevin/recflare' - -/** The repo's licence, behind the footer's "MIT licensed". */ -const LICENSE_URL = `${SOURCE_REPO}/blob/main/LICENSE` - /** The self-account shape returned by the www BFF (`/api/me`, `/api/login`, …). */ interface SelfAccount { accountId: number @@ -132,9 +122,12 @@ function SiteFooter() { MIT licensed {' '} - · a fan project, not affiliated with Rec Room Inc. + — made by fans, not affiliated with Rec Room Inc.