2024-02-11 00:00:27 -06:00
|
|
|
import React from "react";
|
|
|
|
import { Button } from 'primereact/button';
|
2024-02-11 10:09:43 -06:00
|
|
|
import { useLogin } from "@/hooks/useLogin";
|
2024-02-11 00:00:27 -06:00
|
|
|
|
2024-02-11 10:09:43 -06:00
|
|
|
const Login = () => {
|
|
|
|
const { nostrLogin, anonymousLogin } = useLogin();
|
2024-02-11 00:00:27 -06:00
|
|
|
return (
|
|
|
|
<div className="w-fit mx-auto mt-24 flex flex-col justify-center">
|
|
|
|
<h1 className="text-center mb-8">Login</h1>
|
|
|
|
<Button
|
|
|
|
label={"login with nostr"}
|
|
|
|
icon="pi pi-user"
|
|
|
|
className="text-[#f8f8ff] w-[250px] my-4"
|
|
|
|
rounded
|
|
|
|
onClick={nostrLogin}
|
|
|
|
/>
|
|
|
|
<Button
|
|
|
|
label={"login anonymously"}
|
|
|
|
icon="pi pi-user"
|
|
|
|
className="text-[#f8f8ff] w-[250px] my-4"
|
|
|
|
rounded
|
2024-02-11 00:36:25 -06:00
|
|
|
onClick={anonymousLogin}
|
2024-02-11 00:00:27 -06:00
|
|
|
/>
|
2024-04-28 17:00:58 -05:00
|
|
|
<Button
|
|
|
|
label={"login with email"}
|
|
|
|
icon="pi pi-envelope"
|
|
|
|
className="text-[#f8f8ff] w-[250px] my-4"
|
|
|
|
rounded
|
|
|
|
onClick={anonymousLogin}
|
|
|
|
/>
|
2024-02-11 00:00:27 -06:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Login;
|