Scaffolded Springboard page

This commit is contained in:
2024-06-25 00:31:19 +08:00
parent 94a62f43b2
commit 29ab8c0422
7 changed files with 160 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ export default function SignInModule() {
config.serverAddress + "/users/login",
values
);
console.log(response.data.accessToken);
navigate("/springboard/" + response.data.accessToken);
} catch (error) {
console.error("Error logging in:", error);
}

View File

@@ -0,0 +1,18 @@
import { Button } from "@nextui-org/react";
export default function SpringboardButton({
title,
subtitle,
}: {
title: string;
subtitle: string;
}) {
return (
<Button className="border-4 border-red-500 bg-neutral-700 hover:bg-red-500 text-white">
<div className="flex flex-col justify-between w-full h-full py-4 px-2 text-left *:text-wrap mr-16">
<p className="text-2xl font-semibold">{title}</p>
<p>{subtitle}</p>
</div>
</Button>
);
}