Skip to content

Commit 39643ee

Browse files
authored
[FRONTEND] 페이지 라우팅 설정 (#19)
페이지 추가 및 라우팅 기능 구현
1 parent da393f0 commit 39643ee

33 files changed

+314
-213
lines changed

frontend/package-lock.json

Lines changed: 20 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"react": "^19.1.1",
1414
"react-dom": "^19.1.1",
1515
"react-router": "^7.8.2",
16+
"react-router-dom": "^7.9.1",
1617
"zustand": "^5.0.8"
1718
},
1819
"devDependencies": {

frontend/src/App.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
import { BrowserRouter, Route, Routes } from "react-router";
22
import "./App.css";
33
import Home from "./pages/home";
4+
import CompatibilityCheck from "./pages/compatibilityCheck";
5+
import ExpertConsultation from "./pages/expertConsultation";
6+
import Guide from "./pages/guide";
7+
import Community from "./pages/community";
8+
import MyPage from "./pages/myPage";
49

510
const Router = () => {
611
return (
712
<BrowserRouter>
813
<Routes>
914
<Route path={"/"} element={<Home />} />
15+
<Route path={"/compatibility-check"} element={<CompatibilityCheck />} />
16+
<Route path={"/expert-consultation"} element={<ExpertConsultation />} />
17+
<Route path={"/guide"} element={<Guide />} />
18+
<Route path={"/community"} element={<Community />} />
19+
<Route path={"/mypage"} element={<MyPage />} />
1020
</Routes>
1121
</BrowserRouter>
1222
);
File renamed without changes.
File renamed without changes.
File renamed without changes.

frontend/src/assets/image/instagram.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

frontend/src/assets/image/youtube.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Loading

frontend/src/components/common/chatBot/MoreButton.tsx

Whitespace-only changes.

0 commit comments

Comments
 (0)