diff --git a/.env b/.env index db5513b..75e4306 100644 --- a/.env +++ b/.env @@ -1,2 +1,5 @@ +NEXT_PUBLIC_BAES_URL=http://localhost:8080 + NEXT_PUBLIC_KAKAO_MAP_REST_API=179a8c907891026029fb59adbc860843 -NEXT_PUBLIC_KAKAO_MAP_CLIENT=4948158107c883c7ba08e9ca9ea1fbb7 \ No newline at end of file +NEXT_PUBLIC_KAKAO_MAP_CLIENT=4948158107c883c7ba08e9ca9ea1fbb7 + diff --git a/src/app/(main)/page.tsx b/src/app/(main)/page.tsx index 31762b4..8b55eb0 100644 --- a/src/app/(main)/page.tsx +++ b/src/app/(main)/page.tsx @@ -5,6 +5,12 @@ import MainIntroduce from '@/src/components/mainPage/MainIntroduce'; import Banner from '@/src/components/mainPage/Banner'; import AdvertisementModal from '@/src/components/auctionPage/AdvertisementModal'; import { getCookie } from 'cookies-next'; +import MainProducts from '@/src/components/mainPage/MainProducts'; +import { + useExpensiveProductBoard, + useLikeProductBoard, + useRecentProductBoard, +} from '@/src/remote/query/main'; import styles from './index.module.scss'; export default function Home() { @@ -15,9 +21,16 @@ export default function Home() { setOpen(!modalCookie); }, []); + const { data: expensiveProducts } = useExpensiveProductBoard(); + const { data: recentProducts } = useRecentProductBoard(); + const { data: likeProudcts } = useLikeProductBoard(); + return (
+ + + {open && }
diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx new file mode 100644 index 0000000..eb8fc4b --- /dev/null +++ b/src/app/not-found.tsx @@ -0,0 +1,17 @@ +import Link from 'next/link'; +import React from 'react'; +import classNamees from 'classnames/bind'; +import styles from '../styles/not-found.module.scss'; + +const cx = classNamees.bind(styles); + +const NotFound = () => { + return ( +
+

존재하지 않는 페이지입니다 !

+ 홈으로 돌아가기 +
+ ); +}; + +export default NotFound; diff --git a/src/components/auctionDetailPage/ProductInfo/index.tsx b/src/components/auctionDetailPage/ProductInfo/index.tsx index 3a10671..634c883 100644 --- a/src/components/auctionDetailPage/ProductInfo/index.tsx +++ b/src/components/auctionDetailPage/ProductInfo/index.tsx @@ -11,6 +11,7 @@ import classNamees from 'classnames/bind'; import Navigator from '@/src/common/Navigator'; import { useRecoilValue } from 'recoil'; import { arriveLocationState } from '@/src/atom'; +import { AiFillLike, AiOutlineLike } from 'react-icons/ai'; import Map from '../../../common/Map'; import styles from './index.module.scss'; @@ -88,9 +89,9 @@ const ProductInfo = ({ productInfo, arriveLocation }: Props) => { )}
- {/*
- {like ? : } -
*/} +
+ +

{board.likesCount}