-
Notifications
You must be signed in to change notification settings - Fork 46
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
[이동훈] Sprint9 #312
Merged
arthurkimdev
merged 29 commits into
codeit-bootcamp-frontend:Next-이동훈
from
Donghunn-Lee:Next-이동훈-sprint9
Dec 8, 2024
The head ref may contain hidden characters: "Next-\uC774\uB3D9\uD6C8-sprint9"
Merged
[이동훈] Sprint9 #312
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
9f2b10e
chore: 불필요한 파일 삭제
Donghunn-Lee 7babde6
feat: reset.css및 color.css 추가
Donghunn-Lee bb3a8a5
chore: Tailwind 설치 및 설정 추가
Donghunn-Lee 0470d3e
chore: 폰트 추가 및 potcss.설정 파일 추가
Donghunn-Lee 0617ac0
chore: 폰트 적용
Donghunn-Lee 283fe28
feat: 페이지 헤더 추가
Donghunn-Lee c5d34c5
feat: getArticles api 구현
Donghunn-Lee a0b03cc
chore: 이미지 리소스 추가
Donghunn-Lee d7dc39b
feat: board 페이지 리다이렉트
Donghunn-Lee a43dbd6
chore: 기본 index.tsx 초기화
Donghunn-Lee a98d9eb
chore: Pretendard 폰트 추가
Donghunn-Lee 0f3d3ea
feat: board 페이지 기본 구조 구현
Donghunn-Lee 780f3c9
feat: 기본 레이아웃 조정 및 데이터 적용
Donghunn-Lee 1dbaf90
feat: 베스트 게시글 스타일링 추가
Donghunn-Lee 8c39133
feat: 검색 바 구현
Donghunn-Lee 0e87839
feat: 모바일 기본 스타일 구현
Donghunn-Lee 5ba7058
feat: board 페이지 반응형 스타일 구현
Donghunn-Lee 8f9380e
fix: 로고 이미지 반응형 수정
Donghunn-Lee b46501a
feat: 게시글 검색 기능 구현
Donghunn-Lee d72ce84
feat: 드롭다운 필터링 구현
Donghunn-Lee 42c8f4d
feat: 게시글 이미지 placeholder 추가
Donghunn-Lee cc56eb0
style: 드롭다운 메뉴 반응형 스타일 추가
Donghunn-Lee 98a4be4
feat: 네비게이션 바 버튼에 현재 페이지 강조 기능 추가
Donghunn-Lee e7e70cd
feat: 네비게이션 바 버튼에 현재 페이지 강조 기능 추가
Donghunn-Lee 4b65d04
feat: 상수 파일 추가
Donghunn-Lee 9b5f79e
feat: 게시글 개수를 반응형으로 다르게 가져오는 로직 구현
Donghunn-Lee 58d3d02
refactor: 절대 경로 추가 및 import 순서 재배치
Donghunn-Lee c92df69
fix: BestArticleBox 컴포넌트 이미지 경로 오타 수정
Donghunn-Lee f045aca
Merge branch 'Next-이동훈-sprint9' of https://github.com/Donghunn-Lee/11…
Donghunn-Lee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const BEST_ARTICLE_SIZE = 3; | ||
export const ARTICLES_PER_MOBILE_PAGE = 7; | ||
export const ARTICLES_PER_DESCKTOP_PAGE = 10; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { useEffect, useState } from 'react'; | ||
|
||
export function useMediaQuery(query: string): boolean { | ||
const [matches, setMatches] = useState<boolean>(() => { | ||
if (typeof window !== 'undefined') { | ||
return window.matchMedia(query).matches; | ||
} | ||
return false; | ||
}); | ||
|
||
useEffect(() => { | ||
const mediaQueryList = window.matchMedia(query); | ||
const handleChange = () => setMatches(mediaQueryList.matches); | ||
|
||
mediaQueryList.addEventListener('change', handleChange); | ||
return () => { | ||
mediaQueryList.removeEventListener('change', handleChange); | ||
}; | ||
}, [query]); | ||
|
||
return matches; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
} | ||
images: { | ||
domains: ['example.com'], | ||
remotePatterns: [ | ||
{ | ||
protocol: 'https', | ||
hostname: '**', | ||
}, | ||
], | ||
}, | ||
}; | ||
|
||
module.exports = nextConfig | ||
module.exports = nextConfig; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
상수를 한 파일에 정리하는 습관 좋습니다. 👍