Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team Anchor social login #742

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions src/app/(auth-routes)/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,20 @@ const LoginPage = () => {
</div>

<div className="flex flex-col justify-center space-y-4 sm:flex-row sm:space-x-6 sm:space-y-0">
<Button className="flex items-center rounded-md border border-gray-300 bg-white px-4 py-4 text-gray-700 shadow-sm hover:bg-gray-50">
<Image
src={Google}
width={20}
height={20}
alt="Goggle"
className="mr-2"
/>
Sign in with Google
</Button>
<Link
href={`${process.env.NEXT_PUBLIC_API_URL}/api/v1/auth/google`}
>
<Button className="flex items-center rounded-md border border-gray-300 bg-white px-4 py-4 text-gray-700 shadow-sm hover:bg-gray-50">
<Image
src={Google}
width={20}
height={20}
alt="Goggle"
className="mr-2"
/>
Sign in with Google
</Button>
</Link>
<Button className="flex items-center rounded-md border border-gray-300 bg-white px-4 py-4 text-gray-700 shadow-sm hover:bg-gray-50">
<Image
src={Facebook}
Expand Down
24 changes: 13 additions & 11 deletions src/app/(auth-routes)/sign-up/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,19 @@ const page = () => {
Create an account to get started with us.
</p>
<div className="mt-6 flex flex-col items-center gap-2 text-center sm:flex-row md:gap-[18px]">
<button className="flex w-full flex-row items-center justify-center gap-2.5 rounded-lg border border-border px-4 py-3 md:w-fit md:px-8 md:py-4">
<Image
src={"/signup/icons/flat-color-icons_google.svg"}
alt="Google Icon"
width={24}
height={24}
/>
<p className="text-neutralColor-dark-2 font-medium">
Sign in with Google
</p>
</button>
<Link href={process.env.API_URL + "/api/v1/auth/google-login"}>
<button className="flex w-full flex-row items-center justify-center gap-2.5 rounded-lg border border-border px-4 py-3 md:w-fit md:px-8 md:py-4">
<Image
src={"/signup/icons/flat-color-icons_google.svg"}
alt="Google Icon"
width={24}
height={24}
/>
<p className="text-neutralColor-dark-2 font-medium">
Sign in with Google
</p>
</button>
</Link>
<button className="flex w-full flex-row items-center justify-center gap-2.5 rounded-lg border border-border px-4 py-3 md:w-fit md:px-8 md:py-4">
<Image
src={"/signup/icons/bi_facebook.svg"}
Expand Down
Loading