-
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.
- Loading branch information
Showing
18 changed files
with
239 additions
and
1 deletion.
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
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,3 @@ | ||
export const ArchivedPage = () => { | ||
return <div className="">ArchivedPage</div>; | ||
}; |
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,7 @@ | ||
export const CreateLetterPage = () => { | ||
return ( | ||
<div className=""> | ||
CreateLetterPage | ||
</div> | ||
) | ||
} |
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 ErrorPage = () => { | ||
return <div className="">ErrorPage</div>; | ||
}; |
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,7 @@ | ||
export const HomePage = () => { | ||
return ( | ||
<div className=""> | ||
HomePage | ||
</div> | ||
) | ||
} |
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 LabelCollectionsPage = () => { | ||
return <div className="">LabelCollectionsPage</div>; | ||
}; |
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,7 @@ | ||
export const LetterDetailPage = () => { | ||
return ( | ||
<div className=""> | ||
LetterDetailPage | ||
</div> | ||
) | ||
} |
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 LoginPage = () => { | ||
return <div className="">LoginPage</div>; | ||
}; |
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,7 @@ | ||
export const MapExplorerPage = () => { | ||
return ( | ||
<div className=""> | ||
MapExplorerPage | ||
</div> | ||
) | ||
} |
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,7 @@ | ||
export const MyPage = () => { | ||
return ( | ||
<div className=""> | ||
MyPage | ||
</div> | ||
) | ||
} |
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,7 @@ | ||
export const NotificationPage = () => { | ||
return ( | ||
<div className=""> | ||
NotificationPage | ||
</div> | ||
) | ||
} |
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 RegisterPage = () => { | ||
return <div className="">RegisterPage</div>; | ||
}; |
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,7 @@ | ||
export const SentPage = () => { | ||
return ( | ||
<div className=""> | ||
SentPage | ||
</div> | ||
) | ||
} |
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 SharePage = () => { | ||
return <div className="">SharePage</div>; | ||
}; |
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,29 @@ | ||
import { ErrorPage } from '@/pages/ErrorPage'; | ||
import { HomePage } from '@/pages/HomePage'; | ||
import { CreateLetterPage } from '@/pages/CreateLetterPage'; | ||
import { MapExplorerPage } from '@/pages/MapExplorerPage'; | ||
import { MyPage } from '@/pages/MyPage'; | ||
import { LoginPage } from '@/pages/LoginPage'; | ||
import { RegisterPage } from '@/pages/RegisterPage'; | ||
import { ArchivedPage } from '@/pages/ArchivedPage'; | ||
import { LabelCollectionsPage } from '@/pages/LabelCollectionsPage'; | ||
import { LetterDetailPage } from '@/pages/LetterDetailPage'; | ||
import { NotificationPage } from '@/pages/NotificationPage'; | ||
import { SentPage } from '@/pages/SentPage'; | ||
import { SharePage } from '@/pages/SharePage'; | ||
|
||
export { | ||
ErrorPage, | ||
HomePage, | ||
CreateLetterPage, | ||
MapExplorerPage, | ||
MyPage, | ||
LoginPage, | ||
RegisterPage, | ||
ArchivedPage, | ||
LabelCollectionsPage, | ||
LetterDetailPage, | ||
NotificationPage, | ||
SentPage, | ||
SharePage | ||
}; |
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,80 @@ | ||
import { createBrowserRouter, Outlet } from 'react-router-dom'; | ||
import { NavigationBar } from '@/components/Common/NavigationBar/NavigationBar'; | ||
import { | ||
ErrorPage, | ||
HomePage, | ||
CreateLetterPage, | ||
MapExplorerPage, | ||
MyPage, | ||
LoginPage, | ||
RegisterPage, | ||
ArchivedPage, | ||
LabelCollectionsPage, | ||
LetterDetailPage, | ||
NotificationPage, | ||
SentPage, | ||
SharePage | ||
} from './pages'; | ||
|
||
export const router = createBrowserRouter([ | ||
{ | ||
path: '/', | ||
element: ( | ||
<> | ||
<Outlet /> | ||
<NavigationBar /> | ||
</> | ||
), | ||
errorElement: <ErrorPage />, | ||
children: [ | ||
{ | ||
path: '/', | ||
element: <HomePage /> | ||
}, | ||
{ | ||
path: '/letter/create', | ||
element: <CreateLetterPage /> | ||
}, | ||
{ | ||
path: '/mapexplorer', | ||
element: <MapExplorerPage /> | ||
}, | ||
{ | ||
path: '/mypage', | ||
element: <MyPage /> | ||
}, | ||
{ | ||
path: '/archived', | ||
element: <ArchivedPage /> | ||
}, | ||
{ | ||
path: '/labelcollections', | ||
element: <LabelCollectionsPage /> | ||
}, | ||
{ | ||
path: '/letter/:id', | ||
element: <LetterDetailPage /> | ||
}, | ||
{ | ||
path: '/notification', | ||
element: <NotificationPage /> | ||
}, | ||
{ | ||
path: '/sent', | ||
element: <SentPage /> | ||
}, | ||
{ | ||
path: '/share', | ||
element: <SharePage /> | ||
} | ||
] | ||
}, | ||
{ | ||
path: '/login', | ||
element: <LoginPage /> | ||
}, | ||
{ | ||
path: '/register', | ||
element: <RegisterPage /> | ||
} | ||
]); |
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