-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: staletime, gctime default 값(0)으로 변경
- Loading branch information
Showing
5 changed files
with
160 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
import styled from '@emotion/styled'; | ||
import { | ||
BottomNavigation, | ||
BottomNavigationItem, | ||
BottomNavigationLabel, | ||
} from 'chakra-ui-bottom-navigation'; | ||
import theme from '@/styles/theme'; | ||
|
||
export const FooterWrapper = styled.div` | ||
position: fixed; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
width: 100%; | ||
display: flex; | ||
justify-content: center; | ||
height: 5.25rem; //84px | ||
padding: 0; | ||
margin: 0; | ||
z-index: 300; | ||
`; | ||
|
||
export const Container = styled.div<{ maxWidth: string }>` | ||
width: 100%; | ||
max-width: ${(props) => props.maxWidth}; | ||
background-color: ${theme.colors.white}; | ||
overflow: hidden; | ||
position: relative; | ||
height: 100%; | ||
padding: 0; | ||
margin: 0; | ||
`; | ||
|
||
export const StyledNavigationItem = styled(BottomNavigationItem)` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
width: 100%; | ||
height: 100%; | ||
cursor: pointer; | ||
transition: all 0.2s ease-in-out; | ||
`; | ||
|
||
export const IconWrapper = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 1.5rem; //24px | ||
`; | ||
|
||
export const StyledLabel = styled(BottomNavigationLabel)<{ isActive: boolean }>` | ||
font-family: ${theme.typography.fontFamily}; | ||
font-size: ${theme.typography.body2.size}; | ||
font-weight: ${theme.typography.body2.weight}; | ||
color: ${(props) => (props.isActive ? theme.colors.primary : theme.colors.gray[300])}; | ||
margin-top: 4px; | ||
text-align: center; | ||
transition: color 0.2s ease-in-out; | ||
`; | ||
|
||
export const StyledBottomNavigation = styled(BottomNavigation)` | ||
width: 100%; | ||
height: 5.25rem; //84px | ||
max-width: inherit; | ||
position: relative; | ||
left: 0; | ||
bottom: 0; | ||
right: 0; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-around; | ||
box-shadow: none; | ||
padding: 10px; | ||
margin: 0; | ||
&& { | ||
box-shadow: none; | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import styled from '@emotion/styled'; | ||
import theme from '@/styles/theme'; | ||
|
||
export const StyledHeader = styled.header` | ||
width: 100%; | ||
padding: 0.5rem 1.5rem; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
background-color: ${theme.colors.white}; | ||
`; | ||
|
||
export const LogoWrapper = styled.div` | ||
display: flex; | ||
align-items: center; | ||
cursor: pointer; | ||
`; | ||
|
||
export const RightSection = styled.div` | ||
display: flex; | ||
align-items: center; | ||
gap: 0.5rem; | ||
`; | ||
|
||
export const IconButton = styled.button` | ||
background: none; | ||
border: none; | ||
padding: 0.5rem; | ||
cursor: pointer; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
color: ${theme.colors.black}; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters