From 61243df5c1be6d8a4db38ebe02d16d89944e85e6 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Tue, 11 Feb 2025 15:23:01 -0500 Subject: [PATCH] Create le rp application page --- app/routes/rpserver_.application.tsx | 88 ++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 app/routes/rpserver_.application.tsx diff --git a/app/routes/rpserver_.application.tsx b/app/routes/rpserver_.application.tsx new file mode 100644 index 0000000..1e7a55c --- /dev/null +++ b/app/routes/rpserver_.application.tsx @@ -0,0 +1,88 @@ +import { + Button, + Container, + FormControl, + FormLabel, + Heading, + Input, + NumberDecrementStepper, + NumberIncrementStepper, + NumberInput, + NumberInputField, + NumberInputStepper, + Textarea, + VStack, +} from "@chakra-ui/react"; +import { useLoaderData } from "@remix-run/react"; + +export async function loader({ context }: { context: RequestContext }) { + const { current_user: user } = context.data; + + if (!user.id) + throw new Response(null, { + status: 401, + }); + + if (await context.env.DATA.get(`rpserverblock_${user.id}`)) + throw new Response(null, { + status: 403, + }); + + return null; +} + +export default function () { + useLoaderData(); + + return ( + + RP Server Application + + + Server Invite + + + + Roblox Username + + + + How old are you? + + + + + + + + + + Introduce yourself! +