Skip to content

Commit

Permalink
update: 페이지 폴더 개선 및 글쓰기 버튼제작
Browse files Browse the repository at this point in the history
  • Loading branch information
JoStar33 committed Aug 20, 2024
1 parent ec24c5f commit 7c7d958
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 7 deletions.
12 changes: 7 additions & 5 deletions src/Router.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { Route, Routes } from 'react-router-dom';
import routerPath from '@/constants/routerPath';
import HomePage from '@/pages';
import SignInPage from '@/pages/SignInPage';
import SignInPage from '@/pages/signIn';
import { PublicRoute } from '@/components/routes/PublicRoute';
import { PrivateRoute } from '@/components/routes/PrivateRoute';
import UserPage from '@/pages/UserPage';
import SignUpPage from '@/pages/SignUpPage';
import MarketPage from '@/pages/MarketPage';
import ContentsPage from '@/pages/ContentsPage';
import UserPage from '@/pages/user';
import SignUpPage from '@/pages/signUp';
import MarketPage from '@/pages/market';
import ContentsWritePage from '@/pages/contents/write';
import ContentsPage from '@/pages/contents';

export default function Router() {
return (
Expand All @@ -21,6 +22,7 @@ export default function Router() {
</Route>
<Route element={<PrivateRoute />}>
<Route path={routerPath.USER} element={<UserPage />} />
<Route path={routerPath.CONTENTS_WRITE} element={<ContentsWritePage />} />
</Route>
</Routes>
);
Expand Down
1 change: 1 addition & 0 deletions src/components/common/FloatButtonWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const S = {
width: 50px;
height: 50px;
position: fixed;
cursor: pointer;
z-index: 50;
right: 50px;
bottom: 120px;
Expand Down
5 changes: 3 additions & 2 deletions src/components/contents/FloatWriteButton.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import FloatButtonWrapper from '../common/FloatButtonWrapper';
import FloatButtonWrapper from '@/components/common/FloatButtonWrapper';
import { FaPen } from 'react-icons/fa';

export default function FloatWriteButton() {
return (
<FloatButtonWrapper>
<></>
<FaPen size={25} />
</FloatButtonWrapper>
);
}
1 change: 1 addition & 0 deletions src/constants/routerPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const routerPath = {
SIGN_UP: '/sign-up',
USER: '/user',
MARKET: '/market',
CONTENTS_WRITE: '/contents/write',
CONTENTS: '/contents',
} as const;

Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions src/pages/contents/write.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function ContentsWritePage() {
return <>ContentsWritePage</>;
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7c7d958

Please sign in to comment.