-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f7ae71
commit 042716c
Showing
1 changed file
with
44 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,65 @@ | ||
import { type FormEvent, useState } from 'react'; | ||
import Button from '../../components/Button'; | ||
import TextField from '../../components/TextField'; | ||
|
||
export default function Signup() { | ||
const [name, setName] = useState(''); | ||
const [lastName, setLastName] = useState(''); | ||
const [email, setEmail] = useState(''); | ||
const [password, setPassword] = useState(''); | ||
|
||
function handleSubmit(event: FormEvent) { | ||
event.preventDefault(); | ||
} | ||
|
||
return ( | ||
<div className="min-h-screen relative flex justify-center items-center bg-no-repeat bg-cover bg-slate-800 bg-[url('https://images.unsplash.com/photo-1580192985016-7e15ef081dd8?q=80&w=1961&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D')]"> | ||
<div className="min-h-screen relative flex justify-center items-center bg-no-repeat bg-cover bg-slate-800 bg-[url('https://images.unsplash.com/photo-1720712738661-9c0dcb92f06d?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D')]"> | ||
<div className="absolute bg-black rounded-[50%] w-full h-full blur-[23rem]" /> | ||
<div className="flex justify-center items-center z-20"> | ||
<div className="w-full"> | ||
<h1 className="text-6xl text-center font-bold text-white mb-16"> | ||
Linx | ||
</h1> | ||
<form className="w-96"> | ||
<TextField className="w-full" name="name" placeholder="Name" /> | ||
<TextField | ||
className="w-full" | ||
name="surname" | ||
placeholder="Surname" | ||
/> | ||
<form className="w-96 bg-slate-200 rounded-xl py-4 px-4 space-y-2"> | ||
<div className="flex justify-center w-full items-center space-x-3"> | ||
<TextField | ||
className="w-full" | ||
name="first_name" | ||
placeholder="John" | ||
label="First Name" | ||
onChange={(val) => setName(val)} | ||
required | ||
/> | ||
<TextField | ||
className="w-full" | ||
name="last_name" | ||
placeholder="Doe" | ||
label="Last Name" | ||
onChange={(val) => setLastName(val)} | ||
required | ||
/> | ||
</div> | ||
<TextField | ||
type="email" | ||
placeholder="[email protected]" | ||
className="w-full" | ||
name="username" | ||
placeholder="Username" | ||
name="email" | ||
label="Email" | ||
onChange={(val) => setEmail(val)} | ||
required | ||
/> | ||
<TextField className="w-full" name="email" placeholder="Email" /> | ||
<TextField | ||
label="Password" | ||
className="w-full" | ||
name="password" | ||
type="password" | ||
placeholder="Password" | ||
placeholder="* * * * * * *" | ||
onChange={(val) => setPassword(val)} | ||
required | ||
/> | ||
<button | ||
type="button" | ||
className="bg-blue-700 text-white font-bold w-full mt-3 rounded-md py-3 px-4" | ||
> | ||
Login | ||
</button> | ||
<Button type="submit" className="w-full mt-4"> | ||
Sign Up | ||
</Button> | ||
</form> | ||
<div className="text-center w-full text-white mt-3"> | ||
{'Do you have an account? '} | ||
|