-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 오픈 그래프 이슈 해결 (#131) * Remove: 메타태그 제거 * Feat: Pre렌더링 경로 추가및 SEO 컴포넌트 추가 * Feat: 메타데이터 태그 컴포넌트 추가 * Feat: 메타태그 추가 * Fix: module type 수정 * Fix: 메타데이터 name 수정 * Feat: 동적라우터 변경 및 async Boundary 공용 묶기 * Remove: tracker제거 * Feat: GA 트래커 달기 * Move: 파일 이동 util => routerr * Feat: 애널리틱스 util함수 구현 및 스크롤 tracker 구현 * Feat: 애널리틱스 이벤트 적용 * Chore: EsLint 추가 * Feat: 조회 후 최종 제출하는 사람의 이벤트 달기 * Feat: status별 에러 코드에 관련된 alert창 구현 * Env: pnpm lint 내용 추가 * Fix: Router내 계층 수정 * Env: 버전 수정
- Loading branch information
Showing
30 changed files
with
392 additions
and
258 deletions.
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,2 @@ | ||
vite.config.ts | ||
jest.config.ts |
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 |
---|---|---|
|
@@ -33,6 +33,9 @@ | |
"typescript": { | ||
"alwaysTryTypes": true | ||
} | ||
}, | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"rules": { | ||
|
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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,27 @@ | ||
import { useEffect } from 'react'; | ||
|
||
import { handleScroll } from '@gdsc/utils/anlytics'; | ||
|
||
// 유틸리티 함수 경로 | ||
|
||
const useScrollTracker = () => { | ||
useEffect(() => { | ||
const onScroll = () => { | ||
const scrollPosition = window.scrollY; | ||
const scrollHeight = | ||
document.documentElement.scrollHeight - window.innerHeight; | ||
const scrolledPercentage = (scrollPosition / scrollHeight) * 100; | ||
|
||
if (scrolledPercentage >= 50) { | ||
handleScroll(); | ||
} | ||
}; | ||
|
||
window.addEventListener('scroll', onScroll); | ||
return () => { | ||
window.removeEventListener('scroll', onScroll); | ||
}; | ||
}, []); | ||
}; | ||
|
||
export default useScrollTracker; |
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
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
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
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
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
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
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,5 +1,13 @@ | ||
import CommingSoonPage from '../CommingSoonPage'; | ||
import { CommunityMetaData } from '@gdsc/router/components/MetaData'; | ||
|
||
const CommunityPage = () => { | ||
return <>커뮤니티 페이지</>; | ||
return ( | ||
<> | ||
<CommunityMetaData /> | ||
<CommingSoonPage /> | ||
</> | ||
); | ||
}; | ||
|
||
export default CommunityPage; |
Oops, something went wrong.