push
github
154 of 221 branches covered (0.0%)
Branch coverage included in aggregate %.
163 of 266 new or added lines in 14 files covered. (61.28%)
4014 of 4591 relevant lines covered (87.43%)
4.1 hits per line
|
import { Card, OptimizedImage } from '@deriv-com/components'; |
1✔ |
|
import { Button } from '@deriv/quill-design'; |
1✔ |
|
|
1✔ |
|
export const CTABlockContent = () => { |
|
|
const scrollTop = () => {
|
1✔ |
NEW
|
document.documentElement.scrollTop = 0;
|
× |
NEW
|
}; |
× |
|
return (
|
1✔ |
|
<Card.ContentRight |
1✔ |
|
className="lg:gap-gap-lg"
|
1✔ |
|
align="start"
|
1✔ |
|
size="lg"
|
1✔ |
|
header="Join over 2.5 million online traders"
|
1✔ |
|
color="gray"
|
1✔ |
|
content={ |
1✔ |
|
<OptimizedImage |
1✔ |
|
className="block"
|
1✔ |
|
imageName="home/hero/cta_image.png"
|
1✔ |
|
width={1232}
|
1✔ |
|
height={711}
|
1✔ |
|
alt="cta demo forex mobile"
|
1✔ |
|
/> |
1✔ |
|
} |
1✔ |
|
> |
1✔ |
|
<Button |
1✔ |
|
colorStyle="black"
|
1✔ |
|
className="lg:mt-general-xl"
|
1✔ |
|
size="lg"
|
1✔ |
|
onClick={() => scrollTop()} |
1✔ |
|
> |
1✔ |
|
Get a demo forex account |
1✔ |
|
</Button> |
1✔ |
|
</Card.ContentRight> |
1✔ |
|
); |
1✔ |
|
}; |
1✔ |