diff --git a/src/App.tsx b/src/App.tsx index efad28c..42b3167 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -4,18 +4,20 @@ import MainPage from "./pages/MainPage"; import ThemeRecs from "./pages/ThemeRecs"; import ThemeRecsQuestions from "./pages/ThemeRecsQuestions"; import ThemeRecsResult from "./pages/ThemeRecsResult"; +import Navbar from "./components/Navbar"; const App: React.FC = () => { return ( + - - + } /> + } /> } /> - + } /> ); diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index aaa2c8c..7438a57 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { Container } from "../styles/NavbarStyled"; +import { Container, NavLink } from "../styles/NavbarStyled"; import logo from "../image/bangpro_logo.png"; import { BsChatSquareHeartFill } from "react-icons/bs"; import { BsCollectionFill } from "react-icons/bs"; @@ -11,25 +11,34 @@ const Navbar = () => {
logo
+
-
-
- + +
+
+ +
+

테마 추천

-

테마 추천

-
-
-
- + + + +
+
+ +
+

테마 정보

-

테마 정보

-
-
-
- + + + +
+
+ +
+

마이페이지

-

마이페이지

-
+
); diff --git a/src/index.tsx b/src/index.tsx index dac7f10..1264558 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3,7 +3,6 @@ import ReactDOM from "react-dom/client"; import "./index.css"; import App from "./App"; import reportWebVitals from "./reportWebVitals"; -import Navbar from "./components/Navbar"; const root = ReactDOM.createRoot( document.getElementById("root") as HTMLElement @@ -12,7 +11,6 @@ const root = ReactDOM.createRoot( root.render( // strictMode에서는 두번 렌더링 될 수 있으나, 프로덕션빌드 모드에서는 그렇지 않을것 - ); diff --git a/src/styles/NavbarStyled.tsx b/src/styles/NavbarStyled.tsx index e9fd2c7..e03ecd7 100644 --- a/src/styles/NavbarStyled.tsx +++ b/src/styles/NavbarStyled.tsx @@ -32,35 +32,35 @@ export const Container = styled.div` justify-content: space-between; align-items: center; } +`; - .navBox > div { - display: flex; - justify-content: center; - align-items: center; - } +export const NavLink = styled(Link)` + text-decoration: none; - .navBox > div > div { + .nav { display: flex; justify-content: center; align-items: center; + transition: all 0.3s ease-in-out; + } + + .nav > div { font-size: 1.4rem; margin-right: 0.7rem; } - .navBox > div:hover { + .nav:hover { cursor: pointer; color: white; + transform: scale(1.05); } -`; -export const StyledLink = styled(Link)` - text-decoration: none; &:focus, - &:hover, &:visited, &:link, &:active { text-decoration: none; + color: #3b3b3b; } `;