-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 라우터 적용을 위한 페이지 생성 * feat: 레이아웃 생성 * feat: 라우터 설정 * chore: index 파일 수정 * feat: Page 폴더 구조 정리 * feat: 라우터 설정 * chore: 사용하지 않는 파일 제거 * fix: 경로 수정 * chore: index 파일 삭제 * fix: 라우팅 변경, 파일 이름 변경
- Loading branch information
1 parent
de6268d
commit 67f2611
Showing
26 changed files
with
175 additions
and
13 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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
import Test from '~/Test'; | ||
import Layout from '~/routes/Layout'; | ||
|
||
function App() { | ||
return ( | ||
<> | ||
<Test></Test> | ||
</> | ||
); | ||
} | ||
const App = () => { | ||
return <Layout />; | ||
}; | ||
|
||
export default App; |
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
const AdminPage = () => { | ||
return <div>admin</div>; | ||
}; | ||
|
||
export default AdminPage; |
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,5 @@ | ||
const ApplyEventPage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default ApplyEventPage; |
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,5 @@ | ||
const ApplyEventPage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default ApplyEventPage; |
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,5 @@ | ||
const CreateEventPage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default CreateEventPage; |
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,5 @@ | ||
const EventDetailPage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default EventDetailPage; |
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,5 @@ | ||
const EventListPage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default EventListPage; |
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,5 @@ | ||
const MainPage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default MainPage; |
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,5 @@ | ||
const MenteeMyPage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default MenteeMyPage; |
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,5 @@ | ||
const MentorMyPage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default MentorMyPage; |
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,5 @@ | ||
const WriteReviewPage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default WriteReviewPage; |
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,5 @@ | ||
const MenteeEditProfilePage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default MenteeEditProfilePage; |
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,5 @@ | ||
const MentorEditProfilePage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default MentorEditProfilePage; |
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,5 @@ | ||
const CommentResumePage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default CommentResumePage; |
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,5 @@ | ||
const CreateResumePage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default CreateResumePage; |
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,5 @@ | ||
const EditResumePage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default EditResumePage; |
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,5 @@ | ||
const ResumeDetailPage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default ResumeDetailPage; |
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,5 @@ | ||
const SignInPage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default SignInPage; |
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,5 @@ | ||
const CommonSignUpPage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default CommonSignUpPage; |
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,5 @@ | ||
const MenteeSignUpPage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default MenteeSignUpPage; |
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,5 @@ | ||
const MentorSignUpPage = () => { | ||
return <></>; | ||
}; | ||
|
||
export default MentorSignUpPage; |
Empty file.
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,13 @@ | ||
import { Heading } from '@chakra-ui/react'; | ||
import { Outlet } from 'react-router-dom'; | ||
|
||
const Layout = () => { | ||
return ( | ||
<> | ||
<Heading>예를 들어 Header가 들어갈 공간, Outlet에는 경로가 "/"일 때 null 값이 들어감</Heading> | ||
<Outlet /> | ||
</> | ||
); | ||
}; | ||
|
||
export default Layout; |
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,55 @@ | ||
import { createBrowserRouter } from 'react-router-dom'; | ||
import App from '~/App'; | ||
import AdminPage from '~/pages/AdminPage/AdminPage'; | ||
import ApplyEventPage from '~/pages/ApplyEventPage/ApplyEventPage'; | ||
import CreateEventPage from '~/pages/EventPage/CreateEventPage'; | ||
import EventDetailPage from '~/pages/EventPage/EventDetailPage'; | ||
import EventListPage from '~/pages/EventPage/EventListPage'; | ||
import MainPage from '~/pages/MainPage/MainPage'; | ||
import MenteeMyPage from '~/pages/MyPage/MenteeMyPage'; | ||
import MentorMyPage from '~/pages/MyPage/MentorMyPage'; | ||
import WriteReviewPage from '~/pages/MyPage/WriteReviewPage'; | ||
import MenteeEditProfilePage from '~/pages/ProfilePage/MenteeEditProfilePage'; | ||
import MentorEditProfilePage from '~/pages/ProfilePage/MentorEditProfilePage'; | ||
import CommentResumePage from '~/pages/ResumePage/CommentResumePage'; | ||
import CreateResumePage from '~/pages/ResumePage/CreateResumePage'; | ||
import EditResumePage from '~/pages/ResumePage/EditResumePage'; | ||
import ResumeDetailPage from '~/pages/ResumePage/ResumeDetailPage'; | ||
import SignInPage from '~/pages/SignInPage/SignInPage'; | ||
import CommonSignUpPage from '~/pages/SignUpPage/CommonSignUpPage'; | ||
import MenteeSignUpPage from '~/pages/SignUpPage/MenteeSignUpPage'; | ||
import MentorSignUpPage from '~/pages/SignUpPage/MentorSignUpPage'; | ||
|
||
const router = createBrowserRouter([ | ||
{ | ||
path: '/', | ||
element: <App />, | ||
children: [ | ||
{ index: true, element: <MainPage /> }, | ||
{ path: 'mypage/mentee', element: <MenteeMyPage /> }, | ||
{ path: 'mypage/mentor', element: <MentorMyPage /> }, | ||
{ path: 'user/edit-info/mentee', element: <MenteeEditProfilePage /> }, | ||
{ path: 'user/edit-info/mentor', element: <MentorEditProfilePage /> }, | ||
|
||
{ path: 'resume/create', element: <CreateResumePage /> }, | ||
{ path: 'resume/:id/edit', element: <EditResumePage /> }, | ||
{ path: 'resume/:id/comment', element: <CommentResumePage /> }, | ||
{ path: 'resume/:id', element: <ResumeDetailPage /> }, | ||
{ path: 'write-review', element: <WriteReviewPage /> }, | ||
|
||
{ path: 'event/create', element: <CreateEventPage /> }, | ||
{ path: 'event/view', element: <EventListPage /> }, | ||
{ path: 'event/view/:eventId', element: <EventDetailPage /> }, | ||
{ path: 'event/apply', element: <ApplyEventPage /> }, | ||
|
||
{ path: 'sign-up/common', element: <CommonSignUpPage /> }, | ||
{ path: 'sign-up/mentee', element: <MenteeSignUpPage /> }, | ||
{ path: 'sign-up/mentor', element: <MentorSignUpPage /> }, | ||
{ path: 'sign-in', element: <SignInPage /> }, | ||
|
||
{ path: 'admin', element: <AdminPage /> }, | ||
], | ||
}, | ||
]); | ||
|
||
export default router; |