11import styled from 'styled-components' ;
22
33export const NavBarContainer = styled . nav `
4- // fixed 포지션에 breakPoint를 적용하는 방법
54 position: fixed;
6- ${ ( { theme } ) => theme . visibleOnMobileTablet } ; // breakPoint 미디어쿼리
7- bottom: 0; // 경우에 따라 top 0 등으로 작성
8- left: 50%; // 수직 중앙에 위치
9- transform: translateX(-50%); // width에 따른 수직 중앙 조정
10- width: 100%; // brakePoint에 따른 width에 따르도록 설정
5+ ${ ( { theme } ) => theme . visibleOnMobileTablet } ;
6+ bottom: 0;
7+ left: 50%;
8+ transform: translateX(-50%);
9+ width: 100%;
1110
12- // 이후로 자기 코드에 맞춰서 작성
1311 height: 5.5rem;
1412 justify-content: center;
1513 align-items: center;
16- background: ${ ( { theme } ) => theme . colors . gradient } ; // 여기서 그래디언트 색상 사용
14+ background: ${ ( { theme } ) => theme . colors . brand . gradient } ;
1715 margin: 0;
1816 border-radius: 1.25rem 1.25rem 0 0;
1917 filter: drop-shadow(0rem 0rem 0.25rem rgba(0, 0, 0, 0.25));
@@ -66,7 +64,7 @@ export const SideNavBarContainer = styled.nav`
6664 padding: 2.5rem 1.5rem;
6765 border-radius: 0 3rem 3rem 0;
6866 position: fixed;
69- background: white ;
67+ background: ${ ( { theme } ) => theme . colors . background . primary } ;
7068 filter: drop-shadow(0rem 0rem 0.25rem rgba(0, 0, 0, 0.25));
7169` ;
7270
@@ -90,7 +88,7 @@ export const SideNavBarHeader = styled.header`
9088 }
9189
9290 button:hover {
93- background: rgba(0, 0, 0, 0.1) ;
91+ background: ${ ( { theme } ) => theme . colors . gray [ 200 ] } ;
9492 }
9593` ;
9694
@@ -110,7 +108,7 @@ export const SideNavBarButton = styled.label`
110108 align-items: center;
111109 border-radius: 50%;
112110 padding: 0.6rem;
113- background: white ;
111+ background: ${ ( { theme } ) => theme . colors . background . primary } ;
114112 transition: background 0.2s;
115113
116114 box-shadow:
@@ -120,7 +118,7 @@ export const SideNavBarButton = styled.label`
120118 }
121119
122120 button:hover {
123- background: rgba(0, 0, 0, 0.1) ;
121+ background: ${ ( { theme } ) => theme . colors . gray [ 200 ] } ;
124122 }
125123
126124 img {
0 commit comments