forked from binary-com/deriv-com
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'translation-new-homepage' of https://github.com/binary-…
…com/deriv-com into translation-new-homepage
- Loading branch information
Showing
6 changed files
with
84 additions
and
66 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react' | ||
import { Text } from '@deriv/quill-design' | ||
import clsx from 'clsx' | ||
import { hero_content_text } from './styles.module.scss' | ||
import useRegion from 'components/hooks/use-region' | ||
import { Localize } from 'components/localization' | ||
import { isEuDomain } from 'common/utility' | ||
|
||
const Description = () => { | ||
const { is_eu } = useRegion() | ||
return isEuDomain() || is_eu ? ( | ||
<Text size="md" className={clsx('text-solid-slate-50 mt-general-md', hero_content_text)}> | ||
<Localize translate_text="_t_Trade CFDs and Multipliers on 1500+ instruments, all in one place with 24/7 trading and 24/7 worldwide support._t_" /> | ||
</Text> | ||
) : ( | ||
<Text size="md" className={clsx('text-solid-slate-50 mt-general-md', hero_content_text)}> | ||
<Localize translate_text="_t_Trade CFDs and Options on 1500+ instruments, all in one place with 24/7 trading and 24/7 worldwide support._t_" /> | ||
</Text> | ||
) | ||
} | ||
|
||
export default Description |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from 'react' | ||
import { StaticImage } from 'gatsby-plugin-image' | ||
import clsx from 'clsx' | ||
import { hero_img_eu, hero_img } from './styles.module.scss' | ||
import { isEuDomain } from 'common/utility' | ||
import useRegion from 'components/hooks/use-region' | ||
|
||
const HeroImage = () => { | ||
const { is_eu } = useRegion() | ||
return isEuDomain() || is_eu ? ( | ||
<div className={clsx('absolute inset-50 flex items-end -z-10', hero_img_eu)}> | ||
<StaticImage | ||
src="../../../../images/migration/home/home_hero_new_eu.png" | ||
alt="hero image" | ||
placeholder="none" | ||
formats={['auto', 'webp']} | ||
loading="eager" | ||
/> | ||
</div> | ||
) : ( | ||
<div className={clsx('absolute inset-50 flex items-end -z-10', hero_img)}> | ||
<StaticImage | ||
src="../../../../images/migration/home/home_hero_new.png" | ||
alt="hero image" | ||
placeholder="none" | ||
formats={['auto', 'webp']} | ||
loading="eager" | ||
/> | ||
</div> | ||
) | ||
} | ||
|
||
export default HeroImage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters