-
Notifications
You must be signed in to change notification settings - Fork 0
Create Week3 Mission1,2,3 #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
hyesngy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๊ณ ์ ๋ง์ผ์
จ์ต๋๋ค!๐๐
์ํ ์นดํ
๊ณ ๋ฆฌ๋ฅผ URL ํ๋ผ๋ฏธํฐ(:category)๋ก ๋ณ์ํํ ์ ๊ทผ ๋ฐฉ์์ด ์ธ์์ ์
๋๋ค!
์ด๋ฒ ์ฃผ ์ํฌ๋ถ์ ํตํด useEffect, API ์ฐ๋, ๋ผ์ฐํ
๊ณผ ์ํ ๊ด๋ฆฌ๊น์ง ๊ฒฝํํด๋ณด์
จ๋ค์!
๊ณ์ํด์ ์ค์ต๊ณผ ํ์ต์ ๋ณํํ๋ฉฐ ์ค๋ ฅ์ ์์๊ฐ์๊ธธ ์์ํฉ๋๋ค!!๐๐
| return ( | ||
| <nav className={` | ||
| w-full h-12 flex items-center justify-between px-10 | ||
| w-full h-12 flex items-center justif px-10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ด ๋ถ๋ถ์ ์คํ๊ฐ ๋ ๊ฒ ๊ฐ์ต๋๋ค...!!
| w-full h-12 flex items-center justif px-10 | |
| w-full h-12 flex items-center justify-between px-10 |
| const { data } = await axios.get(`https://api.themoviedb.org/3/movie/${id}/credits?language=ko-KR`, | ||
| { | ||
| headers: { | ||
| Authorization: token, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OAuth 2.0 ํ์ค์ ๋ฐ๋ผ ํ ํฐ ํ์ ์ ๋ช ์ํ๋ "Bearer"๋ฅผ ์ ๋์ด๋ก ๋ถ์ฌ์ฃผ์ธ์!
| Authorization: token, | |
| Authorization: `Bearer ${token}`, |
| `https://api.themoviedb.org/3/movie/${category}?language=ko-KR&page=${page}`, | ||
| { | ||
| headers: { | ||
| Authorization: token, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OAuth 2.0 ํ์ค์ ๋ฐ๋ผ ํ ํฐ ํ์ ์ ๋ช ์ํ๋ "Bearer"๋ฅผ ์ ๋์ด๋ก ๋ถ์ฌ์ฃผ์ธ์!
| Authorization: token, | |
| Authorization: `Bearer ${token}`, |
| `https://api.themoviedb.org/3/movie/${id}?language=ko-KR`, | ||
| { | ||
| headers: { | ||
| Authorization: token, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OAuth 2.0 ํ์ค์ ๋ฐ๋ผ ํ ํฐ ํ์ ์ ๋ช ์ํ๋ "Bearer"๋ฅผ ์ ๋์ด๋ก ๋ถ์ฌ์ฃผ์ธ์!
| Authorization: token, | |
| Authorization: `Bearer ${token}`, |
| @@ -0,0 +1,59 @@ | |||
| import axios from "axios"; | |||
| import { Detail } from "../types/details"; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ด๋ ๊ฒ ํ์ ๋ง์ importํ๋ ๊ฒฝ์ฐ์๋ import type ์ผ๋ก ์ฌ์ฉํ๊ฒ ๋๋ฉด, ์ปดํ์ผ ํ js ํ์ผ์์ ์์ ์ฌ๋ผ์ ธ ์ฑ๋ฅ ๊ฐ์ ์๋ ๋์์ด ๋๊ณ , ์ปดํ์ผ ์๋๋ ๋นจ๋ผ์ง๋๋ค!
|
์ง๋ฌธ์ฌํญ์ ์ง๊ธ ํ์ธํ๋๋ฐ, |
๐ ๋ฏธ์ ๋ฒํธ
3์ฃผ์ฐจ Misson 1,2,3
๐ ๊ตฌํ ์ฌํญ
๐ ์คํฌ๋ฆฐ์ท
โ ์ฒดํฌ๋ฆฌ์คํธ
๐ค ์ง๋ฌธ ์ฌํญ
tailwindcss ์ tailwind.config.js ๊ฐ ์๊ธฐ์ง ์๋๋ฐ ์ด๋ป๊ฒ ๋ง๋ค ์ ์๋๊ฑธ๊น์..