[FeaturedBrandsPanel] edited css, LiveVideoCard
This commit is contained in:
@@ -437,9 +437,9 @@ export default function FeaturedBrandsPanel({
|
||||
useEffect(() => {
|
||||
let timer;
|
||||
|
||||
if (brandLayoutInfo) {
|
||||
setDisplayTopButton(false);
|
||||
setDisplayTopButton(false);
|
||||
|
||||
if (brandLayoutInfo && isInitialFocusOccurred) {
|
||||
timer = setTimeout(() => {
|
||||
const orderableFlexContainer = orderableFlexContainerRef.current;
|
||||
|
||||
@@ -453,7 +453,7 @@ export default function FeaturedBrandsPanel({
|
||||
}
|
||||
|
||||
return () => clearTimeout(timer);
|
||||
}, [brandLayoutInfo, selectedPatnrId]);
|
||||
}, [brandLayoutInfo, isInitialFocusOccurred]);
|
||||
|
||||
useEffect(() => {
|
||||
if (isInitialFocusOccurred && selectedPatnrId && selectedPatncNm) {
|
||||
|
||||
@@ -52,17 +52,24 @@ export default memo(function LiveVideoCard({
|
||||
aria-label={ariaLabel}
|
||||
{...rest}
|
||||
>
|
||||
<figure className={isVertical ? css.vertical : css.horizontal}>
|
||||
<figure
|
||||
className={classNames(
|
||||
css.videoThumbnail,
|
||||
isVertical ? css.vertical : css.horizontal
|
||||
)}
|
||||
>
|
||||
<CustomImage src={thumbnailImgPath} alt={showNm} ariaLabel={showNm} />
|
||||
</figure>
|
||||
|
||||
<div>
|
||||
<div className={css.videoInfo}>
|
||||
<CustomImage src={ImgLiveShow} alt="Live Icon" />
|
||||
<h3>{showNm}</h3>
|
||||
<time>
|
||||
{convertToTimeFormat(strtDt)} ~ {convertToTimeFormat(endDt)}
|
||||
</time>
|
||||
</div>
|
||||
|
||||
<div className={css.darkGradient} />
|
||||
</SpottableComponent>
|
||||
);
|
||||
});
|
||||
|
||||
@@ -23,16 +23,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
&::after {
|
||||
.position(@position: absolute, @top: 0, @right: 0, @left: 0);
|
||||
.flex(@direction: column, @justifyCenter: space-between, @alignCenter: flex-start);
|
||||
.size(@w: 1002px, @h: 564px);
|
||||
background-image: linear-gradient(to top, transparent 55%, @COLOR_BLACK);
|
||||
border-radius: 10px 10px 0 0;
|
||||
content: "";
|
||||
}
|
||||
// &::after {
|
||||
// .position(@position: absolute, @top: 0, @right: 0, @left: 0);
|
||||
// .flex(@direction: column, @justifyCenter: space-between, @alignCenter: flex-start);
|
||||
// .size(@w: 1002px, @h: 564px);
|
||||
// background-image: linear-gradient(to top, transparent 55%, @COLOR_BLACK);
|
||||
// border-radius: 10px 10px 0 0;
|
||||
// content: "";
|
||||
// }
|
||||
|
||||
> figure:nth-child(1) {
|
||||
.videoThumbnail {
|
||||
.position(@position: absolute, @top: 0, @right: 0, @left: 0);
|
||||
z-index: -1;
|
||||
.flex();
|
||||
@@ -55,7 +55,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
> div:nth-child(2) {
|
||||
.videoInfo {
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
@@ -87,6 +87,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
> .darkGradient {
|
||||
.position(@position: absolute, @top: 0, @right: 0, @left: 0);
|
||||
.flex(@direction: column, @justifyCenter: space-between, @alignCenter: flex-start);
|
||||
.size(@w: 1002px, @h: 564px);
|
||||
background-image: linear-gradient(to top, transparent 55%, @COLOR_BLACK);
|
||||
border-radius: 10px 10px 0 0;
|
||||
// content: "";
|
||||
}
|
||||
|
||||
.player {
|
||||
.position(@position: absolute, @top: 0, @left: 0);
|
||||
// z-index: 10;
|
||||
|
||||
Reference in New Issue
Block a user