Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/apis/hooks/useGetDetailRestSpots.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import { useQuery } from '@tanstack/react-query'
import apiClient from '../apiClient'
import { DetailRestSpot } from '@/types'
import { DetailRestSpot, RestAreaDetailInfoList } from '@/types'

interface Request {
restareaId: string | undefined
restAreaId: number
}

const useGetDetailRestSpots = ({ restareaId }: Request) => {
const useGetDetailRestSpots = ({ restAreaId }: Request) => {
const getDetailRestSpots = async () => {
const response = await apiClient.get(
`/restarea/detail?restareaId=${restareaId}`,
`/restarea/detail?restareaId=${restAreaId}`,
)
return response.data.data
}

return useQuery<DetailRestSpot, Error>({
queryKey: ['detailRestSpots'],
queryFn: getDetailRestSpots,
enabled: !!restareaId,
enabled: !!restAreaId,
})
}

Expand Down
182 changes: 91 additions & 91 deletions src/pages/NaverPage/components/InputSubmit/inputText.css
Original file line number Diff line number Diff line change
@@ -1,144 +1,144 @@
/*!* index.css *!*/

.inputText {
position: relative;
width: 100%;
height: 2.5rem;
box-sizing: border-box;
overflow: visible;
position: relative;
width: 100%;
height: 2.5rem;
box-sizing: border-box;
overflow: visible;
}

.inputText input {
position: relative;
margin-bottom: 1px;
width: 100%;
height: 100%;
border: 1px solid rgb(0, 0, 0, 0.5);
border-top: 1px solid rgb(0, 0, 0, 0.1);
border-bottom: none;
padding: 1rem;
position: relative;
margin-bottom: 1px;
width: 100%;
height: 100%;
border: 1px solid rgb(0, 0, 0, 0.5);
border-top: 1px solid rgb(0, 0, 0, 0.1);
border-bottom: none;
padding: 1rem;
}

.inputText.selected input {
padding-left: 1.5rem;
padding-left: 1.5rem;
}

.inputText.selected:before {
content: '\f111';
font-family: 'Font Awesome 5 Free', serif;
font-size: 0.5rem;
content: '\f111';
font-family: 'Font Awesome 5 Free', serif;
font-size: 0.5rem;

display: flex;
justify-content: center;
align-items: center;
display: flex;
justify-content: center;
align-items: center;

z-index: 1;
position: absolute;
top:0;
left: 0.7rem;
height: inherit;
z-index: 1;
position: absolute;
top: 0;
left: 0.7rem;
height: inherit;
}

.inputText.selected.start:before {
color: rgb(70, 201, 105);
text-shadow: 0 0 1px rgb(70, 201, 105);
color: rgb(70, 201, 105);
text-shadow: 0 0 1px rgb(70, 201, 105);
}

.inputText.selected.goal:before {
color: rgb(232, 61, 90);
text-shadow: 0 0 1px rgb(232, 61, 90);
color: rgb(232, 61, 90);
text-shadow: 0 0 1px rgb(232, 61, 90);
}

.inputText:first-child input {
border-top: 1px solid rgb(0, 0, 0, 0.5);
border-radius: 5px 5px 0 0;
border-top: 1px solid rgb(0, 0, 0, 0.5);
border-radius: 5px 5px 0 0;
}

.inputText:last-child input {
border-bottom: 1px solid rgb(0, 0, 0, 0.5);
border-radius: 0 0 5px 5px;
border-bottom: 1px solid rgb(0, 0, 0, 0.5);
border-radius: 0 0 5px 5px;
}

.inputText input[type=text]:focus {
outline: none;
border: 1px solid dodgerblue;
box-shadow: 0 0 3px rgb(30, 144, 255, 0.5);
z-index: 1; /* 포컀슀된 μš”μ†Œμ˜ z-indexλ₯Ό λ†’μ—¬μ„œ κ·Έλ¦Όμžκ°€ μž˜λ¦¬μ§€ μ•Šλ„λ‘ μ„€μ • */
.inputText input[type='text']:focus {
outline: none;
border: 1px solid dodgerblue;
box-shadow: 0 0 3px rgb(30, 144, 255, 0.5);
z-index: 1; /* 포컀슀된 μš”μ†Œμ˜ z-indexλ₯Ό λ†’μ—¬μ„œ κ·Έλ¦Όμžκ°€ μž˜λ¦¬μ§€ μ•Šλ„λ‘ μ„€μ • */
}

.inputText input::placeholder {
color: rgb(51, 51, 51, 0.5);
opacity: 50%;
color: rgb(51, 51, 51, 0.5);
opacity: 50%;
}

.resultBox {
position: absolute;
top: 98%;
z-index: 2;
width: 100%;
background-color: white;
border: 1px solid dodgerblue;
border-top: 1px solid rgb(0, 0, 0, 0.1);
border-radius: 0 0 5px 5px;
box-shadow: 2px 2px 3px rgb(30, 144, 255, 0.2);
text-shadow: 0 0 1px rgb(0, 0, 0, 0.1);
position: absolute;
top: 98%;
z-index: 2;
width: 100%;
background-color: white;
border: 1px solid dodgerblue;
border-top: 1px solid rgb(0, 0, 0, 0.1);
border-radius: 0 0 5px 5px;
box-shadow: 2px 2px 3px rgb(30, 144, 255, 0.2);
text-shadow: 0 0 1px rgb(0, 0, 0, 0.1);
}

.resultBox > div {
position: relative;
letter-spacing: -0.05em;
padding: 0.5rem 1.5rem;
margin-bottom: 2px;
overflow: hidden;
box-sizing: border-box;
cursor: pointer;
position: relative;
letter-spacing: -0.05em;
padding: 0.5rem 1.5rem;
margin-bottom: 2px;
overflow: hidden;
box-sizing: border-box;
cursor: pointer;
}

.resultBox > div:hover {
background-color: rgb(0, 0, 0, 0.1);
box-shadow: 0 2px 2px rgb(0, 0, 0, 0.2);
box-sizing: border-box;
background-color: rgb(0, 0, 0, 0.1);
box-shadow: 0 2px 2px rgb(0, 0, 0, 0.2);
box-sizing: border-box;
}

.resultBox div p:nth-child(1):before {
position: absolute;
top: 50%;
left: -1.5rem;
transform: translateY(-50%);
position: absolute;
top: 50%;
left: -1.5rem;
transform: translateY(-50%);

content: '\f3c5';
font-family: 'Font Awesome 5 Free', serif;
font-size: 1em;
line-height: 1.5rem /* 20px */;
color: rgb(51, 51, 51, 0.6);
font-weight: 600; /* ν•„μš”μ— 따라 κ°€μ€‘μΉ˜λ₯Ό μ‘°μ •ν•©λ‹ˆλ‹€ */
margin-left: 0.5em; /* μ•„μ΄μ½˜κ³Ό ν…μŠ€νŠΈ μ‚¬μ΄μ˜ 간격 */
content: '\f3c5';
font-family: 'Font Awesome 5 Free', serif;
font-size: 1em;
line-height: 1.5rem /* 20px */;
color: rgb(51, 51, 51, 0.6);
font-weight: 600; /* ν•„μš”μ— 따라 κ°€μ€‘μΉ˜λ₯Ό μ‘°μ •ν•©λ‹ˆλ‹€ */
margin-left: 0.5em; /* μ•„μ΄μ½˜κ³Ό ν…μŠ€νŠΈ μ‚¬μ΄μ˜ 간격 */
}

.resultBox div p:nth-child(1) {
position: relative;
float: left;
font-size: 0.8rem;
line-height: 1.5rem;
color: rgb(0, 0, 0, 1);
margin-left: 0.7rem;
position: relative;
float: left;
font-size: 0.8rem;
line-height: 1.5rem;
color: rgb(0, 0, 0, 1);
margin-left: 0.7rem;
}

.resultBox div p:nth-child(2) {
float: right;
font-size: 0.6rem;
line-height: 1.5rem;
color: rgb(0, 0, 0, 0.4);
float: right;
font-size: 0.6rem;
line-height: 1.5rem;
color: rgb(0, 0, 0, 0.4);
}

.resultBox div p:nth-child(3) {
clear: both;
font-size: 0.725rem;
line-height: 1.5rem;
color: rgb(0, 0, 0, 0.8);
margin-left: 1.2em;

white-space: nowrap; /* ν…μŠ€νŠΈλ₯Ό ν•œ μ€„λ‘œ μœ μ§€ */
overflow: hidden; /* λ„˜μΉ˜λŠ” μ½˜ν…μΈ λ₯Ό μˆ¨κΉ€ */
text-overflow: ellipsis; /* λ„˜μΉ˜λŠ” ν…μŠ€νŠΈλ₯Ό λ§μ€„μž„ν‘œλ‘œ ν‘œμ‹œ */
}
clear: both;
font-size: 0.725rem;
line-height: 1.5rem;
color: rgb(0, 0, 0, 0.8);
margin-left: 1.2em;

white-space: nowrap; /* ν…μŠ€νŠΈλ₯Ό ν•œ μ€„λ‘œ μœ μ§€ */
overflow: hidden; /* λ„˜μΉ˜λŠ” μ½˜ν…μΈ λ₯Ό μˆ¨κΉ€ */
text-overflow: ellipsis; /* λ„˜μΉ˜λŠ” ν…μŠ€νŠΈλ₯Ό λ§μ€„μž„ν‘œλ‘œ ν‘œμ‹œ */
}
2 changes: 0 additions & 2 deletions src/pages/NaverPage/components/PathInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ const PathInfo = ({
})
}

console.log(``)

return (
<div className={`pathInfo`}>
<p className="noticeText">
Expand Down
72 changes: 36 additions & 36 deletions src/pages/NaverPage/components/RestAreaInfo/index.css
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
/* RestAreaInfo.css */

.restAreaInfo {
display: flex;
flex-direction: column;
height: 100%;
box-sizing: border-box;
overflow-y: auto;
scrollbar-width: none; /* μŠ€ν¬λ‘€λ°” μ•ˆ 보이게 μ„€μ • */
display: flex;
flex-direction: column;
height: 100%;
box-sizing: border-box;
overflow-y: auto;
scrollbar-width: none; /* μŠ€ν¬λ‘€λ°” μ•ˆ 보이게 μ„€μ • */
}

.restAreaInfo .slideBtn.active {
position: absolute;
width: 2.75rem;
height: 2.75rem;
border: 1px solid rgb(0, 0, 0, 0.1);
border-left: none;
border-radius: 0 5px 5px 0;
background-color: white;
cursor: pointer;
position: absolute;
width: 2.75rem;
height: 2.75rem;
border: 1px solid rgb(0, 0, 0, 0.1);
border-left: none;
border-radius: 0 5px 5px 0;
background-color: white;
cursor: pointer;

top: 5%;
left: 100%;
top: 5%;
left: 100%;
}

.restAreaInfo .slideBtn.active:after {
content: '\f00d'; /* < */
font-family: 'Font Awesome 5 Free', serif;
font-size: 1.4em;
color: rgb(51, 51, 51, 0.6);
box-shadow: 1px 0 20px rgb(0, 0, 0, 0.1);
cursor: pointer;
display: flex;
justify-content:center;
align-items:center;
width: inherit;
height: inherit;
content: '\f00d'; /* < */
font-family: 'Font Awesome 5 Free', serif;
font-size: 1.4em;
color: rgb(51, 51, 51, 0.6);
box-shadow: 1px 0 20px rgb(0, 0, 0, 0.1);
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
width: inherit;
height: inherit;
}

/* .restAreaInfo .slideBtn:hover:after {
Expand All @@ -45,16 +45,16 @@
} */

.restAreaInfo > p {
/*letter-spacing: -0.1em;*/
font-size: 0.775rem;
font-weight: 600;
color: rgb(0, 0, 0, 0.8);
padding: 0.75rem 1rem;
border-top: 1px solid rgb(0, 0, 0, 0.1);
/*letter-spacing: -0.1em;*/
font-size: 0.775rem;
font-weight: 600;
color: rgb(0, 0, 0, 0.8);
padding: 0.75rem 1rem;
border-top: 1px solid rgb(0, 0, 0, 0.1);
}

.restAreaInfo > p span {
font-size: 0.83rem;
text-shadow: 0 0 1px rgb(220, 20, 60, 0.1);
color: rgb(220, 20, 60);
font-size: 0.83rem;
text-shadow: 0 0 1px rgb(220, 20, 60, 0.1);
color: rgb(220, 20, 60);
}
1 change: 1 addition & 0 deletions src/pages/NaverPage/components/RestAreaInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const RestAreaInfo = ({
setHoveredRestSpot={setHoveredRestSpot}
clickedRestSpot={clickedRestSpot}
setClickedRestSpot={setClickedRestSpot}
restAreaId={value.restAreaId}
/>
)
})}
Expand Down
Loading