diff --git a/contents/2024-07-15/thenextjs-week-7.md b/contents/2024-07-15/thenextjs-week-7.md index eec7644..1e1ae53 100644 --- a/contents/2024-07-15/thenextjs-week-7.md +++ b/contents/2024-07-15/thenextjs-week-7.md @@ -54,78 +54,59 @@ emoji: '๐Ÿ’ป' ์•„๋ž˜ ์ฝ”๋“œ์—์„œ ํ˜„์žฌ ํ”„๋กœ์ ํŠธ์˜ ์ปดํฌ๋„ŒํŠธ๋“ค์„ ํฌ๊ฒŒ ๋น„์ฆˆ๋‹ˆ์Šค ๋กœ์ง/๋ฐ์ดํ„ฐ ๊ณ„์ธต๊ณผ ํ‘œํ˜„ ๊ณ„์ธต์œผ๋กœ ๋‚˜๋ˆ ๋ณธ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด ๋ฉ”์ธ ํŽ˜์ด์ง€์—์„œ์˜ ์Šคํ„ฐ๋”” ๋ฆฌ๋ทฐ ์นด๋“œ ์Šฌ๋ผ์ด๋“œ๋ฅผ ์ปดํฌ๋„ŒํŠธ๋ฅผ ๋‚˜๋ˆŒ ๋•Œ, Swiper.js๋ฅผ ์‚ฌ์šฉํ•ด ๋งŒ๋“  ์ „์ฒด ์ฝ”๋“œ๋ฅผ Swiper(`swiper/react`) ์ปดํฌ๋„ŒํŠธ๋ฅผ ์ด์šฉํ•˜์—ฌ ๊ธฐ๋ณธ์ ์ธ ์ปดํฌ๋„ŒํŠธ ๋””์ž์ธ๊ณผ ๊ตฌ์กฐ๋ฅผ ๋งŒ๋“œ๋Š” ์ปดํฌ๋„ŒํŠธ, ๋ฐ์ดํ„ฐ๋ฅผ ๋ณด์—ฌ์ค„ ๊ฐ ์Šฌ๋ผ์ด๋“œ ์š”์†Œ์˜ ๋””์ž์ธ ํ‘œํ˜„ ์ปดํฌ๋„ŒํŠธ(presentaional), ๋ฐ์ดํ„ฐ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์‹ค์ œ ํŽ˜์ด์ง€ ์ปดํฌ๋„ŒํŠธ์—์„œ ๋ฐ”๋กœ ์‚ฌ์šฉํ•˜๊ฒŒ ๋  ์Šฌ๋ผ์ด๋“œ ์„น์…˜ ์ปจํ…์ธ  ์ปดํฌ๋„ŒํŠธ๋กœ ๊ฐ๊ฐ์˜ ๊ด€์‹ฌ์‚ฌ๋ณ„๋กœ ๋ ˆ์ด์–ด๋ฅผ ๊ตฌ๋ถ„ํ•˜์—ฌ ์ดํ•ดํ•  ์ˆ˜ ์žˆ๋‹ค. -```tsx -// Swiper Slide Component +```jsx +// ReviewSwiper.tsx ... -export default function ReviewSwiper({ children }: TProps) { - return ( - <> -
-
- - {children} -
-
-
-
-
-
- -
-
- -
-
-
- - ) -} +
+
+ + {children} +
+
+
+
+
+
+ +
+
+ +
+
+
``` ```tsx -// UserStudyReviewItem +// UserReviewItem.tsx ... -export default function UserReviewItem({ - review, - className, -}: { - review: TReview - className?: string -}) { - return ( -
-
-

{review.text}

-
-
-
-

'{review.studyName}' ํ›„๊ธฐ

-

{review.writerKeyword}

-
-
- ) -} +
+
+

{review.text}

+
+
+
+

'{review.studyName}' ํ›„๊ธฐ

+

{review.writerKeyword}

+
+
``` ```tsx