feat(in-90): landing page changes

keep-around/61a2661a1c7b0f958a65795b5393822fb1d16524
Rita 3 years ago
parent a1dfc1eee5
commit 6c14c88ab3
  1. BIN
      public/images/landing_1.png
  2. BIN
      public/images/landing_2.png
  3. BIN
      public/images/landing_3.png
  4. BIN
      public/images/landing_7.png
  5. BIN
      public/images/landing_mobile_1.png
  6. BIN
      public/images/landing_mobile_2.png
  7. BIN
      public/images/landing_mobile_3.png
  8. BIN
      public/images/landing_mobile_7.png
  9. 2
      src/config/lexics/joinMatch.tsx
  10. 55
      src/features/JoinMatchPage/index.tsx
  11. 28
      src/features/JoinMatchPage/styled.tsx

Binary file not shown.

Before

Width:  |  Height:  |  Size: 343 KiB

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 340 KiB

After

Width:  |  Height:  |  Size: 338 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 326 KiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

@ -1,5 +1,5 @@
export const joinMatchLexics = {
join_instat_tv: 15420,
join_insports_tv: 15420,
join_now: 15422,
promo_text: 15421,
rfef_button: 19766,

@ -24,6 +24,7 @@ import {
TeamsNameWrapper,
MainInfoTitle,
MainInfoButton,
MainInfoContainer,
MainInfoText,
EmptySpan,
WatchLiveCircle,
@ -51,10 +52,11 @@ export const JoinMatchPage = () => {
<HeaderWrapper>
<MainLogo />
</HeaderWrapper>
<BlockWrapper>
<SportImgWrapper sportType={sportType} />
<MatchInfo>
{matchInfo?.team1
<MainInfoContainer>
<BlockWrapper>
<SportImgWrapper sportType={sportType} />
<MatchInfo>
{matchInfo?.team1
&& (
<DateInfoWrapper>
<DateInfo>{matchDate}</DateInfo>
@ -68,32 +70,33 @@ export const JoinMatchPage = () => {
)}
</DateInfoWrapper>
)}
<TeamsNameWrapper>
{matchInfo?.team1 ? (
<>
<Name nameObj={matchInfo?.team1 || {}} />
<EmptySpan> </EmptySpan>
<Name nameObj={matchInfo?.team2 || {}} />
</>
<TeamsNameWrapper>
{matchInfo?.team1 ? (
<>
<Name nameObj={matchInfo?.team1 || {}} />
<EmptySpan> </EmptySpan>
<Name nameObj={matchInfo?.team2 || {}} />
</>
) : (<Name nameObj={matchInfo?.tournament || {}} />)}
) : (<Name nameObj={matchInfo?.tournament || {}} />)}
</TeamsNameWrapper>
<MainInfoTitle>
<T9n t='join_instat_tv' />
</MainInfoTitle>
<SportImgMobileDevice sportType={sportType} />
<MainInfoText>
<T9n t='promo_text' />
</MainInfoText>
<MainInfoButton onClick={onJoinClick}>
<T9n t='join_now' />
</MainInfoButton>
</MatchInfo>
</BlockWrapper>
</TeamsNameWrapper>
<MainInfoTitle>
<T9n t='join_insports_tv' />
</MainInfoTitle>
<SportImgMobileDevice sportType={sportType} />
<MainInfoText>
<T9n t='promo_text' />
</MainInfoText>
<MainInfoButton onClick={onJoinClick}>
<T9n t='join_now' />
</MainInfoButton>
</MatchInfo>
</BlockWrapper>
</MainInfoContainer>
<Footer>
<FooterLogo />
<FooterRights>©InStat TV {currentYear}</FooterRights>
<FooterRights>©inSports.tv {currentYear}</FooterRights>
</Footer>
</Wrapper>
)

@ -35,10 +35,21 @@ export const HeaderWrapper = styled.div`
`
export const MainLogo = styled(Logo)`
height: 20px;
height: 26px;
width: 80px;
`
export const MainInfoContainer = styled.div`
height: 100%;
${isMobileDevice
? css`
margin-top: 50px;
overflow: scroll;
`
: ''};
`
export const BlockWrapper = styled.div`
height: 100%;
display: flex;
@ -54,7 +65,6 @@ export const BlockWrapper = styled.div`
${isMobileDevice
? css`
padding: 5.4rem;
overflow: scroll;
@media screen and (orientation: landscape){
padding-top: 20px;
height: auto;
@ -64,7 +74,11 @@ export const BlockWrapper = styled.div`
`
export const SportImgWrapper = styled.div<Props>`
background-image: url(/images/landing_${({ sportType }) => sportType}.png);
background-image: url(/images/landing_${({ sportType }) => (
isMobileDevice
? `mobile_${sportType}.png`
: `${sportType}.png`
)});
background-repeat: no-repeat;
background-position: center;
background-size: contain;
@ -84,6 +98,8 @@ export const SportImgWrapper = styled.div<Props>`
`
export const MatchInfo = styled.div`
margin-bottom: 60px;
${isMobileDevice
? css`
width: 100%;
@ -163,7 +179,7 @@ export const MainInfoTitle = styled.div`
font-size: 2rem;
${isMobileDevice
? css`
font-size: 3.8rem;
font-size: 32px;
margin-bottom: 15px;
`
: ''};
@ -191,7 +207,7 @@ export const MainInfoText = styled.div`
${isMobileDevice
? css`
font-size: 2.2rem;
margin: 15px 0 25px;
margin: 0 0 25px;
`
: ''};
`
@ -244,7 +260,7 @@ export const SportImgMobileDevice = styled(SportImgWrapper)`
${isMobileDevice
? css`
display: block;
height: 42%;
height: 60%;
width: 100%;
margin-right: 0;
@media screen and (orientation: landscape){

Loading…
Cancel
Save