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
965549ca
Commit
965549ca
authored
Jan 04, 2021
by
Lee SeoYeon
Browse files
.
parent
f18136e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
client/src/App.js
View file @
965549ca
import
React
,
{
useEffect
,
useState
}
from
'
react
'
;
import
React
,
{
useEffect
,
useState
}
from
'
react
'
;
import
{
Link
,
Redirect
}
from
'
react-router-dom
'
;
import
{
Link
,
Redirect
}
from
'
react-router-dom
'
;
import
ohuh
from
'
./ohuh.PNG
'
;
import
ohuh
from
'
./ohuh.PNG
'
;
import
{
Container
,
Row
,
Form
,
Image
,
InputGroup
,
Button
}
from
'
react-bootstrap
'
;
import
{
Col
,
FormControl
,
Container
,
Row
,
Form
,
Image
,
InputGroup
,
Button
}
from
'
react-bootstrap
'
;
...
@@ -24,28 +24,34 @@ function App() {
...
@@ -24,28 +24,34 @@ function App() {
setState
(
true
);
setState
(
true
);
}
}
return
(
return
(
<
Container
className
=
"
vh-100
"
>
<
Container
className
=
"
vh-100
"
>
<
Row
className
=
"
d-flex justify-content-md-center
"
>
<
Row
className
=
"
d-flex justify-content-md-center
"
>
<
Image
src
=
{
ohuh
}
/
>
{
/* <Row as={Image} src={ohuh} col-sm-5 col-lg-6 offset-lg-0> */
}
<
/Row
>
<
Col
md
=
{
6
}
className
=
"
mt-5
"
>
<
Row
className
=
"
d-flex justify-content-md-center
"
>
<
Image
src
=
{
ohuh
}
fluid
/>
<
Form
className
=
"
vw-100
"
onSubmit
=
{
handleSubmit
}
>
<
/Col
>
<
InputGroup
>
{
/* </Row> */
}
<
Form
.
Control
<
Col
lg
=
{{
span
:
10
,
offset
:
1
}}
>
{
/*xs={{ span: 12, offset: 3 }} */
}
size
=
"
lg
"
<
InputGroup
size
=
"
lg
"
lg
=
{
6
}
xs
=
{
5
}
>
<
FormControl
className
=
"
d-flex justify-content-lg-center
"
placeholder
=
"
검색어를 입력하세요.
"
placeholder
=
"
검색어를 입력하세요.
"
aria
-
label
=
"
Large
"
aria
-
label
=
"
Large
"
aria
-
describedby
=
"
inputGroup-sizing-sm
"
aria
-
describedby
=
"
inputGroup-sizing-sm
"
onChange
=
{
handleChange
}
onChange
=
{
handleChange
}
/
>
/
>
<
InputGroup
.
Append
>
<
InputGroup
.
Append
>
<
Button
type
=
'
submit
'
variant
=
"
outline-secondary
"
>
검색
<
/Button
>
<
Button
variant
=
"
outline-secondary
"
onClick
=
{
handleSubmit
}
>
검색
<
/Button
>
<
/InputGroup.Append
>
<
/InputGroup.Append
>
<
/InputGroup
>
<
/InputGroup
>
<
/Form
>
{
/* <form onSubmit={handleSubmit}>
<input className="" name="search" type="text" placeholder="검색어를 입력하세요." onChange={handleChange}></input>
<Link to="/search"><button type="submit">검색</button></Link>
</form> */
}
<
/Col
>
<
/Row
>
<
/Row
>
<
/Container
>
<
/Container
>
);
);
...
...
client/src/Search.js
View file @
965549ca
...
@@ -439,7 +439,11 @@ function Search(props) {
...
@@ -439,7 +439,11 @@ function Search(props) {
<
Row
className
=
"
mt-2 mb-2
"
>
<
Row
className
=
"
mt-2 mb-2
"
>
<
Form
className
=
"
vw-100
"
onSubmit
=
{
handleSubmit
}
>
<
Form
className
=
"
vw-100
"
onSubmit
=
{
handleSubmit
}
>
<
InputGroup
size
=
"
lg
"
>
<
InputGroup
size
=
"
lg
"
>
<
Link
to
=
"
/
"
><
Image
src
=
{
ohuh
}
/></
Link
>
<
Link
to
=
"
/
"
>
<
Col
>
<
Image
src
=
{
ohuh
}
fluid
/>
<
/Col>
<
/Link
>
<
FormControl
<
FormControl
placeholder
=
"
검색어를 입력하세요.
"
placeholder
=
"
검색어를 입력하세요.
"
value
=
{
search
}
value
=
{
search
}
...
@@ -448,7 +452,7 @@ function Search(props) {
...
@@ -448,7 +452,7 @@ function Search(props) {
onChange
=
{
handleChange
}
onChange
=
{
handleChange
}
/
>
/
>
<
InputGroup
.
Append
>
<
InputGroup
.
Append
>
<
Button
type
=
"
submit
"
variant
=
"
outline-secondary
"
>
검색
<
/Button
>
<
Button
type
=
"
submit
"
variant
=
"
outline-secondary
"
style
=
{{
maxHeight
:
"
8vh
"
,
maxWidth
:
"
14vh
"
}}
>
검색
<
/Button
>
<
/InputGroup.Append
>
<
/InputGroup.Append
>
<
/InputGroup
>
<
/InputGroup
>
<
/Form
>
<
/Form
>
...
...
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