-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into #12/ProductPage
- Loading branch information
Showing
4 changed files
with
286 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import axios from "axios"; | ||
|
||
export const getFood = async ( | ||
pageNo = 1, // ํ์ด์ง ๋ฒํธ | ||
numOfRows = 100, // ํ์ด์ง๋น ๋ฐ์ดํฐ ์ | ||
kind = "", // ํ๋ชฉ ์ ํ | ||
name = "" // ํ๋ชฉ ์ด๋ฆ | ||
) => { | ||
const baseUrl = | ||
"https://apis.data.go.kr/B553748/CertImgListServiceV2/getCertImgListServiceV2"; | ||
|
||
const response = await axios.get(baseUrl, { | ||
params: { | ||
ServiceKey: process.env.REACT_APP_SERVICE_KEY_DECODED, | ||
returnType: "json", | ||
pageNo: pageNo, | ||
numOfRows: numOfRows, | ||
prdkind: kind, | ||
prdnm: name, | ||
}, | ||
}); | ||
|
||
return response.data.body; | ||
}; |
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,62 @@ | ||
export const allergies = [ | ||
{ | ||
id: 1, | ||
name: "๋ฐ", | ||
}, | ||
{ | ||
id: 2, | ||
name: "๋๋", | ||
}, | ||
{ | ||
id: 3, | ||
name: "ํธ๋", | ||
}, | ||
{ | ||
id: 4, | ||
name: "๋๋ฅ", | ||
}, | ||
{ | ||
id: 5, | ||
name: "์์ฐ", | ||
}, | ||
{ | ||
id: 6, | ||
name: "๋ ์ฝฉ", | ||
}, | ||
{ | ||
id: 7, | ||
name: "์ ๊ณ ๊ธฐ", | ||
}, | ||
{ | ||
id: 8, | ||
name: "ํ ๋งํ ", | ||
}, | ||
{ | ||
id: 9, | ||
name: "๊ฒ", | ||
}, | ||
{ | ||
id: 10, | ||
name: "์ฐ์ ", | ||
}, | ||
{ | ||
id: 11, | ||
name: "๋ญ๊ณ ๊ธฐ", | ||
}, | ||
{ | ||
id: 12, | ||
name: "๋ผ์ง๊ณ ๊ธฐ", | ||
}, | ||
{ | ||
id: 13, | ||
name: "์กฐ๊ฐ๋ฅ", | ||
}, | ||
{ | ||
id: 14, | ||
name: "๋ณต์ญ์", | ||
}, | ||
{ | ||
id: 15, | ||
name: "์ํฉ์ฐ๋ฅ", | ||
}, | ||
]; |
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,128 @@ | ||
export const categories = [ | ||
{ | ||
id: 1, | ||
name: { | ||
ko: "๊ณผ์", | ||
en: "Snack", | ||
}, | ||
icon: ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="101" | ||
height="110" | ||
viewBox="0 0 101 110" | ||
fill="none" | ||
> | ||
<path | ||
d="M126.651 53.3037C124.75 49.7829 120.525 49.7829 120.525 49.7829H106.441V42.7412C106.441 35.6995 99.3998 35.6995 99.3998 35.6995H85.3164V28.6579C85.3164 21.6162 78.2748 21.6162 78.2748 21.6162H71.2331V7.53288C71.2331 0.491211 64.1914 0.491211 64.1914 0.491211C51.657 0.491211 39.4041 4.20809 28.9822 11.1718C18.5602 18.1356 10.4373 28.0334 5.64057 39.6137C0.843865 51.1939 -0.411171 63.9365 2.03417 76.2301C4.47951 88.5236 10.5154 99.8159 19.3785 108.679C28.2417 117.542 39.534 123.578 51.8276 126.023C64.1211 128.469 76.8637 127.214 88.444 122.417C100.024 117.62 109.922 109.497 116.886 99.0755C123.85 88.6535 127.566 76.4006 127.566 63.8662C127.566 60.3454 127.285 56.8246 126.651 53.3037ZM59.4031 112.876C64.1914 111.89 67.7123 107.665 67.7123 102.595C67.7123 96.7508 62.9944 92.0329 57.1498 92.0329C54.8891 92.0291 52.687 92.7518 50.8681 94.0943C49.0492 95.4368 47.7098 97.3281 47.0472 99.4895C46.3845 101.651 46.4338 103.968 47.1878 106.099C47.9417 108.23 49.3604 110.063 51.2348 111.327C32.7856 106.398 18.4206 90.695 15.5335 71.7529C14.8998 68.1616 14.8998 64.6408 14.8998 61.1904C15.3927 66.6125 19.8994 70.9079 25.4623 70.9079C31.3069 70.9079 36.0248 66.19 36.0248 60.3454C36.0248 54.5008 31.3069 49.7829 25.4623 49.7829C20.6739 49.7829 16.6602 53.022 15.3927 57.3879C18.2094 35.6995 35.391 18.0954 57.1498 15.0675V25.137C57.1498 30.9816 61.8677 35.6995 67.7123 35.6995H71.2331V39.2204C71.2331 45.065 75.951 49.7829 81.7956 49.7829H92.3581V53.3037C92.3581 59.1483 97.076 63.8662 102.921 63.8662H113.483C113.483 92.5962 88.8373 115.693 59.4031 112.876ZM46.5873 42.7412C40.7427 42.7412 36.0248 38.0233 36.0248 32.1787C36.0248 26.3341 40.7427 21.6162 46.5873 21.6162C52.4319 21.6162 57.1498 26.3341 57.1498 32.1787C57.1498 38.0233 52.4319 42.7412 46.5873 42.7412ZM71.2331 67.387C71.2331 73.2316 66.5152 77.9495 60.6706 77.9495C54.826 77.9495 50.1081 73.2316 50.1081 67.387C50.1081 61.5425 54.826 56.8246 60.6706 56.8246C66.5152 56.8246 71.2331 61.5425 71.2331 67.387ZM106.441 81.4704C106.441 87.315 101.724 92.0329 95.8789 92.0329C90.0344 92.0329 85.3164 87.315 85.3164 81.4704C85.3164 75.6258 90.0344 70.9079 95.8789 70.9079C101.724 70.9079 106.441 75.6258 106.441 81.4704Z" | ||
fill="white" | ||
/> | ||
</svg> | ||
), | ||
}, | ||
{ | ||
id: 2, | ||
name: { | ||
ko: "๋นต", | ||
en: "Bread", | ||
}, | ||
icon: ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="119" | ||
height="135" | ||
viewBox="0 0 119 135" | ||
fill="none" | ||
> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M-14.2125 29.3021C-19.4917 34.588 -22.0978 40.7359 -21.9642 47.4786C-21.8506 53.9005 -19.2578 60.1353 -15.696 65.949C-10.9514 73.7141 -3.70087 81.9069 4.40502 90.3068L8.89567 94.9111L13.5066 99.5487L21.9934 108.022L26.9385 112.9C35.9732 121.701 44.7808 129.653 53.1005 134.746C58.9143 138.307 65.1491 140.893 71.571 141.02C78.3136 141.154 84.4616 138.548 89.7474 133.262C97.6796 125.33 101.081 110.909 99.0829 95.5392C97.1249 80.4635 89.9212 63.4431 75.2597 47.9597L73.1013 45.7411C57.0833 29.7699 39.241 22.0115 23.517 19.9667C8.14054 17.9686 -6.28033 21.37 -14.2125 29.3021ZM-4.76339 38.7579C-0.880844 34.8754 8.6551 31.514 21.7929 33.2181C24.6664 33.5923 27.6669 34.2071 30.7475 35.0959C29.01 37.1006 26.738 38.5374 23.8378 39.5063C22.9946 39.7753 22.2133 40.2091 21.5392 40.7825C20.8651 41.3559 20.3115 42.0575 19.9108 42.8466C19.51 43.6356 19.2699 44.4964 19.2046 45.379C19.1392 46.2616 19.2498 47.1484 19.5299 47.9879C19.81 48.8274 20.2541 49.6029 20.8364 50.2694C21.4187 50.9359 22.1275 51.4801 22.9219 51.8703C23.7162 52.2606 24.5801 52.4893 25.4635 52.5429C26.3468 52.5966 27.2321 52.4743 28.0678 52.1831C34.8171 49.9377 40.0161 45.8881 43.491 40.228C49.5671 43.4283 55.2122 47.387 60.2909 52.0093C59.2284 53.5931 57.805 55.3506 56.0809 57.0747C53.2475 59.9014 50.3473 61.9262 48.2223 62.8417L47.4671 63.1357C45.7852 63.6958 44.3947 64.901 43.6014 66.4863C42.8081 68.0716 42.6771 69.9072 43.2371 71.5891C43.7972 73.271 45.0024 74.6616 46.5877 75.4549C48.1731 76.2481 50.0086 76.3792 51.6905 75.8191C56.6222 74.1752 61.6207 70.4263 65.5233 66.5237C67.0063 65.0445 68.3945 63.4732 69.6798 61.8193C73.9321 66.9495 77.5117 72.6019 80.3318 78.6391C78.5208 82.6754 75.5471 85.2816 71.0898 86.7651C69.4307 87.3432 68.066 88.5516 67.2912 90.1285C66.5164 91.7054 66.3938 93.524 66.9499 95.1906C67.506 96.8573 68.6962 98.2378 70.2627 99.0335C71.8292 99.8291 73.646 99.9758 75.3199 99.4418C78.9724 98.2621 82.3592 96.3803 85.2902 93.902C85.504 95.038 85.6911 96.1607 85.8248 97.2633C87.5355 110.401 84.1742 119.937 80.2917 123.82C77.3113 126.8 74.5714 127.716 71.8249 127.662C68.7643 127.602 64.9219 126.319 60.0771 123.352C53.7153 119.463 46.7922 113.428 39.1407 106.111L34.8973 101.988L28.2482 95.3922L19.2135 86.3374L14.9768 82.0205C6.73722 73.5337 -0.0522156 65.9156 -4.29562 58.9792C-7.26265 54.1344 -8.5457 50.2919 -8.60584 47.2313C-8.6593 44.4915 -7.74379 41.745 -4.76339 38.7579Z" | ||
fill="white" | ||
/> | ||
</svg> | ||
), | ||
}, | ||
{ | ||
id: 3, | ||
name: { | ||
ko: "๋ฉด", | ||
en: "Noodles", | ||
}, | ||
icon: ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="115" | ||
height="102" | ||
viewBox="0 0 115 102" | ||
fill="none" | ||
> | ||
<path | ||
d="M5.8335 62.7175C5.8335 94.2447 24.8622 119.801 62.9168 119.801C100.971 119.801 120 94.2447 120 62.7175H5.8335Z" | ||
stroke="#F3F3F4" | ||
stroke-width="10" | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
/> | ||
<path | ||
d="M40.0835 62.7176V17.0509M62.9168 62.7176V11.3426M85.7502 62.7176V5.63428M17.2502 62.7176V22.7593M5.8335 31.3218L120 5.63428" | ||
stroke="#F3F3F4" | ||
stroke-width="10" | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
/> | ||
</svg> | ||
), | ||
}, | ||
{ | ||
id: 4, | ||
name: { | ||
ko: "์๋ฃ", | ||
en: "Drinks", | ||
}, | ||
icon: ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="99" | ||
height="119" | ||
viewBox="0 0 99 119" | ||
fill="none" | ||
> | ||
<path | ||
fill-rule="evenodd" | ||
clip-rule="evenodd" | ||
d="M50.8741 3.57531C51.9013 2.1272 53.4419 1.12505 55.182 0.772927C56.9222 0.420804 58.7312 0.745178 60.2406 1.68C61.75 2.61483 62.8464 4.08981 63.3065 5.80462C63.7665 7.51942 63.5557 9.34511 62.717 10.9099L62.2494 11.6567L60.1697 14.5947H80.9873C83.5895 14.5948 86.0984 15.5642 88.0247 17.3138C89.9511 19.0633 91.1567 21.4676 91.4065 24.0579L91.4554 25.0628V35.5309L91.4344 36.1171C95.2169 37.4431 98.0084 40.8906 98.3922 45.0289L98.4341 46.006V56.4671C98.433 58.1709 97.8086 59.8155 96.6786 61.0908C95.5486 62.366 93.9911 63.1838 92.2998 63.39L91.4902 63.4388L85.0698 127.643C84.742 130.903 83.278 133.943 80.9343 136.232C78.5905 138.521 75.5163 139.912 72.2499 140.163L71.1822 140.205H27.9839C24.7047 140.206 21.5297 139.053 19.0158 136.947C16.5019 134.842 14.8096 131.918 14.2358 128.69L14.0962 127.643L7.67577 63.4388C5.97139 63.4299 4.32922 62.7975 3.05903 61.661C1.78885 60.5245 0.978472 58.9625 0.780786 57.2696L0.731935 56.4671V45.999C0.73088 43.8296 1.40386 41.7134 2.65781 39.9431C3.91176 38.1729 5.68473 36.8359 7.73159 36.1171L7.71764 35.824L7.71066 25.0628C7.71078 22.4606 8.68014 19.9516 10.4297 18.0253C12.1793 16.099 14.5836 14.8934 17.1738 14.6436L18.1787 14.5947H43.2114L43.5185 13.9876L43.8954 13.4083L50.8741 3.57531ZM76.7651 70.4315H22.4009L27.9839 126.261H71.1822L76.7651 70.4315ZM84.4766 49.4883H14.6894V56.4671H84.4766V49.4883ZM77.4979 28.5522H21.6681V35.5309H77.4979V28.5522Z" | ||
fill="#2F2E2D" | ||
/> | ||
</svg> | ||
), | ||
}, | ||
{ | ||
id: 5, | ||
name: { | ||
ko: "์บ๋", | ||
en: "Candy", | ||
}, | ||
}, | ||
{ | ||
id: 6, | ||
name: { | ||
ko: "ํ", | ||
en: "Ham", | ||
}, | ||
}, | ||
{ | ||
id: 7, | ||
name: { | ||
ko: "์ฆ์์ญ์ทจ์ํ", | ||
en: "Instant food", | ||
}, | ||
}, | ||
{ | ||
id: 8, | ||
name: { | ||
ko: "์์ค", | ||
en: "Sauce", | ||
}, | ||
}, | ||
]; |
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,72 @@ | ||
export const diets = [ | ||
{ | ||
id: 1, | ||
name: { | ||
ko: "๋น๊ฑด", | ||
en: "Vegan", | ||
}, | ||
}, | ||
{ | ||
id: 2, | ||
name: { | ||
ko: "๋ฝํ ", | ||
en: "Lacto", | ||
}, | ||
}, | ||
{ | ||
id: 3, | ||
name: { | ||
ko: "์ค๋ณด", | ||
en: "Ovo", | ||
}, | ||
}, | ||
{ | ||
id: 4, | ||
name: { | ||
ko: "๋ฝํ ์ค๋ณด", | ||
en: "Lacto-Ovo", | ||
}, | ||
}, | ||
{ | ||
id: 5, | ||
name: { | ||
ko: "ํ์ค์ฝ", | ||
en: "Pesco", | ||
}, | ||
}, | ||
{ | ||
id: 6, | ||
name: { | ||
ko: "ํด๋ก", | ||
en: "Pollo", | ||
}, | ||
}, | ||
{ | ||
id: 7, | ||
name: { | ||
ko: "ํ๋ ์ํ ๋ฆฌ์ธ", | ||
en: "Flexitarian", | ||
}, | ||
}, | ||
{ | ||
id: 8, | ||
name: { | ||
ko: "ํ ๋", | ||
en: "Halal", | ||
}, | ||
}, | ||
{ | ||
id: 10, | ||
name: { | ||
ko: "๊ธ๋ฃจํ ํ๋ฆฌ", | ||
en: "Gluten-free", | ||
}, | ||
}, | ||
{ | ||
id: 11, | ||
name: { | ||
ko: "ํ๋ ์ค", | ||
en: "Paleo", | ||
}, | ||
}, | ||
]; |