Toggle navigation
Toggle navigation
This project
Loading...
Sign in
정민우
/
vps_service
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
ch4n3.yoon
2021-05-12 22:17:19 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
39f61650e1a87f818034c106801a2714cbc4925a
39f61650
1 parent
75f4f3d1
[New] Sign-In 화면 추가
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
86 additions
and
0 deletions
frontend/src/components/SignIn.js
frontend/src/components/SignIn.js
0 → 100644
View file @
39f6165
import
React
,
{
useState
,
useEffect
}
from
'react'
import
{
useHistory
,
Redirect
}
from
'react-router-dom'
import
{
Container
,
Heading
,
Button
,
Segment
,
Message
,
Divider
,
Form
,
Input
,
Transition
,
Select
,
Checkbox
,
FormControl
,
FormLabel
,
FormErrorMessage
,
FormHelperText
,
VStack
,
Stack
,
StackDivider
,
Box
,
Text
,
InputGroup
,
InputLeftElement
,
InputRightElement
,
}
from
'@chakra-ui/react'
import
{
PhoneIcon
}
from
'@chakra-ui/icons'
import
http
from
'../utils/http'
const
SignIn
=
()
=>
{
const
[
username
,
setUsername
]
=
useState
(
''
)
const
[
password
,
setPassword
]
=
useState
(
''
)
const
handleUsernameOnChange
=
(
event
)
=>
{
setUsername
(
event
.
target
.
value
)
}
const
handlePasswordOnChange
=
(
event
)
=>
{
setPassword
(
event
.
target
.
value
)
}
useEffect
(()
=>
{
},
[])
return
(
<
Container
>
<
Heading
>
Sign
-
In
<
/Heading>
<
br
/>
<
Stack
// divider={<StackDivider borderColor="gray.200"/>}
spacing
=
{
4
}
align
=
"stretch"
>
<
Input
type
=
"text"
placeholder
=
"username"
value
=
{
username
}
onChange
=
{
handleUsernameOnChange
}
/>
<
InputGroup
size
=
"md"
>
<
Input
pr
=
"4.5rem"
type
=
"password"
placeholder
=
"Enter password"
value
=
{
password
}
onChange
=
{
handlePasswordOnChange
}
/>
<
InputRightElement
width
=
"4.5rem"
>
<
/InputRightElement>
<
/InputGroup>
<
Button
colorScheme
=
"teal"
>
Sign
In
<
/Button>
<
/Stack>
<
/Container>
)
}
export
default
SignIn
Please
register
or
login
to post a comment