Skip to content

Commit 202c56a

Browse files
authored
Merge pull request #61 from coconut-thisABLE/feat/#55
ui change
2 parents 4bb7706 + 43d9400 commit 202c56a

File tree

5 files changed

+62
-6
lines changed

5 files changed

+62
-6
lines changed

thisable/src/components/DetailPage/DetailPage.css

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
.placenametype {
1414
display: flex;
1515
flex-direction: row;
16+
flex-wrap: wrap;
17+
justify-content: center;
1618
align-items: flex-end;
1719
margin-top: 1rem;
1820
}
@@ -54,7 +56,10 @@
5456
display: flex;
5557
flex-direction: column;
5658
align-content: center;
57-
width: 70px;
59+
}
60+
61+
.placeicon > img {
62+
width: 70px
5863
}
5964

6065
.placeiconname {
@@ -183,6 +188,10 @@
183188

184189
.review {
185190
margin-top: 1rem;
191+
padding-bottom: 1rem;
192+
border-bottom: #9d9d9d;
193+
border-bottom-width: 0.08rem;
194+
border-bottom-style: solid;
186195
}
187196

188197
.reviewtop {
@@ -258,3 +267,30 @@
258267
font-weight: bold;
259268
margin-left: 0.6rem;
260269
}
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+
}

thisable/src/components/DetailPage/DetailPage.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, { useState, useEffect } from "react";
22
import { useParams } from "react-router-dom";
3-
import MapPage from "../MapPage/MapPage";
43
import ReviewPage from "./ReviewPage";
54
import ToggleView from "./ToggleView";
65
import { getPlaceDetail, getReviewAverage } from "../../services/user.service";
@@ -10,6 +9,7 @@ import toiletImg from "../../assets/images/toilet.svg";
109
import elevatorImg from "../../assets/images/elevator.svg";
1110
import "./DetailPage.css";
1211
import { Rating } from "react-simple-star-rating";
12+
import {Link} from 'react-router-dom';
1313

1414
function DetailPage() {
1515
const [place, setPlace] = useState("");
@@ -25,6 +25,8 @@ function DetailPage() {
2525

2626
return (
2727
<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>
2830
<div className="placedetail">
2931
<div className="placenametype">
3032
<h5 className="placename">{place.name}</h5>

thisable/src/components/MapPage/MapPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function MapPage() {
139139
</Link>
140140
</div>
141141
{renderMarker}
142-
<Marker position={{ lat: +lat, lng: +lng }} />;
142+
<Marker position={{ lat: +lat, lng: +lng }} icon={myself}/>;
143143
</GoogleMap>
144144
);
145145
};

thisable/src/components/NavBar/NavBar.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
.nav-button {
5656
text-decoration: none;
57-
font-size: 15px;
57+
font-size: 10px;
5858
color: black;
5959
float: left;
6060
margin-right: 1rem;
@@ -79,3 +79,19 @@
7979
line-height: 270%;
8080
align-items: center;
8181
}
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+
}

thisable/src/components/NavBar/NavBar.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ function NavBar() {
1111
<img className="logoimg" alt="logo" src={logoimg}></img>
1212
</Nav>
1313
<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>
1618
</Nav>
1719
</Navbar>
1820
</div>

0 commit comments

Comments
 (0)