Skip to content

Commit

Permalink
Merge pull request #5 from marina-yhm/test
Browse files Browse the repository at this point in the history
Feat: Navbar구현
  • Loading branch information
marinesnow34 authored Nov 7, 2023
2 parents 667e5dd + 6ac68e2 commit c66abad
Show file tree
Hide file tree
Showing 45 changed files with 892 additions and 45 deletions.
377 changes: 377 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"axios": "^1.5.1",
"bootstrap": "^5.3.2",
"react": "^18.2.0",
"react-bootstrap": "^2.9.1",
"react-dom": "^18.2.0",
"react-icons": "^4.11.0",
"react-redux": "^8.1.3",
Expand Down
35 changes: 35 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,38 @@
transform: rotate(360deg);
}
}

@font-face {
font-family: "Bold";
src: url("./assets/font/Pretendard-Bold.otf");
}

@font-face {
font-family: "ExtraBold";
src: url("./assets/font/Pretendard-ExtraBold.otf");
}

@font-face {
font-family: "ExtraLight";
src: url("./assets/font/Pretendard-ExtraLight.otf");
}

@font-face {
font-family: "Light";
src: url("./assets/font/Pretendard-Light.otf");
}

@font-face {
font-family: "Medium";
src: url("./assets/font/Pretendard-Medium.otf");
}

@font-face {
font-family: "Regular";
src: url("./assets/font/Pretendard-Regular.otf");
}

@font-face {
font-family: "SemiBold";
src: url("./assets/font/Pretendard-SemiBold.otf");
}
23 changes: 14 additions & 9 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
import { Route, Routes } from "react-router-dom";
import Footer from "../src/components/views/Footer/Footer";
import Header from "../src/components/views/Header/Header";
import Inventory from "../src/pages/Inventory/Inventory";
import Mypage from "../src/pages/Mypage/Mypage";
import Sales from "../src/pages/Sales/Sales";
import "./App.css";
import { Route, Routes, Navigate } from "react-router-dom";
import LandingPage from "../src/pages/LandingPage/LandingPage";
import TestPage from "../src/pages/TestPage/TestPage";
import Home from "./pages/Home/Home";

function App() {
return (
<div className="App">
<Header />
<Routes>
{/* 메인페이지 */}
<Route path="/" element={<LandingPage />} />
{/* 없는 경로로 갈경우 메인페이지로 강제 이동 */}
<Route path="/*" element={<Navigate to="/"></Navigate>}></Route>
{/* 테스트 페이지 */}
<Route path="/test" element={<TestPage />} />
<Route path="/" element={<Home />} />
<Route path="/Inventory" element={<Inventory />} />
<Route path="/Sales" element={<Sales />} />
<Route path="/Mypage" element={<Mypage />} />
</Routes>

<Footer />
</div>
);
}
Expand Down
Binary file added src/assets/font/Pretendard-Black.otf
Binary file not shown.
Binary file added src/assets/font/Pretendard-Bold.otf
Binary file not shown.
Binary file added src/assets/font/Pretendard-ExtraBold.otf
Binary file not shown.
Binary file added src/assets/font/Pretendard-ExtraLight.otf
Binary file not shown.
Binary file added src/assets/font/Pretendard-Light.otf
Binary file not shown.
Binary file added src/assets/font/Pretendard-Medium.otf
Binary file not shown.
Binary file added src/assets/font/Pretendard-Regular.otf
Binary file not shown.
Binary file added src/assets/font/Pretendard-SemiBold.otf
Binary file not shown.
Binary file added src/assets/font/Pretendard-Thin.otf
Binary file not shown.
3 changes: 3 additions & 0 deletions src/assets/icons/Header/CloseLight.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icons/Header/LOGO.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icons/Header/OpenLight.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icons/Header/SoundOff.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icons/Header/SoundOn.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c66abad

Please sign in to comment.