initial commit

This commit is contained in:
Harivansh Rathi 2024-11-24 20:56:03 -05:00
commit ef9ccf22d3
133 changed files with 20802 additions and 0 deletions

View file

@ -0,0 +1,29 @@
'use client'
import { Button } from '@/components/ui/button'
import { signIn } from 'next-auth/react'
import { FaGithub, FaGoogle } from 'react-icons/fa'
export const Social = () => {
const onClick = (provider: 'google' | 'github') => {
signIn(provider, {
callbackUrl: '/'
})
}
return (
<div className="flex gap-2 mt-3">
<Button
className="rounded-[5px] w-full border border-primary/20 bg-secondary text-primary hover:bg-primary/10 text-md"
onClick={() => onClick('google')}
>
<FaGoogle className="mr-2" /> Google
</Button>
<Button
className="rounded-[5px] w-full border border-primary/20 bg-secondary text-primary hover:bg-primary/10 text-md"
onClick={() => onClick('github')}
>
<FaGithub className="mr-2" /> Github
</Button>
</div>
)
}