diff --git a/README.md b/README.md
index 94e602e..78695c0 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,29 @@
# ๐ฅ ์ํํผ๋์ ๐ฅ
-๐ง[**์ํํผ๋์**](https://d1vexdz72u651e.cloudfront.net/) ๋ [**์์ฑ ํผ๋์ ์น์ฌ์ดํธ**](https://pedia.watcha.com/ko-KR/)์ ํด๋ก ํ๋ก์ ํธ์
๋๋ค! ๊ธฐ์กด์ ์์ฑ ํผ๋์๋ ์ํ์ ์ฑ
, TV ํ๋ก๊ทธ๋จ์ ๋ํด ์ถ์ฒ์ ๋ฐ์ ์ ์๊ณ , ์์ ์ ๊ด๋ํ๊ณผ ๋ณ์ ์ ๊ณต์ ํ์ฌ ๋ค๋ฅธ ์ ์ ์ ์ํตํ๋ **์ฝํ
์ธ ์ถ์ฒ & ์๊ฒฌ ์ปค๋ฎค๋ํฐ ์น์๋น์ค** ์
๋๋ค. ์ ํฌ TEAM6 ํ์๋ค์ ๊ฐ๋ฐ๊ธฐ๊ฐ๊ณผ ์๋ก์ ์ญ๋์ ๊ณ ๋ คํ์ฌ, ์ํํผ๋์๋ฅผ **์ํ ์ฝํ
์ธ ์ ๋ํ ์๊ฒฌ ์ปค๋ฎค๋ํฐ ์๋น์ค**์ ์ง์คํ๋, ๊ทธ๋ฌ๋ ํต์ฌ์ ์ด๊ณ ํ์์ ์ธ ๊ธฐ๋ฅ๋ค์ ๋ด์ค ์๊ฒ ์ ๊ณตํ๋ ์น์๋น์ค๋ก ์์ฑํ๊ณ ์ ํ์์ต๋๋ค. ๋ง์ด ๋ถ์กฑํ์ง๋ง ์ด๊ณผ ์ฑ์ ๋คํด ์ ์ํ ์ ํฌ ์ํํผ๋์ ์๋น์ค๋ฅผ ๋ง์กฑ์ค๋ฝ๊ฒ ์ฌ์ฉํ์ค ์ ์๊ธฐ๋ฅผ ๋ฐ๋๋๋ค๐๐
+- ๐ง[**์ํํผ๋์**](https://d1vexdz72u651e.cloudfront.net/) ๋ [**์์ฑ ํผ๋์ ์น์ฌ์ดํธ**](https://pedia.watcha.com/ko-KR/)์ ํด๋ก ํ๋ก์ ํธ์
๋๋ค!
+- ๊ธฐ์กด์ ์์ฑ ํผ๋์๋ ์ํ์ ์ฑ
, TV ํ๋ก๊ทธ๋จ์ ๋ํด ์ถ์ฒ์ ๋ฐ์ ์ ์๊ณ , ์์ ์ ๊ด๋ํ๊ณผ ๋ณ์ ์ ๊ณต์ ํ์ฌ ๋ค๋ฅธ ์ ์ ์ ์ํตํ๋ **์ฝํ
์ธ ์ถ์ฒ & ์๊ฒฌ ์ปค๋ฎค๋ํฐ ์น์๋น์ค** ์
๋๋ค. ์ ํฌ TEAM6 ํ์๋ค์ ๊ฐ๋ฐ๊ธฐ๊ฐ๊ณผ ์๋ก์ ์ญ๋์ ๊ณ ๋ คํ์ฌ, ์ํํผ๋์๋ฅผ **์ํ ์ฝํ
์ธ ์ ๋ํ ์๊ฒฌ ์ปค๋ฎค๋ํฐ ์๋น์ค**์ ์ง์คํ๋, ๊ทธ๋ฌ๋ ํต์ฌ์ ์ด๊ณ ํ์์ ์ธ ๊ธฐ๋ฅ๋ค์ ๋ด์ค ์๊ฒ ์ ๊ณตํ๋ ์น์๋น์ค๋ก ์์ฑํ๊ณ ์ ํ์์ต๋๋ค.
+- ๋ง์ด ๋ถ์กฑํ์ง๋ง ์ด๊ณผ ์ฑ์ ๋คํด ์ ์ํ ์ ํฌ ์ํํผ๋์ ์๋น์ค๋ฅผ ๋ง์กฑ์ค๋ฝ๊ฒ ์ฌ์ฉํ์ค ์ ์๊ธฐ๋ฅผ ๋ฐ๋๋๋ค๐๐
-๊ฐ๋ฐ ๊ธฐ๊ฐ : 23.12.28 ~ 24.02.02
+- ๊ฐ๋ฐ ๊ธฐ๊ฐ : 23.12.28 ~ 24.02.02
-\*๋ณธ ๋ ํฌ๋ **TEAM6-WEB REPO** ์ด๋ฏ๋ก FRONTEND ๊ฐ๋ฐ์ ๊ดํ ๋ด์ฉ์ ์์ฃผ๋ก ์ค๋ช
ํฉ๋๋ค.
+- ๋ณธ ๋ ํฌ๋ **TEAM6-WEB REPO** ์ด๋ฏ๋ก FRONTEND ๊ฐ๋ฐ์ ๊ดํ ๋ด์ฉ์ ์์ฃผ๋ก ์ค๋ช
ํฉ๋๋ค.
-BACKEND ๊ฐ๋ฐ์ ๊ดํด ๊ถ๊ธํ์๋ค๋ฉด? [TEAM6-SERVER REPO](https://github.com/wafflestudio21-5/team6-server)
-
+- BACKEND ๊ฐ๋ฐ์ ๊ดํด ๊ถ๊ธํ์๋ค๋ฉด? [TEAM6-SERVER REPO](https://github.com/wafflestudio21-5/team6-server)
+
+
+## ๐ท๏ธ ๋ชฉ์ฐจ
+
+#### 1. [๋ฐฐํฌ ๐ป](#๐ป-๋ฐฐํฌ)
+
+#### 2. [๊ฐ๋ฐํ & ์ญํ ๋ถ๋ด ๐โโ๏ธ](#๐โโ๏ธ-๊ฐ๋ฐํ--์ญํ -๋ถ๋ด)
+
+#### 3. [Stacks ๐ง](#๐ง-stacks)
+
+#### 4. [์ฃผ์ PAGE & MODAL ์๊ฐ๐](#๐-์ฃผ์-page--modal-์๊ฐ)
+
+#### 5. [๋ชจ๋ฐ์ผ ๋ฐ์ํ ๐ฑ](#๐ฑ-๋ชจ๋ฐ์ผ-๋ฐ์ํ)
+
+#### 6. [ํน๋ณ ๊ธฐ๋ฅ ๐จ](#๐จ-ํน๋ณ-๊ธฐ๋ฅ)
## ๐ป ๋ฐฐํฌ
@@ -20,23 +36,13 @@ BACKEND ๊ฐ๋ฐ์ ๊ดํด ๊ถ๊ธํ์๋ค๋ฉด? [TEAM6-SERVER REPO](https://github.
## ๐โโ๏ธ ๊ฐ๋ฐํ & ์ญํ ๋ถ๋ด
-์ค์ํ [@ohsuhyeon0119](https://github.com/ohsuhyeon0119)
-
-- ํ์ฅ ์ญํ ์ํ ๋ฐ ์ผ์ ๊ด๋ฆฌ
-- ์ ์ ํ์ด์ง ๋ฐ ์ ์ ํ์ ํ์ด์ง ๋์์ธ&๊ธฐ๋ฅ / ์ธ์ฆ ์๋น์ค ๊ตฌํ
-
-
-๋ฐ๋ฏผ์ฒ [@ComPhyPark](https://github.com/ComPhyPark)
+| | | |
+| :-----------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------: |
+| ์ค์ํ | ๋ฐ๋ฏผ์ฒ | ์ ์ฐ์ง |
+| [@ohsuhyeon0119](https://github.com/ohsuhyeon0119) | [@ComPhyPark](https://github.com/ComPhyPark) | [@izone00](https://github.com/izone00) |
+| ํ์ฅ ์ญํ ์ํ ๋ฐ ์ผ์ ๊ด๋ฆฌ, ์ ์ ํ์ด์ง ๋ฐ ์ ์ ํ์ ํ์ด์ง ๋์์ธ&๊ธฐ๋ฅ / ์ธ์ฆ ์๋น์ค ๊ตฌํ | ๋๋ฉ ํ์ด์ง์ ๋ ์ด์์์ ๋์์ธ & ๊ธฐ๋ฅ ๊ตฌํ, ์น์๋น์ค์ ์ ์ฒด์ ์ธ ๋ฒ๊ทธ ๊ด๋ฆฌ ๋ฐ ์์ | ์ํ ๊ฐ๋ณ ํ์ด์ง ๋ฐ ์ฝํ
์ธ ํ์ ํ์ด์ง ๊ตฌํ, ์ถ๊ฐ ์๋น์ค (๋ด๊ฐ ๊ตฌ๊ฒฝํ ์ํ ๋ชจ์ ๋ณด๊ดํจ) ๊ตฌํ |
-- ๋๋ฉ ํ์ด์ง ๋์์ธ&๊ธฐ๋ฅ ๊ตฌํ
-- ์น์๋น์ค์ ์ ์ฒด์ ์ธ ๋ฒ๊ทธ ์์
-
-
-์ ์ฐ์ง [izone00](https://github.com/izone00)
-
-- ์ํ ๊ฐ๋ณ ํ์ด์ง ๋ฐ ์ฝํ
์ธ ํ์ ํ์ด์ง๋ค์ ๋ํ ์ ๋ฐ์ ์ธ ๋์์ธ&๊ธฐ๋ฅ ๊ตฌํ
-- ์ํํผ๋์๋ง์ ์ถ๊ฐ ์๋น์ค (๋ด๊ฐ ๊ตฌ๊ฒฝํ ์ํ ๋ชจ์ ๋ณด๊ดํจ) ๊ตฌํ
-
+
## ๐ง Stacks
diff --git a/src/apis/content.ts b/src/apis/content.ts
index ffd43d8..b3df2bf 100644
--- a/src/apis/content.ts
+++ b/src/apis/content.ts
@@ -5,8 +5,8 @@ import { BASE_API_URL } from "./const";
// ๋์ค์ ๋ฐ๊พธ๊ธฐ
export async function getContentListRequest(
- order: string,
- accessToken?: string,
+ choice: string,
+ accessToken?: string
) {
const headers: HeadersInit = accessToken
? {
@@ -14,13 +14,18 @@ export async function getContentListRequest(
}
: {};
- if (order === "box-office")
+ if (choice === "box-office")
return fetch(`${BASE_API_URL}/contentTest/movies/boxoffice/update/`, {
method: "GET",
headers: headers,
});
-
- return fetch(`${BASE_API_URL}/contents?order=${order}`, {
+ if (choice === "recommend") {
+ return fetch(`${BASE_API_URL}/contents/carousels/2`, {
+ method: "GET",
+ headers: headers,
+ });
+ }
+ return fetch(`${BASE_API_URL}/contents?order=${choice}`, {
method: "GET",
headers: headers,
});
@@ -39,7 +44,7 @@ export async function getContentRequest(movieCD: string, accessToken?: string) {
export async function createRatingRequest(
movieCD: string,
rate: number,
- accessToken: string,
+ accessToken: string
) {
return fetch(`${BASE_API_URL}/contents/${movieCD}/rate`, {
method: "POST",
@@ -56,7 +61,7 @@ export async function createRatingRequest(
export async function updateRatingRequest(
rateId: number,
rate: number,
- accessToken: string,
+ accessToken: string
) {
return fetch(`${BASE_API_URL}/contents/rates/${rateId}`, {
method: "PUT",
diff --git a/src/apis/custom.ts b/src/apis/custom.ts
index 1f0b265..96a8253 100644
--- a/src/apis/custom.ts
+++ b/src/apis/custom.ts
@@ -7,7 +7,6 @@ export function defaultResponseHandler(res: Response) {
}
export function errorInBodyResponseHandler(res: Response) {
if (!res.ok) {
- console.log(res); // res.json()์ ์๋ฌ ๋ฉ์์ง๊ฐ ๋ด๊ฒจ ์์
}
return res.json();
}
diff --git a/src/components/ContentList.tsx b/src/components/ContentList.tsx
index e381ff1..d80b882 100644
--- a/src/components/ContentList.tsx
+++ b/src/components/ContentList.tsx
@@ -21,6 +21,7 @@ export type ContentListProps = {
};
function ContentCell(content: MovieType, rank: number) {
+ console.log(content.title_ko, content.average_rate);
return (