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
reservation-service
Commits
2a21eaec
Commit
2a21eaec
authored
Sep 18, 2020
by
Ha YeaJin
Browse files
as
parent
3f58923f
Changes
2
Show whitespace changes
Inline
Side-by-side
server/client/src/Pages/Login.js
View file @
2a21eaec
import
React
,
{
}
from
'
react
'
;
import
React
,
{
}
from
'
react
'
;
import
styled
from
'
styled-components
'
;
import
styled
from
'
styled-components
'
;
import
{
Link
}
from
'
react-router-dom
'
;
const
Log
=
styled
.
div
`
const
Log
=
styled
.
div
`
background-color: #981e1e;
background-color: #981e1e;
...
@@ -28,7 +29,9 @@ function Login() {
...
@@ -28,7 +29,9 @@ function Login() {
<
input
className
=
"
form-control
"
id
=
"
author_input
"
name
=
"
author
"
type
=
"
text
"
required
/>
<
input
className
=
"
form-control
"
id
=
"
author_input
"
name
=
"
author
"
type
=
"
text
"
required
/>
<
/div
>
<
/div
>
<
div
className
=
"
form-group
"
>
<
div
className
=
"
form-group
"
>
<
Link
to
=
"
/home
"
>
<
button
className
=
"
btn
"
type
=
"
submit
"
>
로그인
<
/button
>
<
button
className
=
"
btn
"
type
=
"
submit
"
>
로그인
<
/button
>
<
/Link
>
<
/div
>
<
/div
>
<
/form
>
<
/form
>
<
/Log
>
<
/Log
>
...
...
server/client/src/index.js
View file @
2a21eaec
...
@@ -11,7 +11,7 @@ ReactDOM.render(
...
@@ -11,7 +11,7 @@ ReactDOM.render(
<
Router
>
<
Router
>
<
Switch
>
<
Switch
>
<
Route
exact
path
=
"
/
"
component
=
{
Login
}
/
>
<
Route
exact
path
=
"
/
"
component
=
{
Login
}
/
>
<
Route
path
=
"
/
H
ome
"
component
=
{
Home
}
/
>
<
Route
path
=
"
/
h
ome
"
component
=
{
Home
}
/
>
<
/Switch
>
<
/Switch
>
<
/Router>
,
<
/Router>
,
document
.
getElementById
(
'
root
'
)
document
.
getElementById
(
'
root
'
)
...
...
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