Skip to content

Commit 0c5d2cb

Browse files
style: add icons to OAuth buttons
1 parent 2a2271a commit 0c5d2cb

File tree

3 files changed

+29
-11
lines changed

3 files changed

+29
-11
lines changed

package-lock.json

Lines changed: 17 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"next": "15.5.3",
1919
"react": "19.1.0",
2020
"react-dom": "19.1.0",
21+
"react-icons": "^5.5.0",
2122
"react-youtube": "^10.1.0"
2223
},
2324
"devDependencies": {

src/app/login/page.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useState } from "react";
44
import { useRouter } from "next/navigation";
55
import { createClient } from "../../lib/supabase/client";
66
import handleOAuthLogin from "@/lib/supabase/handle-oauth-login";
7+
import { FaGoogle, FaGithub } from "react-icons/fa";
78

89
export default function AuthPage() {
910
const router = useRouter();
@@ -99,12 +100,15 @@ export default function AuthPage() {
99100
</div>
100101

101102
{/* Google */}
102-
<div>
103+
<div className="">
103104
<button
104-
className="w-full p-2 rounded-md bg-transparent border border-white/40 focus:border-indigo-400 focus:shadow-[0_0_12px_rgba(140,120,255,0.8)] outline-none transition"
105+
className="w-full p-2 rounded-md bg-transparent border border-white/40 focus:border-indigo-400 focus:shadow-[0_0_12px_rgba(140,120,255,0.8)] outline-none transition hover:cursor-pointer"
105106
onClick={() => handleOAuthLogin("google")}
106107
>
107-
Google
108+
<div className="flex flex-row items-center justify-center gap-2 font-semibold">
109+
<FaGoogle></FaGoogle>
110+
<span>Google</span>
111+
</div>
108112
</button>
109113
</div>
110114

@@ -114,7 +118,10 @@ export default function AuthPage() {
114118
className="w-full p-2 rounded-md bg-transparent border border-white/40 focus:border-indigo-400 focus:shadow-[0_0_12px_rgba(140,120,255,0.8)] outline-none transition"
115119
onClick={() => handleOAuthLogin("github")}
116120
>
117-
Github
121+
<div className="flex flex-row items-center justify-center gap-2 font-semibold">
122+
<FaGithub></FaGithub>
123+
<span>Github</span>
124+
</div>
118125
</button>
119126
</div>
120127
</section>

0 commit comments

Comments
 (0)