<aside> 💡
npx create-next-app@latest .
</aside>
next 16 버전으로 설치되었습니다.
앱 라우터 방식을 사용
app/
├── page.tsx
├── layout.tsx
├── donday/
│ ├── page.tsx // 메인페이지
│ └── [id]/
│ └── page.tsx // 상세 페이지
components/
├── Slider.tsx // 공유수 top콘텐츠, 오리지널 시리즈, 돈이 되는 1분
├── Catefories.tsx // 주제별 콘텐츠
├── Banner.tsx // 똑똑한 전세관리
├── Keywards.tsx // 추천 키워드
└── Subscribe.tsx // 구독
containers/
├── TopSharedContainer.tsx // 공유수 top 콘텐츠
├── CategoriesContainer.tsx // 주제별 콘텐츠
├── BannerContainer.tsx // 똑똑한 전세관리
├── KeywardsContainer.tsx // 추천 키워드
├── SeriesContainer.tsx // 오리지널 시리즈
├── VideoContainer.tsx // 돈이 되는 1분
└── SubscribeContainer.tsx // 구독
styles/
├── sliderStyle.css
├── 중략...
└── SubscribeStyle.css
api/
├── fetchPosts.ts
└── fetchVideo.ts
react-slick 슬라이더 ⇒ 사용X
| 역할 | 패키지명 | 설명 |
|---|---|---|
| 메인 기능 | react-slick |
슬라이드 컴포넌트 기능 제공 |
| 스타일 | slick-carousel |
CSS 테마 및 스타일 포함 |
| 타입 정의 (TS일 때만) | @types/react-slick |
타입스크립트에서 IntelliSense 및 타입 지원 |
swiper 슬라이더
루시드 아이콘
tailwind CSS
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p