github
154 of 221 branches covered (0.0%)
Branch coverage included in aggregate %.
53 of 55 new or added lines in 5 files covered. (96.36%)
4007 of 4584 relevant lines covered (87.41%)
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✔ |