diff --git a/src/features/pages/home/hero/index.tsx b/src/features/pages/home/hero/index.tsx index 9ca8a94750f..c7148f77653 100644 --- a/src/features/pages/home/hero/index.tsx +++ b/src/features/pages/home/hero/index.tsx @@ -3,12 +3,15 @@ import { Button, FluidContainer, Heading, Section, Text } from '@deriv/quill-des import clsx from 'clsx' import { StaticImage } from 'gatsby-plugin-image' import { + hero_container, hero_content, hero_content_btn, hero_content_award_img, hero_content_gradient, + hero_img, + hero_content_text, } from './styles.module.scss' -import { Localize } from 'components/localization' +import { Localize, localize } from 'components/localization' import useRegion from 'components/hooks/use-region' export interface HomeHeroProps { @@ -20,7 +23,7 @@ const HomeHero: React.FC = () => { const { is_eu } = useRegion() return ( -
+
{is_eu ? ( = () => { /> )} - -
+ +
- +
-
+
+
+ {is_eu ? ( + + ) : ( + + )} +
-
- {is_eu ? ( - - ) : ( - - )} -
) diff --git a/src/features/pages/home/hero/styles.module.scss b/src/features/pages/home/hero/styles.module.scss index 479f4f4528f..4458d5d68a0 100644 --- a/src/features/pages/home/hero/styles.module.scss +++ b/src/features/pages/home/hero/styles.module.scss @@ -1,29 +1,71 @@ @use 'features/styles/theme/theme-mixins' as *; @import 'features/styles/theme/variables'; +.hero_container { + justify-content: flex-end; + @media only screen and (min-width: 601px){ + justify-content: center; + } +} .hero_content{ text-align: center; - @media only screen and (min-width: 768px){ - text-align: left + align-items: center; + @media only screen and (min-width: 601px){ + text-align: left; + width: 53%; + align-items: flex-start; + } + @media only screen and (min-width: 1024px){ + width: 50%; + } + @media only screen and (min-width: 1920px){ + margin-top: 0; } } .hero_content_btn { margin-inline: auto; - @media only screen and (min-width: 768px){ + @media only screen and (min-width: 601px){ margin-inline: 0; } } +.hero_img{ + right: -72px; + width: 60vh; + @media only screen and (min-width: 601px){ + margin-inline-start: auto; + left: auto; + right: -172px; + } + @media only screen and (min-width: 1024px){ + width: 60vh; + right: -48px; + } +} .hero_content_award_img { margin-inline: auto; gap: 10px; - @media only screen and (min-width: 768px){ + @media only screen and (min-width: 601px){ + position: absolute; margin-inline: 0; gap: 24px; + left: 24px; + top: clamp(72%,50vh + 210px,80%); + } + @media only screen and (min-width: 1024px){ + left: 0; + } +} +.hero_content_text{ + @media only screen and (min-width: 601px){ + max-width: 325px; + } + @media only screen and (min-width: 1024px){ + max-width: 100%; } } .hero_content_gradient{ background: linear-gradient(180deg, rgba(0, 0, 0, 0.20) -8.48%, rgba(0, 0, 0, 0.60) -8.46%, rgba(0, 0, 0, 0.00) 8.92%, rgba(0, 0, 0, 0.00) 40%, rgba(0, 0, 0, 0.70) 65.27%, rgba(0, 0, 0, 0.80) 102.14%); - @media only screen and (min-width: 768px){ + @media only screen and (min-width: 601px){ background: linear-gradient(85deg, rgba(0, 0, 0, 0.80) 7.03%, rgba(0, 0, 0, 0.00) 108.11%); } @media only screen and (min-width: 1024px){ diff --git a/src/features/pages/home/navigation/nav.buttons.tsx b/src/features/pages/home/navigation/nav.buttons.tsx index a5f7d815431..cb4b7ab6897 100644 --- a/src/features/pages/home/navigation/nav.buttons.tsx +++ b/src/features/pages/home/navigation/nav.buttons.tsx @@ -36,7 +36,7 @@ export const MainNavigationButtons = () => { )} diff --git a/src/features/pages/home/years/data.tsx b/src/features/pages/home/years/data.tsx new file mode 100644 index 00000000000..06c1461f1af --- /dev/null +++ b/src/features/pages/home/years/data.tsx @@ -0,0 +1,55 @@ +import React from 'react' +import { CardContent } from '@deriv-com/components' +import { + LightDependableIcon, + LightSafeAndSecureIcon, + LightRegulatedIcon, + LightTwentyFourSevenSupportIcon, + // eslint-disable-next-line import/no-unresolved +} from '@deriv/quill-icons/Illustration' +import { localize } from 'components/localization' + +export const cards: CardContent[] = [ + { + id: 1, + header: localize('_t_Dependable_t_'), + description: localize( + '_t_Cutting-edge technology with 99.97% uptime for uninterrupted trading._t_', + ), + size: 'sm', + color: 'light', + align: 'center', + icon: , + }, + { + id: 2, + header: localize('_t_Safe & Secure_t_'), + description: localize( + '_t_Your personal data is private, and your funds are safely segregated._t_', + ), + size: 'sm', + color: 'light', + align: 'center', + icon: , + }, + { + id: 3, + header: localize('_t_Regulated_t_'), + description: localize( + '_t_We’re regulated and licensed by global financial authorities._t_', + ), + size: 'sm', + color: 'light', + align: 'center', + icon: , + }, + { + id: 4, + header: localize('_t_24/7 support_t_'), + description: localize('_t_Our professional multilingual team is here for you anytime._t_'), + size: 'sm', + color: 'light', + align: 'center', + icon: , + }, +] diff --git a/src/features/pages/home/years/index.tsx b/src/features/pages/home/years/index.tsx index 44732e12812..30a19cf1d78 100644 --- a/src/features/pages/home/years/index.tsx +++ b/src/features/pages/home/years/index.tsx @@ -1,63 +1,18 @@ import React from 'react' import { Features } from '@deriv-com/blocks' -import { CardContent } from '@deriv-com/components' -import { - LightDependableIcon, - LightSafeAndSecureIcon, - LightRegulatedIcon, - LightTwentyFourSevenSupportIcon, - // eslint-disable-next-line import/no-unresolved -} from '@deriv/quill-icons/Illustration' +import { cards } from './data' import { localize } from 'components/localization' -const cards: CardContent[] = [ - { - id: 1, - header: localize('_t_Dependable_t_'), - description: localize( - '_t_Cutting-edge technology with 99.97% uptime for uninterrupted trading._t_', - ), - size: 'sm', - color: 'light', - align: 'center', - icon: , - }, - { - id: 2, - header: localize('_t_Safe & Secure_t_'), - description: localize( - '_t_Your personal data is private, and your funds are safely segregated._t_', - ), - size: 'sm', - color: 'light', - align: 'center', - icon: , - }, - { - id: 3, - header: localize('_t_Regulated_t_'), - description: localize( - '_t_We’re regulated and licensed by global financial authorities._t_', - ), - size: 'sm', - color: 'light', - align: 'center', - icon: , - }, - { - id: 4, - header: localize('_t_24/7 support_t_'), - description: localize('_t_Our professional multilingual team is here for you anytime._t_'), - size: 'sm', - color: 'light', - align: 'center', - icon: , - }, -] - const TwentyYearsStrong = () => { return ( - + ) }