github
153 of 220 branches covered (0.0%)
Branch coverage included in aggregate %.
53 of 55 new or added lines in 5 files covered. (96.36%)
3925 of 4401 relevant lines covered (89.18%)
4.19 hits per line
|
import { Card, OptimizedImage } from '@deriv-com/components'; |
1✔ |
|
import { Button } from '@deriv/quill-design'; |
1✔ |
|
|
1✔ |
|
export const CTABlockContent = () => { |
|
|
const scrollTop = (value = 0) => { |
1✔ |
NEW
|
document.documentElement.scrollTop = value; |
× |
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-400"
|
1✔ |
|
size="lg"
|
1✔ |
|
onClick={() => scrollTop()} |
1✔ |
|
> |
1✔ |
|
Get a demo forex account |
1✔ |
|
</Button> |
1✔ |
|
</Card.ContentRight> |
1✔ |
|
); |
1✔ |
|
}; |
1✔ |