From d696c4b181928c5944cce76ce0b7f2f27d7e38e6 Mon Sep 17 00:00:00 2001
From: Zoia <43918051+zizi62@users.noreply.github.com>
Date: Fri, 19 Mar 2021 14:35:32 +0300
Subject: [PATCH] Ott 931 sign live (#336)
* feat(ott-931): added live sing
* feat(ott-931): fix line
---
.../MatchCard/CardFrontside/index.tsx | 23 ++++++++++++++-----
src/features/MatchCard/styled.tsx | 19 +++++++++++----
2 files changed, 31 insertions(+), 11 deletions(-)
diff --git a/src/features/MatchCard/CardFrontside/index.tsx b/src/features/MatchCard/CardFrontside/index.tsx
index 7bf328bb..7d0faec2 100644
--- a/src/features/MatchCard/CardFrontside/index.tsx
+++ b/src/features/MatchCard/CardFrontside/index.tsx
@@ -8,12 +8,15 @@ import type { Match } from 'features/Matches'
import { SportName } from 'features/Common'
import { useMatchSwitchesStore } from 'features/MatchSwitches'
import { useName } from 'features/Name'
+import { T9n } from 'features/T9n'
import { NoAccessMessage } from '../NoAccessMessage'
import {
CardWrapper,
Info,
+ LiveSign,
MatchDate,
+ MatchTimeInfo,
Preview,
PreviewWrapper,
Score,
@@ -48,6 +51,7 @@ export const CardFrontside = ({
date,
formattedDate,
hasVideo,
+ live,
preview,
sportType,
storage,
@@ -103,12 +107,19 @@ export const CardFrontside = ({
}
{!accessibleBySubscription && }
{(accessibleBySubscription && !accessibleInUsersCountry) && }
-
- {formattedDate}
- {(isInFuture && (!hasVideo || !storage))
- ?
- : null}
-
+
+
+ {formattedDate}
+ {(isInFuture && (!hasVideo || !storage))
+ ?
+ : null}
+
+ {live && (
+
+
+
+ )}
+
{showSportName && }
diff --git a/src/features/MatchCard/styled.tsx b/src/features/MatchCard/styled.tsx
index bf40bd52..0298ecc7 100644
--- a/src/features/MatchCard/styled.tsx
+++ b/src/features/MatchCard/styled.tsx
@@ -57,12 +57,20 @@ export const Preview = styled.img`
height: 100%;
`
-
-export const MatchDate = styled.div`
+export const MatchTimeInfo = styled.div`
position: absolute;
top: 25px;
left: 24px;
width: auto;
+ display: inline-flex;
+
+ @media ${devices.tablet} {
+ top: 10px;
+ left: 20px;
+ }
+`
+
+export const MatchDate = styled.div`
height: 24px;
border-radius: 2px;
padding: 8px;
@@ -78,12 +86,13 @@ export const MatchDate = styled.div`
background-color: #6D6D6D;
@media ${devices.tablet} {
- top: 10px;
- left: 20px;
- width: auto;
padding: 6px 8px;
}
`
+export const LiveSign = styled(MatchDate)`
+ background-color: #CC0000;
+ margin-left: 10px;
+`
export const Time = styled.span`
margin-left: 10px;