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-05-10 17:20:23 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
a66230e064f82f33f9e215779da16c04024a39f6
a66230e0
2 parents
9f29621a
18ff2abb
Merge branch 'feat/homepage' into 'develop'
Feat/homepage See merge request
!8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
frontend/src/components/common/Input.js
frontend/src/pages/HomePage.js
frontend/src/components/common/Input.js
View file @
a66230e
...
...
@@ -55,14 +55,14 @@ const Input = ({
return
;
}
const
params
=
new
URLSearchParams
({
query
});
history
.
push
(
`?
${
params
.
toString
()}
`
);
history
.
push
(
`
search
?
${
params
.
toString
()}
`
);
}
}}
/
>
<
SearchIconWrap
onClick
=
{()
=>
{
const
params
=
new
URLSearchParams
({
query
});
history
.
push
(
`?
${
params
.
toString
()}
`
);
history
.
push
(
`
search
?
${
params
.
toString
()}
`
);
}}
>
<
SearchBox
color
=
"blue"
size
=
"50px"
display
=
{
display
}
/
>
...
...
frontend/src/pages/HomePage.js
View file @
a66230e
import
React
from
'react'
;
import
styled
from
'styled-components'
;
import
{
Link
}
from
'react-router-dom'
;
import
Button
from
'../components/common/Button'
;
import
DropDownButton
from
'../components/common/DropdownButton'
;
import
Input
from
'../components/common/Input'
;
...
...
@@ -40,7 +41,9 @@ const HomePage = () => {
{
/* Todo : 로그인 했을 경우 로그인 버튼 숨기기 */
}
<
LoginButtonBlock
>
<
Button
>
로그인
<
/Button>
<
Link
to
=
"/login"
>
<
Button
>
로그인
<
/Button>
<
/Link>
<
/LoginButtonBlock>
<
/Main>
);
...
...
Please
register
or
login
to post a comment