File tree Expand file tree Collapse file tree 5 files changed +62
-6
lines changed Expand file tree Collapse file tree 5 files changed +62
-6
lines changed Original file line number Diff line number Diff line change 13
13
.placenametype {
14
14
display : flex;
15
15
flex-direction : row;
16
+ flex-wrap : wrap;
17
+ justify-content : center;
16
18
align-items : flex-end;
17
19
margin-top : 1rem ;
18
20
}
54
56
display : flex;
55
57
flex-direction : column;
56
58
align-content : center;
57
- width : 70px ;
59
+ }
60
+
61
+ .placeicon > img {
62
+ width : 70px
58
63
}
59
64
60
65
.placeiconname {
183
188
184
189
.review {
185
190
margin-top : 1rem ;
191
+ padding-bottom : 1rem ;
192
+ border-bottom : # 9d9d9d ;
193
+ border-bottom-width : 0.08rem ;
194
+ border-bottom-style : solid;
186
195
}
187
196
188
197
.reviewtop {
258
267
font-weight : bold;
259
268
margin-left : 0.6rem ;
260
269
}
270
+
271
+ .backweb {
272
+ margin-top : 1rem ;
273
+ margin-left : 1rem ;
274
+ color : black;
275
+ text-decoration : none;
276
+ }
277
+
278
+ @media screen and (max-width : 768px ) {
279
+ .backweb {
280
+ display : none;
281
+ }
282
+
283
+ .backmobile {
284
+ margin-top : 1rem ;
285
+ margin-left : 1rem ;
286
+ color : black;
287
+ text-decoration : none;
288
+ }
289
+ }
290
+
291
+ @media screen and (min-width : 769px ) {
292
+
293
+ .backmobile {
294
+ display : none;
295
+ }
296
+ }
Original file line number Diff line number Diff line change 1
1
import React , { useState , useEffect } from "react" ;
2
2
import { useParams } from "react-router-dom" ;
3
- import MapPage from "../MapPage/MapPage" ;
4
3
import ReviewPage from "./ReviewPage" ;
5
4
import ToggleView from "./ToggleView" ;
6
5
import { getPlaceDetail , getReviewAverage } from "../../services/user.service" ;
@@ -10,6 +9,7 @@ import toiletImg from "../../assets/images/toilet.svg";
10
9
import elevatorImg from "../../assets/images/elevator.svg" ;
11
10
import "./DetailPage.css" ;
12
11
import { Rating } from "react-simple-star-rating" ;
12
+ import { Link } from 'react-router-dom' ;
13
13
14
14
function DetailPage ( ) {
15
15
const [ place , setPlace ] = useState ( "" ) ;
@@ -25,6 +25,8 @@ function DetailPage() {
25
25
26
26
return (
27
27
< div className = "maincontainer" >
28
+ < Link to = { `/` } media = "screen and (min-width:768px) and (max-width: 1042px)" className = "backweb" > ◀ 뒤로가기</ Link >
29
+ < Link to = { `/list` } media = "screen and (min-width:0px) and (max-width: 768px)" className = "backmobile" > ◀ 리스트로 가기</ Link >
28
30
< div className = "placedetail" >
29
31
< div className = "placenametype" >
30
32
< h5 className = "placename" > { place . name } </ h5 >
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ function MapPage() {
139
139
</ Link >
140
140
</ div >
141
141
{ renderMarker }
142
- < Marker position = { { lat : + lat , lng : + lng } } /> ;
142
+ < Marker position = { { lat : + lat , lng : + lng } } icon = { myself } /> ;
143
143
</ GoogleMap >
144
144
) ;
145
145
} ;
Original file line number Diff line number Diff line change 54
54
55
55
.nav-button {
56
56
text-decoration : none;
57
- font-size : 15 px ;
57
+ font-size : 10 px ;
58
58
color : black;
59
59
float : left;
60
60
margin-right : 1rem ;
79
79
line-height : 270% ;
80
80
align-items : center;
81
81
}
82
+
83
+
84
+
85
+
86
+ @media screen and (max-width : 768px ) {
87
+ .webnav {
88
+ display : none;
89
+ }
90
+ }
91
+
92
+ @media screen and (min-width : 769px ) {
93
+
94
+ .mobilenav {
95
+ display : none;
96
+ }
97
+ }
Original file line number Diff line number Diff line change @@ -11,8 +11,10 @@ function NavBar() {
11
11
< img className = "logoimg" alt = "logo" src = { logoimg } > </ img >
12
12
</ Nav >
13
13
< Nav className = "nav-button" >
14
- < Nav . Link href = "/" > 즐겨찾기</ Nav . Link >
15
- < Nav . Link href = "/videoinput" > 마이페이지</ Nav . Link >
14
+ < Nav . Link href = "/" media = "screen and (min-width:768px) and (max-width: 1042px)" className = "webnav" > 지도 보기</ Nav . Link >
15
+ < Nav . Link href = "/" media = "screen and (min-width:768px) and (max-width: 1042px)" className = "webnav" > 리스트 보기</ Nav . Link >
16
+ < Nav . Link href = "/" media = "screen and (min-width:0px) and (max-width: 768px)" className = "mobilenav" > 지도 보기</ Nav . Link >
17
+ < Nav . Link href = "/list" media = "screen and (min-width:0px) and (max-width: 768px)" className = "mobilenav" > 리스트 보기</ Nav . Link >
16
18
</ Nav >
17
19
</ Navbar >
18
20
</ div >
You can’t perform that action at this time.
0 commit comments