-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Feature/#43
- Loading branch information
Showing
46 changed files
with
1,468 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { MapProps } from "@components/KakaoMap/KakaoMap.types"; | ||
import { flaskInstance } from "./instance"; | ||
|
||
const postAroundSeniorCenter = async (latitude: number, longitude: number): Promise<MapProps> => { | ||
const postAroundSeniorCenterURL = "/locations"; | ||
|
||
try { | ||
const accessToken = sessionStorage.getItem("accessToken"); | ||
|
||
const requestBody = { | ||
latitude, | ||
longitude | ||
}; | ||
|
||
const config = { | ||
headers: { | ||
Authorization: `Bearer ${accessToken}` | ||
} | ||
}; | ||
|
||
const response = await flaskInstance.post(postAroundSeniorCenterURL, requestBody, config); | ||
|
||
return response.data; | ||
} catch (error) { | ||
throw error; | ||
} | ||
}; | ||
|
||
export default postAroundSeniorCenter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { MapProps } from "@components/KakaoMap/KakaoMap.types"; | ||
import { flaskInstance } from "./instance"; | ||
|
||
const postSeniorCenterList = async (page: number, keyword: string): Promise<MapProps> => { | ||
const postSeniorCenterListURL = "/search"; | ||
|
||
try { | ||
const accessToken = sessionStorage.getItem("accessToken"); | ||
|
||
const requestBody = { | ||
keyword, | ||
page | ||
}; | ||
|
||
const config = { | ||
headers: { | ||
Authorization: `Bearer ${accessToken}` | ||
} | ||
}; | ||
|
||
const response = await flaskInstance.post(postSeniorCenterListURL, requestBody, config); | ||
|
||
return response.data; | ||
} catch (error) { | ||
throw error; | ||
} | ||
}; | ||
|
||
export default postSeniorCenterList; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
import styled from "@emotion/styled"; | ||
|
||
export const Pin = styled.button` | ||
min-width: 70px; | ||
max-width: 106px; | ||
height: 38px; | ||
flex-shrink: 0; | ||
position: relative; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 2px 8px; | ||
margin: 0 16px; | ||
${({ theme }) => theme.text.detail2_bold}; | ||
color: ${({ theme }) => theme.colors.gray[600]}; | ||
border-radius: 71px; | ||
background-color: #fff; | ||
transition: all 0.2s ease; | ||
border: 1px solid #00b207; | ||
filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25)); | ||
&::after { | ||
content: ""; | ||
position: absolute; | ||
bottom: -14px; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
border-top: 14px solid #fff; | ||
border-left: 8px solid transparent; | ||
border-right: 8px solid transparent; | ||
border-bottom: 1px solid transparent; | ||
} | ||
&[data-selected="true"] { | ||
color: #fff; | ||
border: 1px solid #fff; | ||
background-color: #00b207; | ||
&::after { | ||
border-top: 14px solid #00b207; | ||
} | ||
} | ||
`; | ||
|
||
export const SearchButton = styled.button` | ||
position: absolute; | ||
top: 100px; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
display: flex; | ||
padding: 6px 12px; | ||
align-items: center; | ||
gap: 4px; | ||
border-radius: 50px; | ||
background: #fff; | ||
box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.15), 0px 1px 2px 1px rgba(0, 0, 0, 0.15); | ||
z-index: 1001; | ||
`; | ||
|
||
export const SearchBtnTxt = styled.p` | ||
color: #176d1b; | ||
${({ theme }) => theme.text.detail2_reg}; | ||
`; | ||
|
||
export const clustererStyles = { | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
width: "80px", | ||
height: "80px", | ||
padding: "10px", | ||
border: "2px solid #fff", | ||
borderRadius: "50%", | ||
background: | ||
"linear-gradient(102deg, rgba(58, 200, 244, 0.90) 10.91%, rgba(94, 155, 243, 0.90) 89.69%)", | ||
boxShadow: "0px 2px 18px 3px rgba(0, 0, 0, 0.10)", | ||
fontSize: "20px", | ||
fontWeight: 600, | ||
color: "#fff" | ||
}; |
Oops, something went wrong.