-
Notifications
You must be signed in to change notification settings - Fork 2
♻️Refactor: 리펙토링 작업 #118
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
Merged
Merged
♻️Refactor: 리펙토링 작업 #118
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
6f378ce
♻️ refactor: 마이페이지 구조 개선
Insung-Jo 8cf3371
♻️ refactor: 마이페이지 구조 개선
Insung-Jo 6355fab
Merge branch 'refactor/insung' of https://github.com/CoPlay-FE/coplan…
Insung-Jo 665e611
♻️ refactor: 리다이랙트 구조 개선
Insung-Jo b01210e
♻️ refactor: 로그인 회원가입 페이지 구조 개선
Insung-Jo 95a9b21
♻️ refactor: 컨벤션에 맞게 수정
Insung-Jo ad2ffdf
♻️ refactor: 환경변수 예외처리 추가
Insung-Jo a03be9d
♻️ refactor: 마이페이지 컨벤션 개선
Insung-Jo 248d3c9
Merge branch 'develop' into refactor/insung
Insung-Jo f521152
🎨style: 반응형 수정
Insung-Jo 21f2d47
🐛fix: import 경로 수정
Insung-Jo 319aa8e
Merge branch 'develop' into refactor/insung
Insung-Jo 1146713
♻️ refactor: 로그인 함수 수정
Insung-Jo 9969f5e
♻️refactor: 랜딩페이지 및 리다이랙트 수정
Insung-Jo 1675e47
♻️refactor: 프로필 수정 모바일 대응
Insung-Jo c0225d7
🗑️remove: tester 파일 제거
Insung-Jo 9b0473c
♻️refactor: 리다이랙트 개선
Insung-Jo 042424d
✨feat: 로딩 페이지 구현
Insung-Jo 69725a1
✨feat: 로딩 및 에러 페이지 구현
Insung-Jo 252abb5
Merge branch 'develop' into refactor/insung
Insung-Jo db01b02
♻️refactor: 클래스 순서 수정 및 불필요한 파일 제거
Insung-Jo fb31a4d
♻️refactor: 인스턴스 경로 1차 수정
Insung-Jo f381e49
♻️refactor: 인스턴스 경로 2차 수정 및 파일 경로 변경
Insung-Jo ecc484c
♻️refactor: 인스턴스 경로 3차 수정
Insung-Jo a1da6ea
Merge branch 'develop' into refactor/insung
Insung-Jo 79a4687
🐛fix: 코드래빗 리뷰 반영
Insung-Jo 5a76253
🐛fix: 놓친 수정 사항 반영
Insung-Jo 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 hidden or 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 hidden or 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,62 @@ | ||
| 'use client' | ||
|
|
||
| import { useMounted } from '@hooks/useMounted' | ||
| import Image from 'next/image' | ||
| import { useTheme } from 'next-themes' | ||
|
|
||
| export default function ErrorPage({ reset }: { reset?: () => void }) { | ||
| const { theme, systemTheme } = useTheme() | ||
| const mounted = useMounted() | ||
| if (!mounted) return null | ||
|
|
||
| const currentTheme = theme === 'system' ? systemTheme : theme | ||
| const isDark = currentTheme === 'dark' | ||
|
|
||
| return ( | ||
| <div | ||
| className={ | ||
| isDark | ||
| ? 'flex min-h-screen flex-col items-center justify-center bg-gradient-to-br from-gray-900 to-gray-800' | ||
| : 'flex min-h-screen flex-col items-center justify-center bg-gradient-to-br from-blue-50 to-blue-100' | ||
| } | ||
| > | ||
| <div className="flex size-28 items-center justify-center"> | ||
| <Image | ||
| src={isDark ? '/images/logo-dark.svg' : '/images/logo-light.svg'} | ||
| alt="logo" | ||
| fill | ||
| priority | ||
| className="object-contain" | ||
| /> | ||
| </div> | ||
| <div | ||
| className={ | ||
| isDark | ||
| ? 'mt-8 text-4xl font-bold tracking-tight text-blue-300' | ||
| : 'mt-8 text-4xl font-bold tracking-tight text-blue-600' | ||
| } | ||
| > | ||
| 에러가 발생했습니다 | ||
| </div> | ||
| <div | ||
| className={ | ||
| isDark | ||
| ? 'mt-3 text-lg font-normal text-gray-300' | ||
| : 'mt-3 text-lg font-normal text-gray-600' | ||
| } | ||
| > | ||
| 문제가 발생했습니다. 잠시 후 다시 시도해 주세요. | ||
| </div> | ||
| <button | ||
| className={ | ||
| isDark | ||
| ? 'mt-8 rounded-lg bg-blue-700 px-8 py-3 text-lg font-semibold text-white shadow transition-colors hover:bg-blue-800' | ||
| : 'mt-8 rounded-lg bg-blue-600 px-8 py-3 text-lg font-semibold text-white shadow transition-colors hover:bg-blue-700' | ||
| } | ||
| onClick={() => (reset ? reset() : window.history.back())} | ||
| > | ||
| 이전 페이지로 | ||
| </button> | ||
| </div> | ||
| ) | ||
| } |
This file contains hidden or 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 hidden or 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,4 +1,4 @@ | ||
| export const AUTH_ENDPOINT = { | ||
| LOGIN: '/15-2/auth/login', | ||
| SIGNUP: '/15-2/users', | ||
| LOGIN: `/${process.env.NEXT_PUBLIC_TEAM_ID}/auth/login`, | ||
| SIGNUP: `/${process.env.NEXT_PUBLIC_TEAM_ID}/users`, | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,3 +1,5 @@ | ||
| 'use client' | ||
|
|
||
| import GithubIcon from './GithubIcon' | ||
|
|
||
| export default function Footer() { | ||
|
|
||
This file contains hidden or 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 hidden or 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,15 @@ | ||
| 'use client' | ||
|
|
||
| import Footer from './Footer' | ||
| import Header from './Header' | ||
| import Main from './Main' | ||
|
|
||
| export default function Landing() { | ||
| return ( | ||
| <> | ||
| <Header /> | ||
| <Main /> | ||
| <Footer /> | ||
| </> | ||
| ) | ||
| } |
This file contains hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.