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
shopping-mall
Commits
c856eca6
Commit
c856eca6
authored
Dec 29, 2020
by
이재연
Browse files
logsign
parent
559aff2c
Changes
2
Show whitespace changes
Inline
Side-by-side
client/src/Pages/Login.js
View file @
c856eca6
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'
react
'
;
import
Nav1
from
'
../Components/MainNav
'
;
import
Nav2
from
'
../Components/SubNav
'
;
import
{
Form
,
Col
,
Container
,
Button
,
Row
}
from
'
react-bootstrap
'
import
{
Link
,
Redirect
}
from
'
react-router-dom
'
function
Login
()
{
return
(
<
Container
className
=
"
d-flex justify-content-center
"
>
<
div
>
<
Nav1
/>
<
Nav2
/>
<
div
className
=
"
margin-auto
"
>
<
Form
.
Label
className
=
"
d-flex justify-content-center
"
>
Login
<
/Form.Label
>
<
Container
className
=
"
my-5
"
>
<
Row
className
=
"
justify-content-center
"
>
<
Col
md
=
{
5
}
xs
=
{
10
}
className
=
"
border
"
>
<
h3
className
=
"
text-center mt-5
"
>
Login
<
/h3
>
<
Form
className
=
"
p-5
"
>
<
Form
>
<
Form
.
Group
controlId
=
"
formBasicId
"
>
<
Form
.
Row
>
<
Form
.
Label
for
=
"
id
"
>
User
Name
<
/Form.Label
>
...
...
@@ -29,15 +37,20 @@ function Login() {
<
/Col
>
<
/Form.Row
>
<
/Form.Group
>
<
/Form
>
<
Button
variant
=
"
outline-dark
"
type
=
"
submit
"
block
>
Login
<
/Button
>
<
div
className
=
"
loginLine
"
>
<
Link
to
=
"
/
S
ignup
"
>
SignUp
?
<
/Link
>
<
Link
to
=
"
/
s
ignup
"
>
SignUp
?
<
/Link
>
<
/div
>
<
/Form
>
<
/Col
>
<
/Row
>
<
Button
variant
=
"
outline-dark
"
type
=
"
submit
"
block
>
Login
<
/Button
>
<
/div
>
<
/Container
>
<
/div
>
)
}
...
...
client/src/Pages/Signup.js
View file @
c856eca6
...
...
@@ -2,86 +2,105 @@ import React, { useState, useEffect, useRef } from 'react';
import
{
Redirect
}
from
'
react-router-dom
'
;
import
Nav1
from
'
../Components/MainNav
'
;
import
Nav2
from
'
../Components/SubNav
'
;
import
{
Form
,
Col
,
Container
,
Button
,
Row
}
from
'
react-bootstrap
'
function
Signup
()
{
return
(
<
Container
className
=
"
d-flex justify-content-center
"
>
<
div
>
<
Nav1
/>
<
Nav2
/>
<
div
className
=
"
form-control
"
>
<
Form
.
Label
className
=
"
d-flex justify-content-center
"
>
Sign
Up
<
/Form.Label
>
<
Form
>
<
Container
className
=
"
my-5
"
>
<
Row
className
=
"
justify-content-center
"
>
<
Col
md
=
{
6
}
xs
=
{
10
}
className
=
"
border
"
>
<
h2
className
=
"
text-center mt-5
"
>
Sign
Up
<
/h2
>
<
Form
className
=
"
p-5
"
>
<
Form
.
Group
controlId
=
"
formBasicId
"
>
<
Form
.
Row
>
<
Form
.
Label
for
=
"
id
"
>
User
Name
<
/Form.Label
>
<
/Form.Row
>
<
Col
>
<
Form
.
Control
type
=
"
text
"
id
=
"
id
"
size
=
"
sm
"
placeholder
=
"
UserName
"
className
=
"
mx-sm-3
"
><
/Form.Control
>
<
/Col
>
<
/Form.Row
>
<
/Form.Group
>
<
Form
.
Group
controlId
=
"
formBasicName
"
>
<
Form
.
Row
>
<
Form
.
Label
for
=
"
name
"
>
Real
Name
<
/Form.Label
>
<
/Form.Row
>
<
Col
>
<
Form
.
Control
type
=
"
text
"
id
=
"
name
"
size
=
"
sm
"
placeholder
=
"
Enter your Real Name
"
className
=
"
mx-sm-3
"
><
/Form.Control
>
<
/Col
>
<
/Form.Row
>
<
/Form.Group
>
<
Form
.
Group
controlId
=
"
formBasicNumber
"
>
<
Form
.
Row
>
<
Form
.
Label
for
=
"
number
"
>
Resident
registration
number
<
/Form.Label
>
<
/Form.Row
>
<
Col
>
<
Form
.
Control
type
=
"
text
"
id
=
"
number1
"
size
=
"
sm
"
maxlength
=
"
6
"
className
=
"
mx-sm-3
"
><
/Form.Control
>
<
Col
as
=
{
Row
}
>
<
Form
.
Control
type
=
"
text
"
id
=
"
number1
"
size
=
"
sm
"
maxlength
=
"
6
"
className
=
"
mx-sm-3
"
style
=
{{
width
:
'
120px
'
}}
><
/Form.Control
>
-
<
Form
.
Control
type
=
"
text
"
id
=
"
number1
"
size
=
"
sm
"
maxlength
=
"
1
"
className
=
"
mx-sm-3
"
style
=
{{
width
:
'
25px
'
}}
><
/Form.Control
>
******
<
/Col
>
<
/Form.Row
>
<
/Form.Group
>
<
Form
.
Group
controlId
=
"
formBasicPassword
"
>
<
Form
.
Row
>
<
Form
.
Label
for
=
"
password
"
>
Password
<
/Form.Label
>
<
/Form.Row
>
<
Col
>
<
Form
.
Control
type
=
"
password
"
id
=
"
password
"
size
=
"
sm
"
aria
-
describedby
=
"
passwordHelpBlock
"
className
=
"
mx-sm-3
"
><
/Form.Control
>
<
Form
.
Text
id
=
"
password
"
muted
>
Must
be
8
-
20
characters
long
.
<
/Form.Text
>
<
/Col
>
<
/Form.Row
>
<
/Form.Group
>
<
Form
.
Group
controlId
=
"
formBasicPassword2
"
>
<
Form
.
Row
>
<
Form
.
Label
for
=
"
password2
"
>
Confirm
Password
<
/Form.Label
>
<
/Form.Row
>
<
Col
>
<
Form
.
Control
type
=
"
password
"
id
=
"
password2
"
size
=
"
sm
"
placeholder
=
"
Confirm Password
"
className
=
"
mx-sm-3
"
><
/Form.Control
>
<
/Col
>
<
/Form.Row
>
<
/Form.Group
>
<
Form
.
Group
controlId
=
"
formBasicTel
"
>
<
Form
.
Row
>
<
Form
.
Label
for
=
"
tel
"
>
Phone
Number
<
/Form.Label
>
<
/Form.Row
>
<
Col
>
<
Form
.
Control
type
=
"
text
"
id
=
"
tel
"
size
=
"
sm
"
placeholder
=
"
Enter your Phone Number
"
className
=
"
mx-sm-3
"
><
/Form.Control
>
<
/Col
>
<
/Form.Row
>
<
/Form.Group
>
<
Form
.
Group
controlId
=
"
formBasicAdd
"
>
<
Form
.
Row
>
<
Form
.
Label
>
a
ddress
<
/Form.Label
>
<
/Form.Row
>
<
Form
.
Label
>
A
ddress
<
/Form.Label
>
<
Col
>
<
Form
.
Control
type
=
"
text
"
id
=
"
add
"
size
=
"
sm
"
placeholder
=
"
Enter your Address
"
className
=
"
mx-sm-3
"
><
/Form.Control
>
<
/Col
>
<
/Form.Row
>
<
/Form.Group
>
<
/Form
>
<
Button
variant
=
"
outline-dark
"
type
=
"
submit
"
block
>
Sign
Up
<
/Button
>
<
/div
>
<
/Form
>
<
/Col
>
<
/Row
>
<
/Container
>
<
/div
>
)
}
...
...
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