Skip to content

Commit

Permalink
feat: 네비게이션 버튼까지 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sinji2102 committed Jul 12, 2024
1 parent cc10eab commit a592027
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/pages/main/components/footer/Footer.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const FooterTop = styled.section`
width: auto;
`;

// 로고 확정되면 로고 들어갈 위치
export const Logo = styled(IconFooterLogo)`
width: 5.7rem;
height: 2.4rem;
Expand Down
23 changes: 23 additions & 0 deletions src/pages/main/components/mainNavigation/MainNavigation.styled.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import styled from "styled-components";
import { IconFooterLogo, IcHamburgar } from "@assets/svgs";

export const MainNavigationWrapper = styled.section`
position: absolute;
Expand All @@ -11,3 +12,25 @@ export const MainNavigationWrapper = styled.section`
color: white;
`;

export const LogoBtn = styled.button`
width: 6rem;
height: 2rem;
`;

export const LogoIcon = styled(IconFooterLogo)`
width: 6rem;
height: 2rem;
margin-left: 2.4rem;
`;

export const HamburgarBtn = styled.button`
width: 3.2rem;
height: 3.2rem;
margin-right: 1.7rem;
`;

export const HamburgarIcon = styled(IcHamburgar)`
width: 3.2rem;
height: 3.2rem;
`;
19 changes: 17 additions & 2 deletions src/pages/main/components/mainNavigation/MainNavigation.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
import React from "react";
import * as S from "./MainNavigation.styled";
import { useNavigate } from "react-router-dom";

const MainNavigation = () => {
return <S.MainNavigationWrapper>테스트테스트테스트</S.MainNavigationWrapper>;
const navigate = useNavigate();

return (
<S.MainNavigationWrapper>
<S.LogoBtn
onClick={() => {
navigate("/main");
}}
>
<S.LogoIcon />
</S.LogoBtn>
<S.HamburgarBtn onClick={() => {}}>
<S.HamburgarIcon />
</S.HamburgarBtn>
</S.MainNavigationWrapper>
);
};

export default MainNavigation;

0 comments on commit a592027

Please sign in to comment.