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
c39773d6
Commit
c39773d6
authored
Jan 11, 2021
by
baesangjune
Browse files
.
parent
70cb1c86
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
client/.eslintcache
View file @
c39773d6
This diff is collapsed.
Click to expand it.
client/package.json
View file @
c39773d6
...
@@ -39,5 +39,5 @@
...
@@ -39,5 +39,5 @@
"last 1 safari version"
"last 1 safari version"
]
]
},
},
"proxy"
:
"http://localhost:3001"
"proxy"
:
"http://localhost:3001"
}
}
client/src/Components/Place.js
View file @
c39773d6
<<<<<<<
HEAD
import
React
from
'
react
'
;
import
{
Modal
,
Container
,
Row
,
Col
,
Button
,
Badge
,
Card
,
Accordion
,
Carousel
}
from
'
react-bootstrap
'
;
function
Place
(
props
)
{
return
(
<>
<
style
type
=
"
text/css
"
>
{
`
.modal-backdrop.in {
opacity: 0;
}
`
}
<
/style
>
<
Modal
{...
props
}
size
=
"
xl
"
keyboard
=
"
true
"
variant
=
"
backdrop.in
"
// show={lgShow}
// onHide={() => setLgShow(false)}
aria
-
labelledby
=
"
example-modal-sizes-title-lg
"
>
<
Modal
.
Header
closeButton
>
<
Modal
.
Title
id
=
"
contained-modal-title-vcenter
"
style
=
{{
fontSize
:
'
40px
'
}}
>
{
props
.
index
+
1
}.
{
props
.
search
.
name
}
<
/Modal.Title
>
<
/Modal.Header
>
<
Modal
.
Body
className
=
"
show-grid
"
>
<
Container
style
=
{{
fontSize
:
'
40px
'
}}
>
<
Accordion
defaultActiveKey
=
"
0
"
>
<
Accordion
.
Toggle
as
=
{
Button
}
variant
=
"
link
"
eventKey
=
"
0
"
>
<
a
className
=
"
mb-2
"
>
다음의
블로그
보기
<
/a
>
<
/Accordion.Toggle
>
<
Accordion
.
Collapse
eventKey
=
"
0
"
>
<
Card
.
Body
><
div
>
주도
전역을
지배하는
한라산은
남한에서
가장
높은
산으로
높이는
1
,
947.3
m이다
.
한라산이라는
이름은
산이
높아
산정에
서면
은하수를
잡아당길
수
있다는
뜻이며
,
부악
·
원산
·
선산
·
두무악
·
영주산
·
부라산
·
혈망봉
·
여장군
등으로도
불려왔다
.
<
/div></
Card
.
Body
>
<
/Accordion.Collapse
>
<
Row
>
<
Accordion
.
Toggle
as
=
{
Button
}
variant
=
"
link
"
eventKey
=
"
1
"
>
<
a
className
=
"
mb-2
"
>
네이버의
블로그
보기
<
/a
>
<
/Accordion.Toggle
>
<
Accordion
.
Collapse
eventKey
=
"
1
"
>
<
Card
.
Body
><
div
>
한라산은
1966
년
한라산
천연보호구역으로
,
1970
년
국립공원으로
지정되었다
.
그리고
2002
년에는
유네스코
생물권보전지역으로
지정되었으며
2007
년에는
유네스코
세계자연유산으로
등재되었다
.
2008
년에는
물장오리오름
산정화구호
습지가
람사르
습지로
등록되어
보호
관리되고
있다
<
/div></
Card
.
Body
>
<
/Accordion.Collapse
>
<
/Row
>
<
Row
>
<
Accordion
.
Toggle
as
=
{
Button
}
variant
=
"
link
"
eventKey
=
"
2
"
>
<
a
className
=
"
mb-2
"
>
구글의
블로그
보기
<
/a
>
<
/Accordion.Toggle
>
<
Accordion
.
Collapse
eventKey
=
"
2
"
>
<
Card
.
Body
><
div
>
한라산은
제주도에
있는
해발
1
,
947.06
m
,
면적
약
1
,
820
km
²
의
화산으로
,
제주도의
면적
대부분을
차지하고
있다
.
정상에
백록담이라는
화산호가
있는데
,
백록담이라는
이름은
흰
사슴이
물을
먹는
곳이라는
뜻에서
왔다고
전해진다
.
<
/div></
Card
.
Body
>
<
/Accordion.Collapse
>
<
/Row
>
<
/Accordion
>
<
Row
style
=
{{
color
:
'
white
'
}}
>
<
a
href
=
"
https://www.daum.net/
"
className
=
"
mb-2
"
>
다음
<
/a><a href="https:/
/
www
.
naver
.
com
/
"
className=
"
mb
-
2
"
>네이버</a><a href=
"
https
:
//www.google.com/" className="mb-2">구글</a>
<
/Row
>
<
/Container
>
<
Carousel
>
<
Carousel
.
Item
interval
=
{
1000
}
>
<
h3
>
다음
블로그
<
/h3
>
<
div
>
주도
전역을
지배하는
한라산은
남한에서
가장
높은
산으로
높이는
1
,
947.3
m이다
.
한라산이라는
이름은
산이
높아
산정에
서면
은하수를
잡아당길
수
있다는
뜻이며
,
부악
·
원산
·
선산
·
두무악
·
영주산
·
부라산
·
혈망봉
·
여장군
등으로도
불려왔다
.
<
/div
>
<
/Carousel.Item
>
<
Carousel
.
Item
interval
=
{
1000
}
>
<
h3
>
네이버
블로그
<
/h3
>
<
div
>
한라산은
1966
년
한라산
천연보호구역으로
,
1970
년
국립공원으로
지정되었다
.
그리고
2002
년에는
유네스코
생물권보전지역으로
지정되었으며
2007
년에는
유네스코
세계자연유산으로
등재되었다
.
2008
년에는
물장오리오름
산정화구호
습지가
람사르
습지로
등록되어
보호
관리되고
있다
<
/div
>
<
/Carousel.Item
>
<
Carousel
.
Item
interval
=
{
1000
}
>
<
h3
>
구글
블로그
<
/h3
>
<
div
>
한라산은
제주도에
있는
해발
1
,
947.06
m
,
면적
약
1
,
820
km
²
의
화산으로
,
제주도의
면적
대부분을
차지하고
있다
.
정상에
백록담이라는
화산호가
있는데
,
백록담이라는
이름은
흰
사슴이
물을
먹는
곳이라는
뜻에서
왔다고
전해진다
.
<
/div
>
<
/Carousel.Item
>
<
/Carousel
>
<
/Modal.Body
>
<
Modal
.
Footer
>
<
Button
block
onClick
=
{
props
.
onHide
}
>
Close
<
/Button
>
<
/Modal.Footer
>
<
/Modal
>
<
/
>
=======
import
axios
from
'
axios
'
;
import
axios
from
'
axios
'
;
import
React
,
{
useEffect
,
useState
}
from
'
react
'
;
import
React
,
{
useEffect
,
useState
}
from
'
react
'
;
import
{
Modal
,
Container
,
Row
,
Col
,
Button
,
Badge
,
Card
,
Accordion
,
Carousel
}
from
'
react-bootstrap
'
;
import
{
Modal
,
Container
,
Row
,
Col
,
Button
,
Badge
,
Card
,
Accordion
,
Carousel
}
from
'
react-bootstrap
'
;
...
@@ -173,7 +91,6 @@ function Place(props) {
...
@@ -173,7 +91,6 @@ function Place(props) {
<
Button
block
onClick
=
{
props
.
onHide
}
>
Close
<
/Button
>
<
Button
block
onClick
=
{
props
.
onHide
}
>
Close
<
/Button
>
<
/Modal.Footer
>
<
/Modal.Footer
>
<
/Modal
>
<
/Modal
>
>>>>>>>
origin
/
cherry
);
);
}
}
...
...
client/src/Search.js
View file @
c39773d6
...
@@ -3,21 +3,13 @@ import { Link, Redirect } from 'react-router-dom';
...
@@ -3,21 +3,13 @@ import { Link, Redirect } from 'react-router-dom';
import
ohuh
from
'
./ohuh-sm.PNG
'
;
import
ohuh
from
'
./ohuh-sm.PNG
'
;
import
Place
from
'
./Components/Place
'
;
import
Place
from
'
./Components/Place
'
;
import
{
Container
,
Form
,
Row
,
Col
,
Card
,
Image
,
InputGroup
,
FormControl
,
Button
,
Pagination
}
from
'
react-bootstrap
'
;
import
{
Container
,
Form
,
Row
,
Col
,
Card
,
Image
,
InputGroup
,
FormControl
,
Button
,
Pagination
}
from
'
react-bootstrap
'
;
<<<<<<<
HEAD
import
Paginations
from
'
./pagination.js
'
;
=======
import
Paginations
from
'
./Components/Paginations
'
;
import
Paginations
from
'
./Components/Paginations
'
;
>>>>>>>
origin
/
cherry
function
Search
(
props
)
{
function
Search
(
props
)
{
const
endPage
=
10
;
const
endPage
=
10
;
const
[
state
,
setState
]
=
useState
(
false
);
const
[
state
,
setState
]
=
useState
(
false
);
const
[
index
,
setIndex
]
=
useState
(
1
);
const
[
index
,
setIndex
]
=
useState
(
1
);
<<<<<<<
HEAD
const
[
showSet
,
setShowSet
]
=
useState
([
false
,
false
,
false
,
false
]);
=======
const
[
showSet
,
setShowSet
]
=
useState
([
false
,
false
,
false
,
false
]);
const
[
showSet
,
setShowSet
]
=
useState
([
false
,
false
,
false
,
false
]);
>>>>>>>
origin
/
cherry
const
[
search
,
setSearch
]
=
useState
(
props
.
location
.
state
.
id
);
const
[
search
,
setSearch
]
=
useState
(
props
.
location
.
state
.
id
);
const
[
mobile
,
setMobile
]
=
useState
();
const
[
mobile
,
setMobile
]
=
useState
();
...
@@ -456,27 +448,14 @@ function Search(props) {
...
@@ -456,27 +448,14 @@ function Search(props) {
return
page
return
page
}
}
<<<<<<<
HEAD
// function handleShow(){
// setShow(true)
// }
=======
>>>>>>>
origin
/
cherry
const
pagePlace
=
paginate
(
places
,
index
)
const
pagePlace
=
paginate
(
places
,
index
)
return
(
return
(
<
Container
>
<
Container
>
<<<<<<<
HEAD
<
Link
to
=
"
/
"
className
=
"
d-flex justify-content-center
"
><
Image
src
=
{
ohuh
}
/></
Link
>
<
Row
className
=
"
mb-2
"
className
=
"
d-flex justify-content-center
"
>
<
Form
style
=
{{
width
:
"
90vw
"
}}
onSubmit
=
{
handleSubmit
}
>
=======
<
Link
to
=
"
/
"
className
=
"
d-flex justify-content-center
"
><
Image
src
=
{
ohuh
}
/></
Link
>
<
Link
to
=
"
/
"
className
=
"
d-flex justify-content-center
"
><
Image
src
=
{
ohuh
}
/></
Link
>
<
Row
className
=
"
mb-2
"
className
=
"
d-flex justify-content-center
"
>
<
Row
className
=
"
mb-2
"
className
=
"
d-flex justify-content-center
"
>
<
Form
style
=
{{
width
:
"
90vw
"
}}
onSubmit
=
{
handleSubmit
}
>
<
Form
style
=
{{
width
:
"
90vw
"
}}
onSubmit
=
{
handleSubmit
}
>
>>>>>>>
origin
/
cherry
<
InputGroup
size
=
"
lg
"
>
<
InputGroup
size
=
"
lg
"
>
<
FormControl
<
FormControl
placeholder
=
"
검색어를 입력하세요.
"
placeholder
=
"
검색어를 입력하세요.
"
...
@@ -495,20 +474,6 @@ function Search(props) {
...
@@ -495,20 +474,6 @@ function Search(props) {
{
pagePlace
.
map
((
place
,
index
)
=>
{
{
pagePlace
.
map
((
place
,
index
)
=>
{
return
(
return
(
<
Col
key
=
{
index
}
md
=
{
6
}
>
<
Col
key
=
{
index
}
md
=
{
6
}
>
<<<<<<<
HEAD
<
Card
align
=
"
center
"
border
=
"
info
"
style
=
{{
margin
:
"
3%
"
}}
>
<
Card
.
Title
style
=
{{
margin
:
"
3%
"
,
fontSize
:
'
200%
'
,
fontWeight
:
'
bold
'
}}
>
{
place
.
name
}
<
/Card.Title
>
<
Card
.
Img
variant
=
"
top
"
style
=
{{
padding
:
"
5%
"
,
width
:
"
100%
"
,
height
:
"
340px
"
}}
src
=
{
place
.
img
}
/
>
<
Card
.
Body
>
<
Card
.
Text
style
=
{{
overflow
:
'
auto
'
,
fontSize
:
'
25px
'
,
width
:
'
100%
'
,
height
:
"
80px
"
}}
>
{
place
.
address
}
<
/Card.Text
>
<
Button
variant
=
"
primary
"
onClick
=
{()
=>
{
const
showArr
=
[
false
,
false
,
false
,
false
]
showArr
[
index
]
=
true
setShowSet
(
showArr
)
}
}
>
{
place
.
name
}
자세히
살펴보기
<
/Button
>
<
Place
search
=
{
place
}
index
=
{
index
}
show
=
{
showSet
[
index
]}
onHide
=
{()
=>
setShowSet
([
false
,
false
,
false
,
false
])}
/
>
=======
<
Card
align
=
"
center
"
border
=
"
info
"
style
=
{{
margin
:
"
3%
"
}}
>
<
Card
align
=
"
center
"
border
=
"
info
"
style
=
{{
margin
:
"
3%
"
}}
>
<
Card
.
Title
style
=
{{
margin
:
"
3%
"
,
fontSize
:
'
200%
'
,
fontWeight
:
'
bold
'
}}
>
{
place
.
name
}
<
/Card.Title
>
<
Card
.
Title
style
=
{{
margin
:
"
3%
"
,
fontSize
:
'
200%
'
,
fontWeight
:
'
bold
'
}}
>
{
place
.
name
}
<
/Card.Title
>
<
Card
.
Img
variant
=
"
top
"
style
=
{{
padding
:
"
5%
"
,
width
:
"
100%
"
,
height
:
"
340px
"
}}
src
=
{
place
.
img
}
/
>
<
Card
.
Img
variant
=
"
top
"
style
=
{{
padding
:
"
5%
"
,
width
:
"
100%
"
,
height
:
"
340px
"
}}
src
=
{
place
.
img
}
/
>
...
@@ -521,7 +486,6 @@ function Search(props) {
...
@@ -521,7 +486,6 @@ function Search(props) {
setShowSet
(
showArr
)
setShowSet
(
showArr
)
}}
>
{
place
.
name
}
자세히
살펴보기
<
/Button
>
}}
>
{
place
.
name
}
자세히
살펴보기
<
/Button
>
<
Place
search
=
{
place
}
index
=
{
index
}
show
=
{
showSet
[
index
]}
onHide
=
{()
=>
setShowSet
([
false
,
false
,
false
,
false
])}
/
>
<
Place
search
=
{
place
}
index
=
{
index
}
show
=
{
showSet
[
index
]}
onHide
=
{()
=>
setShowSet
([
false
,
false
,
false
,
false
])}
/
>
>>>>>>>
origin
/
cherry
<
/Card.Body
>
<
/Card.Body
>
<
/Card
>
<
/Card
>
<
/Col
>
<
/Col
>
...
@@ -534,11 +498,6 @@ function Search(props) {
...
@@ -534,11 +498,6 @@ function Search(props) {
<
Paginations
index
=
{
index
}
endPage
=
{
endPage
}
handlePage
=
{
handlePage
}
><
/Paginations
>
<
Paginations
index
=
{
index
}
endPage
=
{
endPage
}
handlePage
=
{
handlePage
}
><
/Paginations
>
<
/Row
>
<
/Row
>
<
/Container
>
<
/Container
>
<<<<<<<
HEAD
=======
>>>>>>>
origin
/
cherry
);
);
}
}
...
...
client/src/index.js
View file @
c39773d6
...
@@ -12,7 +12,7 @@ import {
...
@@ -12,7 +12,7 @@ import {
Route
,
Route
,
Redirect
,
Redirect
,
}
from
"
react-router-dom
"
;
}
from
"
react-router-dom
"
;
import
axios
from
'
axios
'
;
axios
.
defaults
.
validateStatus
=
function
(
status
){
axios
.
defaults
.
validateStatus
=
function
(
status
){
return
status
<
500
;
//default
return
status
<
500
;
//default
...
...
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