generated from goitacademy/react-homework-template
-
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
52f227f
commit 9c63b02
Showing
20 changed files
with
183 additions
and
30 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
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
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Form, Label, Input, SubmitButton } from './LoginForm.styled'; | ||
|
||
export const LoginForm = () => { | ||
return ( | ||
<Form> | ||
<Label> | ||
<Input type="email" name="email" /> | ||
</Label> | ||
<Label> | ||
Password | ||
<Input type="password" name="password" /> | ||
</Label> | ||
<SubmitButton type="submit">Log In</SubmitButton> | ||
</Form> | ||
); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
export const Form = styled.form` | ||
width: 400px; | ||
background-color: #bfa89e; | ||
padding: 12px; | ||
border-radius: 8px; | ||
`; | ||
|
||
export const Label = styled.label` | ||
display: flex; | ||
flex-direction: column; | ||
margin-bottom: 16px; | ||
color: #000000; | ||
font-size: 18px; | ||
margin-bottom: 12px; | ||
`; | ||
|
||
export const Input = styled.input` | ||
padding: 4px; | ||
font-size: 18px; | ||
border-radius: 4px; | ||
border: 2px solid transparent; | ||
outline: transparent; | ||
&: focus { | ||
border-color: #78a1bb; | ||
} | ||
&: hover { | ||
border-color: #78a1bb; | ||
} | ||
`; | ||
|
||
export const SubmitButton = styled.button` | ||
padding: 8px 24px; | ||
font-size: 16px; | ||
color: #ebf5ee; | ||
background-color: #8b786d; | ||
&: hover { | ||
background-color: #78a1bb; | ||
} | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Form, Label, Input, SubmitButton } from './RegisterForm.styled'; | ||
|
||
export const RegisterForm = () => { | ||
return ( | ||
<Form> | ||
<Label> | ||
Username | ||
<Input type="text" name="text" /> | ||
</Label> | ||
<Label> | ||
<Input type="email" name="email" /> | ||
</Label> | ||
<Label> | ||
Password | ||
<Input type="password" name="password" /> | ||
</Label> | ||
<SubmitButton type="submit">Register</SubmitButton> | ||
</Form> | ||
); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
export const Form = styled.form` | ||
width: 400px; | ||
background-color: #bfa89e; | ||
padding: 12px; | ||
border-radius: 8px; | ||
`; | ||
|
||
export const Label = styled.label` | ||
display: flex; | ||
flex-direction: column; | ||
margin-bottom: 16px; | ||
color: #000000; | ||
font-size: 18px; | ||
margin-bottom: 12px; | ||
`; | ||
|
||
export const Input = styled.input` | ||
padding: 4px; | ||
font-size: 18px; | ||
border-radius: 4px; | ||
border: 2px solid transparent; | ||
outline: transparent; | ||
&: focus { | ||
border-color: #78a1bb; | ||
} | ||
&: hover { | ||
border-color: #78a1bb; | ||
} | ||
`; | ||
|
||
export const SubmitButton = styled.button` | ||
padding: 8px 24px; | ||
font-size: 16px; | ||
color: #ebf5ee; | ||
background-color: #8b786d; | ||
&: hover { | ||
background-color: #78a1bb; | ||
} | ||
`; |
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
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
File renamed without changes.
Empty file.
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { LoginForm } from 'components/LoginForm/LoginForm'; | ||
|
||
const LoginPage = () => { | ||
return <LoginForm />; | ||
}; | ||
|
||
export default LoginPage; |
Empty file.
File renamed without changes.
Empty file.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { RegisterForm } from 'components/RegisterForm/RegisterForm'; | ||
|
||
const RegisterPage = () => { | ||
return <RegisterForm />; | ||
}; | ||
|
||
export default RegisterPage; |
Empty file.