Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
search-page
Commits
f00fa2c0
Commit
f00fa2c0
authored
Feb 01, 2021
by
Lee SeoYeon
Browse files
.
parent
cbc36f50
Changes
2
Show whitespace changes
Inline
Side-by-side
client/src/Components/Login.js
View file @
f00fa2c0
import
React
,
{
useState
,
useEffect
}
from
'
react
'
import
React
,
{
useState
,
useEffect
}
from
'
react
'
import
{
Alert
,
Col
,
Container
,
Form
,
Row
,
Button
,
Spinner
}
from
"
react-bootstrap
"
import
{
Alert
,
Col
,
Container
,
Form
,
Row
,
Button
,
Spinner
,
Image
}
from
"
react-bootstrap
"
import
axios
from
"
axios
"
import
axios
from
"
axios
"
import
catchErrors
from
'
../utils/catchErrors
'
import
catchErrors
from
'
../utils/catchErrors
'
import
{
Redirect
}
from
'
react-router-dom
'
import
{
Redirect
}
from
'
react-router-dom
'
import
{
handleLogin
}
from
'
../utils/auth
'
import
{
handleLogin
}
from
'
../utils/auth
'
import
{
Link
}
from
'
react-router-dom
'
;
import
ohuh
from
'
../ohuh-sm.PNG
'
;
const
INIT_USER
=
{
const
INIT_USER
=
{
email
:
''
,
email
:
''
,
...
@@ -53,6 +54,7 @@ function Login() {
...
@@ -53,6 +54,7 @@ function Login() {
return
(
return
(
<
Container
>
<
Container
>
<
Row
className
=
'
vh-100 flex-column align-items-center justify-content-center
'
>
<
Row
className
=
'
vh-100 flex-column align-items-center justify-content-center
'
>
<
Link
to
=
'
/
'
><
Image
src
=
{
ohuh
}
/></
Link
>
<
h2
>
로그인
<
/h2
>
<
h2
>
로그인
<
/h2
>
<
Col
md
=
{
6
}
>
<
Col
md
=
{
6
}
>
{
error
&&
<
Alert
variant
=
'
danger
'
>
{
error
&&
<
Alert
variant
=
'
danger
'
>
...
...
client/src/Components/Signup.js
View file @
f00fa2c0
import
React
,
{
useState
,
useEffect
}
from
'
react
'
import
React
,
{
useState
,
useEffect
}
from
'
react
'
import
{
Col
,
Container
,
Form
,
Row
,
Button
,
Alert
}
from
"
react-bootstrap
"
import
{
Col
,
Container
,
Form
,
Row
,
Button
,
Alert
,
Image
}
from
"
react-bootstrap
"
import
axios
from
"
axios
"
import
axios
from
"
axios
"
import
catchErrors
from
'
../utils/catchErrors
'
import
catchErrors
from
'
../utils/catchErrors
'
import
{
Redirect
}
from
'
react-router-dom
'
import
{
Redirect
}
from
'
react-router-dom
'
import
ohuh
from
'
../ohuh-sm.PNG
'
;
import
{
Link
}
from
'
react-router-dom
'
;
const
INIT_USER
=
{
const
INIT_USER
=
{
name
:
''
,
name
:
''
,
...
@@ -48,6 +50,7 @@ function Signup() {
...
@@ -48,6 +50,7 @@ function Signup() {
return
(
return
(
<
Container
>
<
Container
>
<
Row
className
=
'
vh-100 flex-column align-items-center justify-content-center
'
>
<
Row
className
=
'
vh-100 flex-column align-items-center justify-content-center
'
>
<
Link
to
=
'
/
'
><
Image
src
=
{
ohuh
}
/></
Link
>
<
h2
>
회원가입
<
/h2
>
<
h2
>
회원가입
<
/h2
>
<
Col
md
=
{
5
}
>
<
Col
md
=
{
5
}
>
{
error
&&
<
Alert
variant
=
'
danger
'
>
{
error
&&
<
Alert
variant
=
'
danger
'
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment