feat: added button styling and updated login layout
This commit is contained in:
parent
d86c86e137
commit
77ef7038d2
9 changed files with 196 additions and 29 deletions
24
src/components/user/login-button.tsx
Normal file
24
src/components/user/login-button.tsx
Normal file
|
@ -0,0 +1,24 @@
|
|||
import { signIn } from '@/auth';
|
||||
import Button from '../Button';
|
||||
import { faOpenid } from '@fortawesome/free-brands-svg-icons';
|
||||
|
||||
export default function Login({
|
||||
provider,
|
||||
providerDisplayName,
|
||||
}: {
|
||||
provider: string;
|
||||
providerDisplayName: string;
|
||||
}) {
|
||||
return (
|
||||
<form
|
||||
action={async () => {
|
||||
'use server';
|
||||
await signIn(provider);
|
||||
}}
|
||||
>
|
||||
<Button type='submit' mode='warning' icon={faOpenid}>
|
||||
Login with {providerDisplayName}
|
||||
</Button>
|
||||
</form>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue