Skip to content

Commit

Permalink
Adjusted the SignUpNotifs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartik-M24 committed Aug 2, 2024
1 parent 4f9818a commit 105b16f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 58 deletions.

This file was deleted.

This file was deleted.

40 changes: 25 additions & 15 deletions client/src/components/generic/SignUpNotif/SignUpNotif.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useRouter } from "next/navigation"
import Button from "../FigmaButtons/FigmaButton"
import LockIcon from "@/assets/icons/lock.svg"

interface ISignUpNotif {
/**
Expand All @@ -21,21 +22,30 @@ export const SignUpNotif = ({ signedIn }: ISignUpNotif) => {
}

return (
<div
className="text-dark-blue-100 border-gray-3 flex flex-col items-center justify-center
gap-4 rounded-md border bg-white py-8"
>
<h2 className="text-center italic">Currently unavailable</h2>
<h4 className="max-h-[87px] max-w-[386px] text-center">
Only paid members can access bookings. Please sign up or wait until your
membership payment has been proccessed.
</h4>
<span className="flex w-full max-w-80 gap-2">
{!signedIn && <Button onClick={() => goToLogin()}>Log in</Button>}
<Button onClick={() => goToRegister()}>
{signedIn ? "Join Now" : "Sign up"}
</Button>
</span>
<div className="bg-gray-1 absolute inset-0 flex h-screen w-full justify-center overflow-hidden bg-opacity-70 px-4 py-2">
<div className="border-gray-3 mt-12 h-fit rounded-md border-2 bg-white p-5">
<div className="flex items-center justify-center">
<LockIcon />
</div>
<h2 className="xxs:mb-5 mb-10 mt-5 text-center font-bold text-black">
Sorry!
</h2>
<h4 className="text-center text-black">
Bookings are only available for UASC members.
</h4>
<h4 className="xxs:mb-5 mb-10 mt-1 text-center text-black">
Please sign up or wait until your membership payment has been
processed.
</h4>
<div className="mb-2 flex justify-center">
<span className="flex w-full max-w-80 gap-2">
{!signedIn && <Button onClick={() => goToLogin()}>Log in</Button>}
<Button onClick={() => goToRegister()}>
{signedIn ? "Join Now" : "Sign up"}
</Button>
</span>
</div>
</div>
</div>
)
}

0 comments on commit 105b16f

Please sign in to comment.