Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

hasan/Pr 00 rtl issue fix #6451

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
491916e
auto-pull-translation
hasan-deriv Dec 29, 2023
8a881d7
chore: updated cta block
hasan-deriv Jan 5, 2024
2e0ebae
auto-pull-translation
hasan-deriv Dec 29, 2023
8aa2006
chore: fixed ubuntu fonts
hasan-deriv Jan 9, 2024
3122af7
chore: fixed floating button bg color
hasan-deriv Jan 9, 2024
3f7895e
chore: updated gatsby browser
hasan-deriv Jan 9, 2024
1cecf74
chore: updated gatsby browser and global css file
hasan-deriv Jan 9, 2024
6ac1d4d
chore: updated global css
hasan-deriv Jan 9, 2024
63acf09
chore: updated overlay css
hasan-deriv Jan 9, 2024
5b5f378
chore: updated tailwind config
hasan-deriv Jan 9, 2024
202fa43
chore: cleanup
hasan-deriv Jan 9, 2024
5c44e18
chore: updated global css and gatsby-browser
hasan-deriv Jan 9, 2024
421b3a5
chore: added rtl classes for hero content and award images
hasan-deriv Jan 5, 2024
4673058
chore: removed rtl dir from hero section
hasan-deriv Jan 8, 2024
fa30bca
auto-pull-translation
hasan-deriv Dec 29, 2023
2caa815
Merge branch 'translation-new-homepage' into pr-2169-quill-layout-fixes
hasan-deriv Jan 10, 2024
0273066
chore: moved block css to gatsby browser from global css
hasan-deriv Jan 11, 2024
4202ced
chore: updated deriv packages
hasan-deriv Jan 11, 2024
953a90d
Merge branch 'translation-new-homepage' into pr-00-rtl-issue-fix
hasan-deriv Jan 11, 2024
a973943
Merge branch 'pr-2169-quill-layout-fixes' into pr-00-rtl-issue-fix
hasan-deriv Jan 11, 2024
47428d6
chore: updated deriv packages
hasan-deriv Jan 11, 2024
baee61d
auto-pull-translation
hasan-deriv Dec 29, 2023
cd1f7d3
Merge branch 'translation-new-homepage' into pr-00-rtl-issue-fix
hasan-deriv Jan 11, 2024
155ed56
chore: live market description link fix
hasan-deriv Jan 11, 2024
4d2433a
chore: updated deriv packages
hasan-deriv Jan 11, 2024
b267d54
auto-pull-translation
hasan-deriv Dec 29, 2023
f7b9fcc
Merge branch 'translation-new-homepage' into pr-00-rtl-issue-fix
hasan-deriv Jan 11, 2024
043876a
empty: 🚀 to redeploy and trigger build
hasan-deriv Jan 12, 2024
952ddbb
chore: updated deriv packages
hasan-deriv Jan 12, 2024
40e94b1
chore: updated fast payment animation
hasan-deriv Jan 12, 2024
5c96335
chore: updated fast payment animation
hasan-deriv Jan 12, 2024
6b1a974
auto-pull-translation
hasan-deriv Dec 29, 2023
6097407
Merge branch 'translation-new-homepage' into pr-00-rtl-issue-fix
hasan-deriv Jan 15, 2024
847026d
chore: removed unused classname
hasan-deriv Jan 15, 2024
ba851ed
auto-pull-translation
hasan-deriv Dec 29, 2023
073446a
Merge branch 'translation-new-homepage' into pr-00-rtl-issue-fix
hasan-deriv Jan 16, 2024
7ed9a9c
auto-pull-translation
hasan-deriv Dec 29, 2023
15118a0
Merge branch 'translation-new-homepage' into pr-00-rtl-issue-fix
hasan-deriv Jan 16, 2024
8357ac1
chore: added rtl class to hero
hasan-deriv Jan 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/features/pages/home/cta/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const CTA = () => {
const { is_eu } = useRegion()
return (
<Footer.CTABlock padding image={is_eu ? EUImage : RowImage}>
<div className="flex h-full flex-col items-start justify-center gap-gap-3xl max-w-[328px] lg:max-w-none">
<div className="flex h-full flex-col items-start justify-center gap-gap-3xl">
<Heading.H2 className="text-solid-slate-50">
<Localize translate_text="_t_Join over 2.5 million online traders_t_" />
</Heading.H2>
Expand Down
4 changes: 2 additions & 2 deletions src/features/pages/home/fast-payment/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const FastPaymentSection: React.FC = () => {
cols: 'infinite',
cards: is_eu ? EUPaymentMethods : RowPaymentMethods,
sliderClass: is_eu
? 'animate-[40s_slide_linear_infinite]'
: 'animate-[100s_slide_linear_infinite]',
? '!animate-[40s_slide_linear_infinite] rtl:!animate-[40s_slideRtl_linear_infinite]'
: '!animate-[100s_slide_linear_infinite] rtl:!animate-[100s_slideRtl_linear_infinite]',
}}
disclaimer={
<Localize translate_text="_t_* Availability of payment methods and processing speeds may vary based on location and selected payment option_t_" />
Expand Down
13 changes: 10 additions & 3 deletions src/features/pages/home/hero/award-images.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import clsx from 'clsx'
import { StaticImage } from 'gatsby-plugin-image'
import { hero_content_award_img } from './styles.module.scss'
import { localize } from 'components/localization'
import { hero_content_award_img, hero_content_award_img_rtl } from './styles.module.scss'
import { get_lang_direction, localize } from 'components/localization'
import useRegion from 'components/hooks/use-region'
import { isEuDomain } from 'common/utility'

Expand All @@ -12,7 +12,14 @@ const HeroAwardImages = () => {
if (isEuDomain() || is_eu) return null

return (
<div className={clsx('flex pb-general-xl', hero_content_award_img)}>
<div
className={clsx(
'flex pb-general-xl',
hero_content_award_img,
hero_content_award_img_rtl,
)}
dir={get_lang_direction()}
>
<StaticImage
src="../../../../images/migration/home/award-1.png"
alt={localize('_t_Best forex spreads APAC 2023 by UF Awards_t_')}
Expand Down
13 changes: 10 additions & 3 deletions src/features/pages/home/hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import { StaticImage } from 'gatsby-plugin-image'
import {
hero_container,
hero_content,
hero_content_rtl,
hero_content_gradient,
hero_content_btn,
} from './styles.module.scss'
import HeroAwardImages from './award-images'
import HeroImage from './hero-image'
import FloatingCta from './floating-cta'
import Description from './description'
import { Localize } from 'components/localization'
import { Localize, get_lang_direction } from 'components/localization'
import TradersHubCtaButton from 'features/components/molecules/traders-hub-cta-button'
import { useFloatingCtaContext } from 'features/contexts/floating-cta/cta.provider'
import { usePageLoaded } from 'components/hooks/use-page-loaded'
Expand All @@ -38,9 +39,15 @@ const HomeHero: React.FC<HomeHeroProps> = () => {
loading="eager"
style={{ position: 'absolute', inset: 0 }}
/>

<FluidContainer className={clsx('h-full flex flex-col relative', hero_container)}>
<div className={clsx('flex flex-col mb-general-2xl', hero_content)}>
<div
className={clsx(
'flex flex-col mb-general-2xl',
hero_content,
hero_content_rtl,
)}
dir={get_lang_direction()}
>
<Heading.H1 className="text-solid-slate-50 text-[34px] lg:text-heading-h1">
<Localize translate_text="_t_Trading for anyone. Anywhere. Anytime._t_" />
</Heading.H1>
Expand Down
16 changes: 16 additions & 0 deletions src/features/pages/home/hero/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
margin-top: 0;
}
}
.hero_content_rtl{
@media only screen and (min-width: 601px){
&[dir="rtl"] {
text-align: right;
margin-right: auto;
}
}
}
.hero_content_btn {
margin-inline: auto;
@media only screen and (min-width: 601px){
Expand Down Expand Up @@ -76,6 +84,14 @@
left: 0;
}
}
.hero_content_award_img_rtl {
@media only screen and (min-width: 601px){
&[dir="rtl"] {
right: 50%;
left: auto;
}
}
}
.hero_content_text{
@media only screen and (min-width: 601px){
max-width: 325px;
Expand Down
12 changes: 6 additions & 6 deletions src/features/pages/home/live-pricing-migration/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const LiveMarketSection = () => {
className="inline-flex items-center justify-center pt-gap-3xl"
>
<Localize translate_text="_t_See all forex pairs_t_" />
<StandaloneChevronRightRegularIcon className="text-solid-slate-1400" />
<StandaloneChevronRightRegularIcon className="text-solid-slate-1400 rtl:rotate-180" />
</CustomLink>
</LiveMarketCard>
<LiveMarketCard market="der">
Expand All @@ -53,7 +53,7 @@ const LiveMarketSection = () => {
className="inline-flex items-center justify-center pt-gap-3xl"
>
<Localize translate_text="_t_See all derived indices pairs_t_" />
<StandaloneChevronRightRegularIcon className="text-solid-slate-1400" />
<StandaloneChevronRightRegularIcon className="text-solid-slate-1400 rtl:rotate-180" />
</CustomLink>
</LiveMarketCard>
<LiveMarketCard market="etfs">
Expand All @@ -69,7 +69,7 @@ const LiveMarketSection = () => {
className="inline-flex items-center justify-center pt-gap-3xl"
>
<Localize translate_text="_t_See all ETFs pairs_t_" />
<StandaloneChevronRightRegularIcon className="text-solid-slate-1400" />
<StandaloneChevronRightRegularIcon className="text-solid-slate-1400 rtl:rotate-180" />
</CustomLink>
</LiveMarketCard>
<LiveMarketCard market={['ind', 'stk']}>
Expand All @@ -85,7 +85,7 @@ const LiveMarketSection = () => {
className="inline-flex items-center justify-center pt-gap-3xl"
>
<Localize translate_text="_t_See all stocks & indices pairs_t_" />
<StandaloneChevronRightRegularIcon className="text-solid-slate-1400" />
<StandaloneChevronRightRegularIcon className="text-solid-slate-1400 rtl:rotate-180" />
</CustomLink>
</LiveMarketCard>
<LiveMarketCard market="cry">
Expand All @@ -101,7 +101,7 @@ const LiveMarketSection = () => {
className="inline-flex items-center justify-center pt-gap-3xl"
>
<Localize translate_text="_t_See all cryptocurrencies_t_" />
<StandaloneChevronRightRegularIcon className="text-solid-slate-1400" />
<StandaloneChevronRightRegularIcon className="text-solid-slate-1400 rtl:rotate-180" />
</CustomLink>
</LiveMarketCard>
<LiveMarketCard market="com">
Expand All @@ -117,7 +117,7 @@ const LiveMarketSection = () => {
className="inline-flex items-center justify-center pt-gap-3xl"
>
<Localize translate_text="_t_See all commodities_t_" />
<StandaloneChevronRightRegularIcon className="text-solid-slate-1400" />
<StandaloneChevronRightRegularIcon className="text-solid-slate-1400 rtl:rotate-180" />
</CustomLink>
</LiveMarketCard>
</LiveMarketBlock.Tab>
Expand Down
Loading