Skip to content

Commit

Permalink
discord login
Browse files Browse the repository at this point in the history
  • Loading branch information
zismaildev committed Jan 28, 2024
1 parent 9ed9413 commit 83e1e6d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default function Home() {
<li>สามารถเพิ่มนักแข่งได้ 5 คน ตัวสำรอง 3 คน</li>
<li>หากเจอการใช้โปรแกรมโกงไม่ว่ากรณีใดๆ ปรับแพ้ทันทีและแบนการแข่งขันทันที</li>
<li>ห้ามการ Toxic ทุกรูปแบบพบเจอแบบการแข่ง 2 Match</li>
<li>ทาง CMRU E-Sprot ขอเก็บเงินสมาชิกคนละ 20 ต่ออาทิตย์ เพื่อนำเงินจำนวนนี้ไปเป็นเงินรางวัล</li>
<li>ทาง CMRU E-Sprot ขอเก็บเงินสมาชิกคนละ 20 บาท ต่ออาทิตย์ เพื่อนำเงินจำนวนนี้ไปเป็นเงินรางวัล</li>
</ul>
<h2 className="text-xl text-gray-600 mt-2">
สามารถ <Link href="/contents/regteam">สมัครแข่งขัน</Link> ตรงนี้ !!!
Expand Down
11 changes: 11 additions & 0 deletions src/pages/login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { useSession, signIn } from 'next-auth/react';
import { useRouter } from 'next/router';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faGoogle, faGithub } from '@fortawesome/free-brands-svg-icons';
import { faDiscord } from '@fortawesome/free-brands-svg-icons';

export default function Login() {
const { data: session } = useSession();
Expand Down Expand Up @@ -57,6 +58,16 @@ export default function Login() {
Google
</Button>
</div>
<div className='p-2'>
<Button
onClick={() => signIn('discord', { redirect: false }).then(() => router.push('/'))}
radius="full"
className="bg-gradient-to-tr from-pink-500 to-yellow-500 text-white shadow-lg w-full"
startContent={<FontAwesomeIcon className="h-4 w-4" icon={faDiscord} />}
>
Discord
</Button>
</div>
<div className='p-2'>
<Button
onClick={() => signIn('github', { redirect: false }).then(() => router.push('/'))}
Expand Down

0 comments on commit 83e1e6d

Please sign in to comment.