style: auth pages theming (#942)
This commit is contained in:
parent
ae26b17cab
commit
7116acc331
3 changed files with 8 additions and 10 deletions
|
|
@ -36,16 +36,14 @@ export const NotAuthorizedView: React.FC<Props> = ({ actionButton, type }) => {
|
||||||
alt="ProjectSettingImg"
|
alt="ProjectSettingImg"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<h1 className="text-xl font-medium text-brand-base">
|
<h1 className="text-xl font-medium">Oops! You are not authorized to view this page</h1>
|
||||||
Oops! You are not authorized to view this page
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<div className="w-full text-base text-brand-secondary max-w-md ">
|
<div className="w-full max-w-md text-base text-brand-secondary">
|
||||||
{user ? (
|
{user ? (
|
||||||
<p>
|
<p>
|
||||||
You have signed in as {user.email}. <br />
|
You have signed in as {user.email}. <br />
|
||||||
<Link href={`/signin?next=${currentPath}`}>
|
<Link href={`/signin?next=${currentPath}`}>
|
||||||
<a className="text-brand-base font-medium">Sign in</a>
|
<a className="font-medium text-brand-base">Sign in</a>
|
||||||
</Link>{" "}
|
</Link>{" "}
|
||||||
with different account that has access to this page.
|
with different account that has access to this page.
|
||||||
</p>
|
</p>
|
||||||
|
|
@ -53,7 +51,7 @@ export const NotAuthorizedView: React.FC<Props> = ({ actionButton, type }) => {
|
||||||
<p>
|
<p>
|
||||||
You need to{" "}
|
You need to{" "}
|
||||||
<Link href={`/signin?next=${currentPath}`}>
|
<Link href={`/signin?next=${currentPath}`}>
|
||||||
<a className="text-brand-base font-medium">Sign in</a>
|
<a className="font-medium text-brand-base">Sign in</a>
|
||||||
</Link>{" "}
|
</Link>{" "}
|
||||||
with an account that has access to this page.
|
with an account that has access to this page.
|
||||||
</p>
|
</p>
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,9 @@ export const JoinProject: React.FC = () => {
|
||||||
<div className="h-44 w-72">
|
<div className="h-44 w-72">
|
||||||
<Image src={JoinProjectImg} height="176" width="288" alt="JoinProject" />
|
<Image src={JoinProjectImg} height="176" width="288" alt="JoinProject" />
|
||||||
</div>
|
</div>
|
||||||
<h1 className="text-xl font-medium text-gray-900">You are not a member of this project</h1>
|
<h1 className="text-xl font-medium">You are not a member of this project</h1>
|
||||||
|
|
||||||
<div className="w-full max-w-md text-base text-gray-500 ">
|
<div className="w-full max-w-md text-base text-brand-secondary">
|
||||||
<p className="mx-auto w-full text-sm md:w-3/4">
|
<p className="mx-auto w-full text-sm md:w-3/4">
|
||||||
You are not a member of this project, but you can join this project by clicking the button
|
You are not a member of this project, but you can join this project by clicking the button
|
||||||
below.
|
below.
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,12 @@ export const NotAWorkspaceMember = () => {
|
||||||
<div className="space-y-8 text-center">
|
<div className="space-y-8 text-center">
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<h3 className="text-lg font-semibold">Not Authorized!</h3>
|
<h3 className="text-lg font-semibold">Not Authorized!</h3>
|
||||||
<p className="text-sm text-gray-500 w-1/2 mx-auto">
|
<p className="mx-auto w-1/2 text-sm text-brand-secondary">
|
||||||
You{"'"}re not a member of this workspace. Please contact the workspace admin to get
|
You{"'"}re not a member of this workspace. Please contact the workspace admin to get
|
||||||
an invitation or check your pending invitations.
|
an invitation or check your pending invitations.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-2 justify-center">
|
<div className="flex items-center justify-center gap-2">
|
||||||
<Link href="/invitations">
|
<Link href="/invitations">
|
||||||
<a>
|
<a>
|
||||||
<SecondaryButton>Check pending invites</SecondaryButton>
|
<SecondaryButton>Check pending invites</SecondaryButton>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue