|
|
|
@ -33,12 +33,12 @@ export const HeaderStyled = styled.header<HeaderProps>` |
|
|
|
@media (max-width: 450px){ |
|
|
|
@media (max-width: 450px){ |
|
|
|
height: 124px; |
|
|
|
height: 124px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
${({ color, headerImage }) => (headerImage |
|
|
|
${({ color, headerImage }) => (headerImage |
|
|
|
? css`background: url(${headerImage});` |
|
|
|
? css`background: url(${headerImage});` |
|
|
|
: client.styles.homePageHeader || defaultHeaderStyles(color) |
|
|
|
: client.styles.homePageHeader || defaultHeaderStyles(color) |
|
|
|
)} |
|
|
|
)} |
|
|
|
|
|
|
|
|
|
|
|
${isMobileDevice |
|
|
|
${isMobileDevice |
|
|
|
? css` |
|
|
|
? css` |
|
|
|
height: auto; |
|
|
|
height: auto; |
|
|
|
@ -54,10 +54,10 @@ type Props = { |
|
|
|
|
|
|
|
|
|
|
|
export const HeaderGroup = styled.div<Props>` |
|
|
|
export const HeaderGroup = styled.div<Props>` |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
|
|
|
|
|
|
|
|
${({ height }) => (height ? `height: ${height}rem` : '')}; |
|
|
|
${({ height }) => (height ? `height: ${height}rem` : '')}; |
|
|
|
${({ marginTop }) => (marginTop ? `margin-top: ${marginTop}rem` : '')}; |
|
|
|
${({ marginTop }) => (marginTop ? `margin-top: ${marginTop}rem` : '')}; |
|
|
|
|
|
|
|
|
|
|
|
${isMobileDevice |
|
|
|
${isMobileDevice |
|
|
|
? css` |
|
|
|
? css` |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|
@ -67,18 +67,16 @@ export const HeaderGroup = styled.div<Props>` |
|
|
|
` |
|
|
|
` |
|
|
|
|
|
|
|
|
|
|
|
export const HeaderLogo = styled(Logo)` |
|
|
|
export const HeaderLogo = styled(Logo)` |
|
|
|
margin-top: ${({ isMatchPage }) => (isMatchPage ? '4px' : '10px')}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${({ isMatchPage }) => (isMatchPage ? css` |
|
|
|
${({ isMatchPage }) => (isMatchPage ? css` |
|
|
|
width: ${client.styles.matchLogoWidth}rem; |
|
|
|
width: ${client.styles.matchLogoWidth}rem; |
|
|
|
height: ${client.styles.matchLogoHeight}rem; |
|
|
|
height: ${client.styles.matchLogoHeight}rem; |
|
|
|
` : '')}
|
|
|
|
` : '')}
|
|
|
|
|
|
|
|
|
|
|
|
${isMobileDevice |
|
|
|
${isMobileDevice |
|
|
|
? css` |
|
|
|
? css` |
|
|
|
width: 85px; |
|
|
|
width: 85px; |
|
|
|
height: 20px; |
|
|
|
height: 20px; |
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 450px){ |
|
|
|
@media (max-width: 450px){ |
|
|
|
left: 48vw; |
|
|
|
left: 48vw; |
|
|
|
top: 5px; |
|
|
|
top: 5px; |
|
|
|
@ -93,15 +91,18 @@ type PositionProps = { |
|
|
|
isMatchPage?: boolean, |
|
|
|
isMatchPage?: boolean, |
|
|
|
left?: number, |
|
|
|
left?: number, |
|
|
|
right?: number, |
|
|
|
right?: number, |
|
|
|
|
|
|
|
top?: number, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export const Position = styled.div<PositionProps>` |
|
|
|
export const Position = styled.div<PositionProps>` |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
|
|
|
|
|
|
|
|
|
top: ${({ isMatchPage }) => ( |
|
|
|
top: ${({ isMatchPage, top = 1.14 }) => ( |
|
|
|
isMatchPage ? client.styles.matchLogoTopMargin : '1.14' |
|
|
|
isMatchPage |
|
|
|
|
|
|
|
? client.styles.matchLogoTopMargin ?? top |
|
|
|
|
|
|
|
: top |
|
|
|
)}rem; |
|
|
|
)}rem; |
|
|
|
|
|
|
|
|
|
|
|
${({ left }) => (isUndefined(left) ? '' : `left: ${left}rem`)}; |
|
|
|
${({ left }) => (isUndefined(left) ? '' : `left: ${left}rem`)}; |
|
|
|
${({ right }) => (isUndefined(right) ? '' : `right: ${right}rem`)}; |
|
|
|
${({ right }) => (isUndefined(right) ? '' : `right: ${right}rem`)}; |
|
|
|
` |
|
|
|
` |
|
|
|
|