|
|
|
|
@ -39,8 +39,8 @@ export const CardWrapper = styled.div<CardProps>` |
|
|
|
|
left: 0; |
|
|
|
|
bottom: 0; |
|
|
|
|
right: 0; |
|
|
|
|
padding-bottom: ${({ isMatchPage }) => (isMatchPage ? '0' : '0.75rem')}; |
|
|
|
|
border-radius: 2px; |
|
|
|
|
padding: ${({ isMatchPage }) => (isMatchPage ? '0.5rem 0.625rem 1.8rem' : '0 0 0.75rem')}; |
|
|
|
|
border-radius: 3px; |
|
|
|
|
background-color: #3F3F3F; |
|
|
|
|
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.4); |
|
|
|
|
cursor: pointer; |
|
|
|
|
@ -56,6 +56,8 @@ export const CardWrapper = styled.div<CardProps>` |
|
|
|
|
|
|
|
|
|
export const HoverFrame = styled.div` |
|
|
|
|
position: absolute; |
|
|
|
|
top: 0; |
|
|
|
|
left: 0; |
|
|
|
|
min-width: 100%; |
|
|
|
|
min-height: 100%; |
|
|
|
|
border-radius: 2px; |
|
|
|
|
@ -71,6 +73,7 @@ export const HoverFrame = styled.div` |
|
|
|
|
type TPreviewWrapper = { |
|
|
|
|
color?: string, |
|
|
|
|
isGradientPreview?: boolean, |
|
|
|
|
isMatchPage?: boolean, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export const PreviewWrapper = styled.div<TPreviewWrapper>` |
|
|
|
|
@ -81,6 +84,17 @@ export const PreviewWrapper = styled.div<TPreviewWrapper>` |
|
|
|
|
${({ color, isGradientPreview }) => isGradientPreview |
|
|
|
|
&& css` |
|
|
|
|
background: ${color};`}
|
|
|
|
|
|
|
|
|
|
${({ isMatchPage }) => ( |
|
|
|
|
isMatchPage |
|
|
|
|
? css` |
|
|
|
|
position: absolute; |
|
|
|
|
bottom: 8px; |
|
|
|
|
height: auto; |
|
|
|
|
width: calc(100% - 1.25rem); |
|
|
|
|
` |
|
|
|
|
: '' |
|
|
|
|
)} |
|
|
|
|
|
|
|
|
|
${isMobileDevice |
|
|
|
|
? css` |
|
|
|
|
@ -90,25 +104,39 @@ export const PreviewWrapper = styled.div<TPreviewWrapper>` |
|
|
|
|
: ''}; |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const Preview = styled.img` |
|
|
|
|
export const Preview = styled.img<CardProps>` |
|
|
|
|
position: absolute; |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100%; |
|
|
|
|
object-fit: cover; |
|
|
|
|
opacity: 0.4; |
|
|
|
|
display: ${({ isMatchPage }) => (isMatchPage ? 'none' : 'block')}; |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const MatchTimeInfo = styled.div` |
|
|
|
|
export const MatchTimeInfo = styled.div<CardProps>` |
|
|
|
|
width: 100%; |
|
|
|
|
position: absolute; |
|
|
|
|
top: 0.519rem; |
|
|
|
|
padding: 0 0.519rem; |
|
|
|
|
display: flex; |
|
|
|
|
flex-direction: row; |
|
|
|
|
|
|
|
|
|
${({ isMatchPage }) => ( |
|
|
|
|
isMatchPage |
|
|
|
|
? css` |
|
|
|
|
position: initial; |
|
|
|
|
padding: 0; |
|
|
|
|
flex-direction: row-reverse; |
|
|
|
|
justify-content: flex-end; |
|
|
|
|
align-items: center; |
|
|
|
|
` |
|
|
|
|
: '' |
|
|
|
|
)} |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
type MatchDateProps = { |
|
|
|
|
isHomePage?: boolean, |
|
|
|
|
isMatchPage?: boolean, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export const MatchDate = styled.div<MatchDateProps>` |
|
|
|
|
@ -133,8 +161,8 @@ export const MatchDate = styled.div<MatchDateProps>` |
|
|
|
|
} |
|
|
|
|
${isMobileDevice |
|
|
|
|
? css` |
|
|
|
|
height: 15px; |
|
|
|
|
font-size: 8px; |
|
|
|
|
height: 15px; |
|
|
|
|
font-size: 8px; |
|
|
|
|
` |
|
|
|
|
: ''}; |
|
|
|
|
` |
|
|
|
|
@ -142,6 +170,15 @@ export const MatchDate = styled.div<MatchDateProps>` |
|
|
|
|
export const LiveSign = styled(MatchDate)` |
|
|
|
|
background-color: #CC0000; |
|
|
|
|
margin-left: auto; |
|
|
|
|
|
|
|
|
|
${({ isMatchPage }) => ( |
|
|
|
|
isMatchPage |
|
|
|
|
? css` |
|
|
|
|
margin-right: 10px; |
|
|
|
|
margin-left: 0; |
|
|
|
|
` |
|
|
|
|
: '' |
|
|
|
|
)} |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const Time = styled.span` |
|
|
|
|
@ -151,7 +188,7 @@ export const Time = styled.span` |
|
|
|
|
export const Info = styled.div<CardProps>` |
|
|
|
|
display: flex; |
|
|
|
|
flex-direction: column; |
|
|
|
|
padding: ${({ isMatchPage }) => (isMatchPage ? '1.2rem 0.472rem 1.2rem 0.519rem' : '0.85rem 0.472rem 0 0.519rem')}; |
|
|
|
|
padding: ${({ isMatchPage }) => (isMatchPage ? '0 5px 5px 0' : '0.85rem 0.472rem 0 0.519rem')}; |
|
|
|
|
color: #fff; |
|
|
|
|
|
|
|
|
|
${isMobileDevice |
|
|
|
|
@ -202,7 +239,7 @@ export const Teams = styled.div<CardProps>` |
|
|
|
|
: ''}; |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const Team = styled.span` |
|
|
|
|
export const Team = styled.span<CardProps>` |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
align-items: center; |
|
|
|
|
@ -211,6 +248,14 @@ export const Team = styled.span` |
|
|
|
|
line-height: 1.14rem; |
|
|
|
|
color: #fff; |
|
|
|
|
|
|
|
|
|
${({ isMatchPage }) => ( |
|
|
|
|
isMatchPage |
|
|
|
|
? css` |
|
|
|
|
line-height: 28px; |
|
|
|
|
` |
|
|
|
|
: '' |
|
|
|
|
)} |
|
|
|
|
|
|
|
|
|
${isMobileDevice |
|
|
|
|
? css` |
|
|
|
|
font-size: 14px; |
|
|
|
|
@ -232,10 +277,10 @@ export const TeamName = styled(Name)` |
|
|
|
|
export const Score = styled.div`` |
|
|
|
|
|
|
|
|
|
export const TeamLogos = styled.div<CardProps>` |
|
|
|
|
display: flex; |
|
|
|
|
display: ${({ isMatchPage }) => (isMatchPage ? 'none' : 'flex')}; |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: center; |
|
|
|
|
margin: ${({ isMatchPage }) => (isMatchPage ? '1.5rem auto 1rem auto' : '0.71rem auto 0 auto')}; |
|
|
|
|
margin: ${({ isMatchPage }) => (isMatchPage ? '0' : '0.71rem auto 0 auto')}; |
|
|
|
|
z-index: 1; |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
@ -254,14 +299,13 @@ export const TeamLogo = styled(ProfileLogo)` |
|
|
|
|
: ''}; |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const BuyMatchBadge = styled.span` |
|
|
|
|
export const BuyMatchBadge = styled.span<CardProps>` |
|
|
|
|
position: absolute; |
|
|
|
|
left: 0.472rem; |
|
|
|
|
bottom: 0.519rem; |
|
|
|
|
width: 1.18rem; |
|
|
|
|
height: 1.18rem; |
|
|
|
|
cursor: pointer; |
|
|
|
|
|
|
|
|
|
background-image: url(/images/dollar-sign.svg); |
|
|
|
|
background-position: center; |
|
|
|
|
background-repeat: no-repeat; |
|
|
|
|
@ -270,6 +314,7 @@ export const BuyMatchBadge = styled.span` |
|
|
|
|
border-radius: 50%; |
|
|
|
|
border: 0.5px solid rgba(0, 0, 0, 0.2); |
|
|
|
|
box-shadow: 0px 0.08rem 0.283rem rgba(0, 0, 0, 0.5); |
|
|
|
|
display: ${({ isMatchPage }) => (isMatchPage ? 'none' : 'block')}; |
|
|
|
|
|
|
|
|
|
${isMobileDevice |
|
|
|
|
? css` |
|
|
|
|
@ -279,3 +324,14 @@ export const BuyMatchBadge = styled.span` |
|
|
|
|
` |
|
|
|
|
: ''}; |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
export const BuyMatchBadgeCustom = styled(BuyMatchBadge)` |
|
|
|
|
background-color: rgba(255, 255, 255, 0.19); |
|
|
|
|
background-image: url(/images/dollar-sign-grey.svg); |
|
|
|
|
background-size: auto; |
|
|
|
|
min-width: 18px; |
|
|
|
|
min-height: 18px; |
|
|
|
|
position: initial; |
|
|
|
|
box-shadow: none; |
|
|
|
|
margin-left: auto; |
|
|
|
|
` |
|
|
|
|
|