Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
GCL_Project1
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
안형욱
2021-04-26 20:34:15 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
12317715bf200b9cc22f7668facbc436ff07a1c6
12317715
1 parent
32d33617
style: GlobalStyle 추가
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
frontend/src/App.js
frontend/src/App.js
View file @
1231771
import
React
from
'react'
;
import
{
createGlobalStyle
}
from
'styled-components'
;
import
{
BrowserRouter
,
Route
,
Switch
}
from
'react-router-dom'
;
import
Home
from
'./pages/Home'
;
import
LoginPage
from
'./pages/LoginPage'
;
const
GlobalStyle
=
createGlobalStyle
`
html,
body,
#root {
margin: 0;
padding: 0;
height: 100%;
}
html {
box-sizing: border-box;
* {
box-sizing: inherit;
}
}
`
;
const
App
=
()
=>
(
<
BrowserRouter
>
<
GlobalStyle
/>
<
Switch
>
<
Route
path
=
"/"
exact
component
=
{
Home
}
/
>
<
Route
path
=
"/login"
exact
component
=
{
LoginPage
}
/
>
<
/Switch
>
<
/BrowserRouter
>
);
...
...
Please
register
or
login
to post a comment