diff --git a/app/routes/admin-application.tsx b/app/routes/admin-application.tsx new file mode 100644 index 0000000..852522a --- /dev/null +++ b/app/routes/admin-application.tsx @@ -0,0 +1,87 @@ +import { + Button, + Container, + Heading, + Input, + Text, + Textarea, + useToast, +} from "@chakra-ui/react"; + +export default function () { + async function submit() { + const submitReq = await fetch("/api/admin-apps/submit"); + + useToast()({ + description: submitReq.ok + ? "Your application was submitted" + : "Try again later", + duration: 10000, + isClosable: true, + status: submitReq.ok ? "success" : "error", + title: submitReq.ok ? "Success" : "Unknown Error", + }); + } + + return ( + + Admin Application +
+
+ Why do you want to be an admin? +
+