diff --git a/images/hero.png b/images/hero.png index e9f64ee06..95e384820 100644 Binary files a/images/hero.png and b/images/hero.png differ diff --git a/ts/components/registration/components/Hero.tsx b/ts/components/registration/components/Hero.tsx index eef43b804..7e872946a 100644 --- a/ts/components/registration/components/Hero.tsx +++ b/ts/components/registration/components/Hero.tsx @@ -11,12 +11,11 @@ const StyledHeroContainer = styled.div<{ positionWithinContainer: PositionWithin overflow: hidden; z-index: 0; - // TODO[epic=ses-50] remove this when we have the new mockup with narrower shadows if needed &:after { content: ''; position: absolute; top: 0; - right: ${props => (props.positionWithinContainer === 'right' ? '0' : '290px')}; + right: 0; width: 20px; height: 100%; background-image: linear-gradient(to right, rgba(27, 27, 27, 0), rgba(27, 27, 27, 1)); @@ -24,19 +23,17 @@ const StyledHeroContainer = styled.div<{ positionWithinContainer: PositionWithin `; const StyledHero = styled.img<{ - scaleFactor: number; positionWithinContainer: PositionWithinContainer; }>` width: auto; - ${props => props.scaleFactor && `height: calc(3701px / ${props.scaleFactor});`} + height: 100%; position: absolute; top: 50%; - ${props => (props.positionWithinContainer === 'right' ? 'right: 0;' : 'left: 0;')} + ${props => (props.positionWithinContainer === 'right' ? 'right: -50px;' : 'left: 0;')} transform: translateY(-50%); `; export const Hero = () => { - const [scaleFactor, setScaleFactor] = useState(2.1); // default width 1024px const [positionWithinContainer, setPositionWithinContainer] = useState( 'left' ); @@ -45,31 +42,17 @@ export const Hero = () => { useEffect(() => { if (width) { - if (width <= 1024) { - setPositionWithinContainer('right'); - setScaleFactor(2.1); - } else if (width <= 1920) { - setPositionWithinContainer('right'); - setScaleFactor(2.0); - } else if (width <= 2560) { + if (width <= 1920) { setPositionWithinContainer('right'); - setScaleFactor(1.5); - } else if (width <= 3440) { - setPositionWithinContainer('left'); - setScaleFactor(1.5); } else { setPositionWithinContainer('left'); - setScaleFactor(1.5); } } }, [width]); + return ( - + ); };