Scaffolded Springboard page
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
18
client/src/components/SpringboardButton.tsx
Normal file
18
client/src/components/SpringboardButton.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user