style(2939): change header for tournaments

keep-around/35b5d122c05048fb9e164c9881034e52d923e277
Andrei Dekterev 3 years ago
parent 28c0f554c9
commit bcce6c5988
  1. 4
      src/config/clients/insports.tsx
  2. 1
      src/features/Common/Button/styled.tsx
  3. 3
      src/features/HeaderMobile/styled.tsx
  4. 3
      src/features/PageLayout/styled.tsx
  5. 5
      src/features/ProfileCard/index.tsx
  6. 51
      src/features/ProfileCard/styled.tsx

@ -30,8 +30,8 @@ export const insports: ClientConfig = {
top: 0; top: 0;
`, `,
mobileHeaderLogo: css` mobileHeaderLogo: css`
width: 120px; width: 77px;
height: 30px; height: 24px;
`, `,
userAccountLogo: css` userAccountLogo: css`
width: 6.37rem; width: 6.37rem;

@ -19,6 +19,7 @@ const baseButtonStyles = css`
height: 27px; height: 27px;
min-height: 27px; min-height: 27px;
font-size: 16px; font-size: 16px;
width: auto;
` `
: ''}; : ''};

@ -57,7 +57,7 @@ export const HeaderStyled = styled.header<HeaderProps>`
height: ${({ height = 8.5 }) => height}rem; height: ${({ height = 8.5 }) => height}rem;
${isMobileDevice ${isMobileDevice
? css` ? css`
height: 124px height: 124px;
` `
: ''}; : ''};
@ -66,6 +66,7 @@ export const HeaderStyled = styled.header<HeaderProps>`
${isMobileDevice ${isMobileDevice
? css` ? css`
padding: 8px; padding: 8px;
margin-bottom: 50px;
` `
: ''} : ''}
` `

@ -21,11 +21,12 @@ export const Content = styled.div`
${customScrollbar} ${customScrollbar}
${isMobileDevice ${isMobileDevice
? css` ? css`
margin-top: 50px;
padding-bottom: 23px; padding-bottom: 23px;
height: calc(100vh - 174px); height: calc(100vh - 174px);
` `
: ''}; : ''};
` `
export const BodyBackdrop = styled.div` export const BodyBackdrop = styled.div`

@ -26,6 +26,7 @@ import {
StyledLink, StyledLink,
SсBtnWrapper, SсBtnWrapper,
SсGetHighlightBtn, SсGetHighlightBtn,
DetailsWrapper,
} from './styled' } from './styled'
import { useProfileCard } from './hooks' import { useProfileCard } from './hooks'
@ -70,6 +71,7 @@ export const ProfileCard = ({ profile }: ProfileType) => {
profileType={profileType} profileType={profileType}
sportType={sportType} sportType={sportType}
/> />
<DetailsWrapper>
<Details> <Details>
<ProfileName>{name}</ProfileName> <ProfileName>{name}</ProfileName>
<InfoItems> <InfoItems>
@ -86,6 +88,7 @@ export const ProfileCard = ({ profile }: ProfileType) => {
) )
: <InfoName nameObj={profile.additionalInfo} />} : <InfoName nameObj={profile.additionalInfo} />}
</InfoItems> </InfoItems>
</Details>
<SсBtnWrapper> <SсBtnWrapper>
<FavoriteButton isFavorite={isFavorite} onClick={toggleFavorites}> <FavoriteButton isFavorite={isFavorite} onClick={toggleFavorites}>
<StarIcon isFavorite={isFavorite} /> <StarIcon isFavorite={isFavorite} />
@ -107,7 +110,7 @@ export const ProfileCard = ({ profile }: ProfileType) => {
</Link> </Link>
)} )}
</SсBtnWrapper> </SсBtnWrapper>
</Details> </DetailsWrapper>
</Wrapper> </Wrapper>
) )
} }

@ -18,10 +18,12 @@ export const Wrapper = styled.div`
${isMobileDevice ${isMobileDevice
? css` ? css`
@media (max-width: 650px),(orientation: landscape){ @media (max-width: 650px),(orientation: landscape){
left: 50%; align-items: start;
transform: translateX(-50%);
height: auto; height: auto;
bottom: 0; margin: 45px 0 20px 0;
left: 0;
width: 100%;
padding: 0 0 0 12px;
} }
` `
: ''}; : ''};
@ -39,9 +41,10 @@ export const ProfileName = styled.h1`
? css` ? css`
@media (max-width: 650px),(orientation: landscape){ @media (max-width: 650px),(orientation: landscape){
font-size: 14px; font-size: 14px;
line-height: 19px; line-height: 10px;
white-space: nowrap; white-space: nowrap;
margin-bottom: 0; margin-bottom: 0;
width: 100%;
} }
` `
: ''}; : ''};
@ -61,8 +64,8 @@ export const Logo = styled(ProfileLogo)`
${isMobileDevice ${isMobileDevice
? css` ? css`
@media (max-width: 650px),(orientation: landscape){ @media (max-width: 650px),(orientation: landscape){
width: 81px; width: 40px;
height: 81px; height: 40px;
} }
` `
: ''}; : ''};
@ -71,6 +74,25 @@ export const Logo = styled(ProfileLogo)`
export const Details = styled.div` export const Details = styled.div`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
${isMobileDevice
? css`
padding-top: 8px;
width: 100%;
`
: ''};
`
export const DetailsWrapper = styled.div`
display: flex;
flex-direction: column;
${isMobileDevice
? css`
width: 100%;
flex-direction: row;
`
: ''};
` `
type FavoriteButtonProps = { type FavoriteButtonProps = {
@ -103,11 +125,11 @@ export const FavoriteButton = styled.button<FavoriteButtonProps>`
${isMobileDevice ${isMobileDevice
? css` ? css`
@media (max-width: 650px),(orientation: landscape){ @media (max-width: 650px),(orientation: landscape){
width: 100px; padding: 0 0.9rem 0 0.9rem;
border: 0.8px solid #FFFFFF;
border-radius: 8px;
min-height: 17px; min-height: 17px;
font-size: 10px; font-size: 10px;
border-radius: 7px;
border: 0.7px solid #fff;
} }
` `
: ''}; : ''};
@ -115,10 +137,15 @@ ${isMobileDevice
export const InfoItems = styled.div` export const InfoItems = styled.div`
display: flex; display: flex;
flex-direction: column;
align-items: center; align-items: center;
margin-bottom: 1.04rem; margin-bottom: 1.04rem;
flex-direction: row;
${isMobileDevice ${isMobileDevice
? css` ? css`
width: 100%;
margin-bottom: 0;
@media (orientation: landscape){ @media (orientation: landscape){
margin-bottom: 5px; margin-bottom: 5px;
} }
@ -154,6 +181,7 @@ export const InfoName = styled(Name)`
font-size: 10px; font-size: 10px;
line-height: 19px; line-height: 19px;
white-space: nowrap; white-space: nowrap;
width: 100%;
} }
` `
: ''}; : ''};
@ -176,6 +204,8 @@ export const SсBtnWrapper = styled.div`
${isMobileDevice ${isMobileDevice
? css` ? css`
flex-direction: column; flex-direction: column;
padding-top: 8px;
width: 50%;
` `
: ''}; : ''};
` `
@ -188,20 +218,17 @@ export const SсGetHighlightBtn = styled(ButtonSolid)`
font-weight: 600; font-weight: 600;
font-size: 0.75rem; font-size: 0.75rem;
text-transform: uppercase; text-transform: uppercase;
width: fit-content;
height: 1.95rem; height: 1.95rem;
border-radius: 13px; border-radius: 13px;
margin-left: 5px; margin-left: 5px;
${isMobileDevice ${isMobileDevice
? css` ? css`
width: 100%;
min-height: 17px; min-height: 17px;
font-size: 10px; font-size: 10px;
border-radius: 7px; border-radius: 7px;
margin: 0; margin: 0;
border: 0.7px solid #fff; border: 0.7px solid #fff;
font-size: 10px;
line-height: 24px; line-height: 24px;
` `
: ''}; : ''};

Loading…
Cancel
Save