Skip to content

Commit

Permalink
feat: 용평, 에덴밸리 스키장 데이터 추가 (#16)
Browse files Browse the repository at this point in the history
* feat: Add yongpyong slope data

* feat: Add silver slope path

* feat: Add eden slope data

* feat: Connect domainMap in detail page
  • Loading branch information
Najeong-Kim authored Aug 18, 2024
1 parent 31506b0 commit 058eff7
Show file tree
Hide file tree
Showing 37 changed files with 1,062 additions and 37 deletions.
4 changes: 3 additions & 1 deletion src/app/mobile/webcam/[key]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { redirect } from 'next/navigation';
import React from 'react';
import WebcamMobileMapPage from '@/pages/webcam/ui/webcam-mobile-map-page';
import { JISAN } from '@/entities/slop/model';
import { EDEN, JISAN, YONGPYONG } from '@/entities/slop/model';

const domainMap = {
jisan: JISAN,
yongpyong: YONGPYONG,
eden: EDEN,
};

const Page = ({ params }: { params: { key: string } }) => {
Expand Down
29 changes: 5 additions & 24 deletions src/entities/discovery/model/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const DiscoveryData: Discovery[] = [
{
id: 1,
name: '용평스키장 모나',
map: 'yongpyong',
slope: null,
weather: {
weather: 'sun',
Expand All @@ -81,7 +82,8 @@ export const DiscoveryData: Discovery[] = [
},
{
id: 2,
name: '휘닉스파크',
name: '지산 리조트',
map: 'jisan',
slope: 8,
weather: {
weather: 'cloud',
Expand All @@ -92,7 +94,8 @@ export const DiscoveryData: Discovery[] = [
},
{
id: 3,
name: '하이원스키장',
name: '에덴밸리 리조트',
map: 'eden',
slope: 10,
weather: {
weather: 'rain',
Expand All @@ -101,26 +104,4 @@ export const DiscoveryData: Discovery[] = [
},
weeklyWeather: WeeklyWeatherData,
},
{
id: 4,
name: '비발디파크',
slope: 14,
weather: {
weather: 'snow',
temperature: -6,
description: '눈',
},
weeklyWeather: WeeklyWeatherData,
},
{
id: 5,
name: '곤지암스키장',
slope: 8,
weather: {
weather: 'cloud',
temperature: -3,
description: '흐리고 비',
},
weeklyWeather: WeeklyWeatherData,
},
];
1 change: 1 addition & 0 deletions src/entities/discovery/model/model.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export type WeeklyWeather = {
export type Discovery = {
id: number;
name: string;
map: string;
slope: number | null;
weather: {
weather: Weather;
Expand Down
21 changes: 21 additions & 0 deletions src/entities/slop/image/eden/basic-slope-path.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from 'react';
import { cn } from '@/shared/lib';

const BasicSlopePath = ({ color }: { color?: string }) => {
return (
<svg
width="100%"
height="100%"
viewBox="0 0 375 210"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
className={cn('fill-current', color ? color : 'fill-[#FF9928]')}
d="M168.5 168.5L170.752 160.138L162.384 162.369L168.5 168.5ZM90.6117 99.9154C91.0175 99.8325 91.2793 99.4363 91.1965 99.0305C91.1136 98.6246 90.7174 98.3628 90.3115 98.4457L90.6117 99.9154ZM93.3011 97.9105C92.8918 97.9741 92.6117 98.3576 92.6753 98.7668C92.739 99.1761 93.1224 99.4563 93.5317 99.3926L93.3011 97.9105ZM96.4801 98.9966C96.8917 98.9497 97.1873 98.5781 97.1405 98.1666C97.0936 97.755 96.722 97.4593 96.3105 97.5062L96.4801 98.9966ZM99.3337 97.2211C98.9207 97.2521 98.611 97.6121 98.642 98.0251C98.673 98.4382 99.033 98.7479 99.446 98.7169L99.3337 97.2211ZM102.412 98.5501C102.826 98.5346 103.149 98.1865 103.134 97.7726C103.118 97.3586 102.77 97.0356 102.356 97.0511L102.412 98.5501ZM105.388 96.9951C104.974 96.9949 104.638 97.3305 104.638 97.7447C104.638 98.1589 104.973 98.4949 105.387 98.4951L105.388 96.9951ZM108.363 98.555C108.777 98.5715 109.126 98.2494 109.143 97.8355C109.159 97.4216 108.837 97.0727 108.423 97.0562L108.363 98.555ZM111.45 97.239C111.038 97.2055 110.676 97.5129 110.642 97.9258C110.609 98.3386 110.916 98.7005 111.329 98.7341L111.45 97.239ZM114.286 99.0391C114.697 99.0907 115.072 98.7994 115.124 98.3884C115.175 97.9774 114.884 97.6024 114.473 97.5508L114.286 99.0391ZM117.477 97.9992C117.069 97.9284 116.681 98.2017 116.61 98.6098C116.539 99.0179 116.812 99.4062 117.221 99.4771L117.477 97.9992ZM120.129 100.058C120.533 100.15 120.935 99.8963 121.027 99.4923C121.118 99.0884 120.865 98.6867 120.461 98.5951L120.129 100.058ZM123.411 99.3489C123.012 99.2351 122.597 99.4658 122.484 99.864C122.37 100.262 122.6 100.677 122.999 100.791L123.411 99.3489ZM125.818 101.688C126.208 101.826 126.636 101.621 126.774 101.23C126.912 100.839 126.707 100.411 126.316 100.273L125.818 101.688ZM129.161 101.381C128.78 101.218 128.339 101.394 128.176 101.775C128.013 102.156 128.189 102.597 128.57 102.76L129.161 101.381ZM131.238 104.017C131.606 104.207 132.058 104.062 132.248 103.694C132.438 103.326 132.294 102.874 131.926 102.684L131.238 104.017ZM134.59 104.192C134.238 103.974 133.775 104.082 133.557 104.435C133.339 104.787 133.448 105.249 133.8 105.467L134.59 104.192ZM136.233 107.118C136.566 107.365 137.036 107.295 137.282 106.962C137.529 106.63 137.46 106.16 137.127 105.913L136.233 107.118ZM139.508 107.847C139.198 107.572 138.724 107.6 138.449 107.909C138.174 108.219 138.202 108.693 138.511 108.968L139.508 107.847ZM140.613 111.016C140.896 111.319 141.371 111.335 141.673 111.052C141.976 110.769 141.991 110.294 141.708 109.992L140.613 111.016ZM143.699 112.329C143.446 112.001 142.975 111.942 142.647 112.195C142.32 112.449 142.26 112.92 142.513 113.247L143.699 112.329ZM144.233 115.655C144.466 115.997 144.933 116.086 145.275 115.853C145.617 115.619 145.706 115.153 145.472 114.81L144.233 115.655ZM147.141 117.329C146.917 116.981 146.453 116.881 146.105 117.105C145.756 117.329 145.656 117.794 145.88 118.142L147.141 117.329ZM147.465 120.668C147.681 121.022 148.143 121.133 148.496 120.917C148.85 120.701 148.961 120.24 148.745 119.886L147.465 120.668ZM150.29 122.479C150.082 122.121 149.623 121.999 149.265 122.207C148.907 122.415 148.785 122.875 148.993 123.233L150.29 122.479ZM150.468 125.829C150.668 126.192 151.125 126.322 151.487 126.122C151.849 125.921 151.98 125.464 151.779 125.102L150.468 125.829ZM153.217 127.753C153.023 127.387 152.569 127.248 152.203 127.442C151.837 127.636 151.697 128.09 151.891 128.456L153.217 127.753ZM153.267 131.108C153.454 131.477 153.905 131.624 154.275 131.437C154.644 131.249 154.792 130.798 154.604 130.429L153.267 131.108ZM155.946 133.128C155.765 132.756 155.316 132.601 154.943 132.782C154.571 132.963 154.416 133.412 154.597 133.785L155.946 133.128ZM155.884 136.483C156.059 136.859 156.506 137.021 156.881 136.845C157.256 136.67 157.418 136.224 157.243 135.848L155.884 136.483ZM158.497 138.586C158.327 138.208 157.883 138.039 157.505 138.209C157.127 138.379 156.959 138.823 157.128 139.2L158.497 138.586ZM158.334 141.939C158.498 142.32 158.939 142.495 159.32 142.331C159.7 142.167 159.875 141.725 159.711 141.345L158.334 141.939ZM160.883 144.115C160.725 143.733 160.286 143.551 159.903 143.71C159.521 143.869 159.339 144.308 159.498 144.69L160.883 144.115ZM160.627 147.465C160.781 147.849 161.217 148.037 161.602 147.883C161.986 147.73 162.174 147.294 162.02 146.909L160.627 147.465ZM163.115 149.709C162.967 149.323 162.534 149.129 162.147 149.277C161.76 149.426 161.567 149.859 161.715 150.246L163.115 149.709ZM162.768 153.051C162.911 153.439 163.342 153.639 163.731 153.496C164.12 153.353 164.319 152.922 164.176 152.533L162.768 153.051ZM165.196 155.367C165.059 154.976 164.63 154.771 164.24 154.909C163.849 155.046 163.644 155.474 163.781 155.865L165.196 155.367ZM164.753 158.69C164.885 159.082 165.311 159.293 165.703 159.162C166.096 159.03 166.307 158.604 166.175 158.212L164.753 158.69ZM167.112 161.073C166.987 160.678 166.565 160.46 166.17 160.586C165.775 160.712 165.557 161.134 165.683 161.528L167.112 161.073ZM166.567 164.386C166.686 164.783 167.104 165.009 167.501 164.89C167.898 164.771 168.123 164.353 168.004 163.956L166.567 164.386ZM168.839 166.862C168.73 166.462 168.317 166.228 167.918 166.337C167.518 166.447 167.283 166.86 167.393 167.259L168.839 166.862ZM89.1707 100.23C89.63 100.123 90.1108 100.018 90.6117 99.9154L90.3115 98.4457C89.7974 98.5507 89.3028 98.659 88.8293 98.7697L89.1707 100.23ZM93.5317 99.3926C94.4704 99.2466 95.4555 99.1132 96.4801 98.9966L96.3105 97.5062C95.2656 97.6252 94.2602 97.7612 93.3011 97.9105L93.5317 99.3926ZM99.446 98.7169C100.411 98.6444 101.401 98.5879 102.412 98.5501L102.356 97.0511C101.326 97.0897 100.317 97.1473 99.3337 97.2211L99.446 98.7169ZM105.387 98.4951C106.367 98.4957 107.36 98.515 108.363 98.555L108.423 97.0562C107.399 97.0153 106.386 96.9957 105.388 96.9951L105.387 98.4951ZM111.329 98.7341C112.31 98.8138 113.297 98.9149 114.286 99.0391L114.473 97.5508C113.461 97.4237 112.453 97.3205 111.45 97.239L111.329 98.7341ZM117.221 99.4771C118.192 99.6459 119.163 99.839 120.129 100.058L120.461 98.5951C119.469 98.3702 118.473 98.1722 117.477 97.9992L117.221 99.4771ZM122.999 100.791C123.947 101.062 124.888 101.361 125.818 101.688L126.316 100.273C125.356 99.9353 124.387 99.6278 123.411 99.3489L122.999 100.791ZM128.57 102.76C129.474 103.147 130.365 103.566 131.238 104.017L131.926 102.684C131.02 102.216 130.097 101.782 129.161 101.381L128.57 102.76ZM133.8 105.467C134.632 105.983 135.444 106.532 136.233 107.118L137.127 105.913C136.303 105.302 135.456 104.729 134.59 104.192L133.8 105.467ZM138.511 108.968C139.238 109.614 139.939 110.296 140.613 111.016L141.708 109.992C141.003 109.237 140.268 108.523 139.508 107.847L138.511 108.968ZM142.513 113.247C142.811 113.632 143.103 114.027 143.386 114.431L144.614 113.569C144.317 113.146 144.012 112.733 143.699 112.329L142.513 113.247ZM143.386 114.431C143.671 114.836 143.953 115.244 144.233 115.655L145.472 114.81C145.188 114.394 144.902 113.98 144.614 113.569L143.386 114.431ZM145.88 118.142C146.417 118.975 146.945 119.818 147.465 120.668L148.745 119.886C148.219 119.026 147.685 118.173 147.141 117.329L145.88 118.142ZM148.993 123.233C149.493 124.093 149.985 124.959 150.468 125.829L151.779 125.102C151.292 124.223 150.795 123.348 150.29 122.479L148.993 123.233ZM151.891 128.456C152.359 129.337 152.817 130.222 153.267 131.108L154.604 130.429C154.151 129.535 153.688 128.643 153.217 127.753L151.891 128.456ZM154.597 133.785C155.035 134.685 155.464 135.586 155.884 136.483L157.243 135.848C156.82 134.944 156.388 134.036 155.946 133.128L154.597 133.785ZM157.128 139.2C157.54 140.119 157.942 141.032 158.334 141.939L159.711 141.345C159.317 140.431 158.912 139.511 158.497 138.586L157.128 139.2ZM159.498 144.69C159.886 145.625 160.262 146.551 160.627 147.465L162.02 146.909C161.653 145.989 161.274 145.057 160.883 144.115L159.498 144.69ZM161.715 150.246C162.08 151.198 162.431 152.134 162.768 153.051L164.176 152.533C163.836 151.609 163.483 150.667 163.115 149.709L161.715 150.246ZM163.781 155.865C164.123 156.834 164.447 157.777 164.753 158.69L166.175 158.212C165.866 157.292 165.54 156.343 165.196 155.367L163.781 155.865ZM165.683 161.528C166.003 162.532 166.298 163.487 166.567 164.386L168.004 163.956C167.732 163.048 167.435 162.084 167.112 161.073L165.683 161.528Z"
/>
</svg>
);
};

export default BasicSlopePath;
21 changes: 21 additions & 0 deletions src/entities/slop/image/eden/jupiter-slope-path.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from 'react';
import { cn } from '@/shared/lib';

const JupiterSlopePath = ({ color }: { color?: string }) => {
return (
<svg
width="100%"
height="100%"
viewBox="0 0 375 210"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
className={cn('fill-current', color ? color : 'fill-[#447EFF]')}
d="M230.254 21.7058C230.643 21.5658 230.846 21.1363 230.706 20.7464C230.566 20.3566 230.136 20.1541 229.746 20.2942L230.254 21.7058ZM171 92.5L176.399 85.7289L167.836 84.4385L171 92.5ZM171.968 91.1087C172.033 90.6997 171.755 90.3151 171.346 90.2497C170.937 90.1843 170.552 90.4628 170.487 90.8719L171.968 91.1087ZM171.023 87.864C170.943 88.2704 171.208 88.6648 171.614 88.7449C172.021 88.8249 172.415 88.5604 172.495 88.154L171.023 87.864ZM173.129 85.218C173.224 84.8147 172.974 84.411 172.571 84.3162C172.168 84.2214 171.764 84.4714 171.669 84.8747L173.129 85.218ZM172.425 81.904C172.316 82.3035 172.551 82.7161 172.95 82.8256C173.35 82.9352 173.762 82.7001 173.872 82.3007L172.425 81.904ZM174.72 79.416C174.844 79.0209 174.625 78.5999 174.229 78.4757C173.834 78.3516 173.413 78.5712 173.289 78.9664L174.72 79.416ZM174.26 76.0648C174.121 76.4552 174.325 76.884 174.716 77.0226C175.106 77.1612 175.535 76.9572 175.673 76.5668L174.26 76.0648ZM176.73 73.7559C176.883 73.371 176.695 72.935 176.31 72.7821C175.925 72.6293 175.489 72.8174 175.336 73.2024L176.73 73.7559ZM176.516 70.3823C176.349 70.7615 176.521 71.204 176.9 71.3708C177.279 71.5376 177.722 71.3655 177.889 70.9863L176.516 70.3823ZM179.15 68.2542C179.331 67.8813 179.175 67.4328 178.802 67.2524C178.429 67.0719 177.981 67.2279 177.8 67.6007L179.15 68.2542ZM179.183 64.869C178.99 65.2351 179.13 65.689 179.496 65.8827C179.862 66.0764 180.316 65.9366 180.509 65.5705L179.183 64.869ZM181.963 62.9375C182.169 62.5785 182.046 62.12 181.687 61.9134C181.328 61.7069 180.869 61.8305 180.662 62.1896L181.963 62.9375ZM182.234 59.5648C182.015 59.9164 182.123 60.3789 182.474 60.5979C182.826 60.8168 183.289 60.7093 183.508 60.3577L182.234 59.5648ZM185.141 57.8328C185.372 57.4889 185.28 57.023 184.936 56.7921C184.592 56.5612 184.126 56.6528 183.895 56.9967L185.141 57.8328ZM185.642 54.4874C185.4 54.8233 185.476 55.292 185.812 55.5344C186.148 55.7767 186.617 55.7009 186.859 55.365L185.642 54.4874ZM188.659 52.9557C188.912 52.628 188.852 52.1569 188.524 51.9036C188.196 51.6503 187.725 51.7106 187.472 52.0383L188.659 52.9557ZM189.38 49.651C189.116 49.9704 189.161 50.4431 189.481 50.7069C189.8 50.9707 190.273 50.9257 190.536 50.6064L189.38 49.651ZM192.489 48.3181C192.763 48.0073 192.733 47.5334 192.422 47.2595C192.112 46.9857 191.638 47.0156 191.364 47.3264L192.489 48.3181ZM193.421 45.064C193.138 45.3661 193.153 45.8407 193.455 46.1242C193.757 46.4076 194.232 46.3925 194.515 46.0904L193.421 45.064ZM196.609 43.9263C196.902 43.6331 196.901 43.1582 196.608 42.8656C196.315 42.5731 195.84 42.5737 195.547 42.8669L196.609 43.9263ZM197.738 40.7359C197.437 41.0202 197.423 41.4948 197.708 41.7961C197.992 42.0973 198.467 42.111 198.768 41.8267L197.738 40.7359ZM200.988 39.7926C201.298 39.5173 201.326 39.0433 201.051 38.7337C200.775 38.4242 200.301 38.3964 199.992 38.6716L200.988 39.7926ZM202.304 36.6751C201.987 36.9412 201.945 37.4142 202.211 37.7317C202.477 38.0491 202.95 38.0908 203.268 37.8247L202.304 36.6751ZM205.603 35.9243C205.928 35.6675 205.984 35.1959 205.727 34.8709C205.47 34.5458 204.999 34.4905 204.674 34.7472L205.603 35.9243ZM207.097 32.8892C206.764 33.1365 206.695 33.6063 206.943 33.9387C207.19 34.271 207.66 34.3399 207.992 34.0926L207.097 32.8892ZM210.434 32.3298C210.773 32.0922 210.856 31.6245 210.618 31.2852C210.38 30.9459 209.913 30.8635 209.573 31.1011L210.434 32.3298ZM212.105 29.3829C211.759 29.6105 211.663 30.0756 211.89 30.4217C212.118 30.7678 212.583 30.8638 212.929 30.6362L212.105 29.3829ZM215.472 29.0168C215.825 28.7996 215.935 28.3376 215.718 27.9849C215.5 27.6322 215.038 27.5224 214.686 27.7397L215.472 29.0168ZM217.314 26.1754C216.955 26.3818 216.831 26.8402 217.037 27.1994C217.243 27.5585 217.702 27.6824 218.061 27.476L217.314 26.1754ZM220.691 26.02C221.056 25.8253 221.195 25.3711 221 25.0055C220.805 24.6399 220.351 24.5014 219.985 24.6962L220.691 26.02ZM222.707 23.3049C222.335 23.4869 222.181 23.9361 222.363 24.3082C222.545 24.6802 222.995 24.8343 223.367 24.6522L222.707 23.3049ZM226.097 23.3792C226.476 23.2116 226.647 22.7687 226.479 22.3899C226.312 22.0111 225.869 21.8399 225.49 22.0075L226.097 23.3792ZM228.315 20.8304C227.929 20.9808 227.738 21.4156 227.889 21.8015C228.039 22.1875 228.474 22.3785 228.86 22.2281L228.315 20.8304ZM172.495 88.154C172.69 87.1639 172.902 86.1852 173.129 85.218L171.669 84.8747C171.437 85.8596 171.222 86.856 171.023 87.864L172.495 88.154ZM173.872 82.3007C174.139 81.3271 174.422 80.3656 174.72 79.416L173.289 78.9664C172.985 79.9334 172.697 80.9126 172.425 81.904L173.872 82.3007ZM175.673 76.5668C176.011 75.6173 176.363 74.6804 176.73 73.7559L175.336 73.2024C174.962 74.1438 174.603 75.0979 174.26 76.0648L175.673 76.5668ZM177.889 70.9863C178.295 70.0625 178.716 69.1518 179.15 68.2542L177.8 67.6007C177.358 68.5145 176.93 69.4417 176.516 70.3823L177.889 70.9863ZM180.509 65.5705C180.981 64.6792 181.466 63.8016 181.963 62.9375L180.662 62.1896C180.157 63.0687 179.663 63.9619 179.183 64.869L180.509 65.5705ZM183.508 60.3577C184.04 59.5019 184.585 58.6603 185.141 57.8328L183.895 56.9967C183.33 57.8382 182.776 58.6942 182.234 59.5648L183.508 60.3577ZM186.859 55.365C187.449 54.5472 188.049 53.7441 188.659 52.9557L187.472 52.0383C186.852 52.8396 186.242 53.6559 185.642 54.4874L186.859 55.365ZM190.536 50.6064C191.179 49.8283 191.831 49.0655 192.489 48.3181L191.364 47.3264C190.695 48.0856 190.033 48.8604 189.38 49.651L190.536 50.6064ZM194.515 46.0904C195.207 45.3529 195.906 44.6316 196.609 43.9263L195.547 42.8669C194.833 43.5828 194.124 44.3152 193.421 45.064L194.515 46.0904ZM198.768 41.8267C199.504 41.1316 200.245 40.4536 200.988 39.7926L199.992 38.6716C199.237 39.3423 198.486 40.0304 197.738 40.7359L198.768 41.8267ZM203.268 37.8247C204.046 37.1729 204.825 36.5394 205.603 35.9243L204.674 34.7472C203.884 35.3712 203.093 36.0138 202.304 36.6751L203.268 37.8247ZM207.992 34.0926C208.809 33.4848 209.623 32.8973 210.434 32.3298L209.573 31.1011C208.751 31.6767 207.925 32.2727 207.097 32.8892L207.992 34.0926ZM212.929 30.6362C213.784 30.0736 214.633 29.5338 215.472 29.0168L214.686 27.7397C213.834 28.2644 212.973 28.8121 212.105 29.3829L212.929 30.6362ZM218.061 27.476C218.952 26.9638 219.83 26.4785 220.691 26.02L219.985 24.6962C219.111 25.1622 218.219 25.6553 217.314 26.1754L218.061 27.476ZM223.367 24.6522C224.305 24.1932 225.216 23.769 226.097 23.3792L225.49 22.0075C224.591 22.4053 223.662 22.8376 222.707 23.3049L223.367 24.6522ZM228.86 22.2281C229.337 22.042 229.802 21.868 230.254 21.7058L229.746 20.2942C229.282 20.461 228.805 20.6397 228.315 20.8304L228.86 22.2281Z"
/>
</svg>
);
};

export default JupiterSlopePath;
Loading

0 comments on commit 058eff7

Please sign in to comment.