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 34 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
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"dependencies": {
"@artsy/fresnel": "^6.2.1",
"@builder.io/partytown": "^0.8.1",
"@deriv-com/blocks": "^0.70.0",
"@deriv-com/components": "^0.41.0",
"@deriv-com/blocks": "^0.74.0",
"@deriv-com/components": "^0.44.0",
"@deriv-com/hooks": "^0.10.0",
"@deriv-com/providers": "^0.10.0",
"@deriv-com/providers": "^0.11.0",
"@deriv/analytics": "^1.4.4",
"@deriv/deriv-api": "^1.0.13",
"@deriv/quill-design": "^1.3.2",
Expand Down
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,12 +1,19 @@
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'

const HeroAwardImages = () => {
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
1 change: 0 additions & 1 deletion src/features/pages/home/hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ 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)}>
<Heading.H1 className="text-solid-slate-50 text-[34px] lg:text-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
2 changes: 1 addition & 1 deletion src/translations/ach.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "crwdns3565842:0crwdne3565842:0",
"-651384976": "crwdns3565844:0crwdne3565844:0",
"-1033881248": "crwdns3565846:0crwdne3565846:0"
}
}
2 changes: 1 addition & 1 deletion src/translations/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "موظف",
"-651384976": "الجنسيات",
"-1033881248": "شاهد صفقاتنا المفتوحة"
}
}
2 changes: 1 addition & 1 deletion src/translations/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "কর্মচারী",
"-651384976": "জাতীয়তা",
"-1033881248": "আমাদের ওপেন পজিশন দেখুন"
}
}
2 changes: 1 addition & 1 deletion src/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "Mitarbeiter",
"-651384976": "Nationalitäten",
"-1033881248": "Sehen Sie unsere offenen Stellen"
}
}
2 changes: 1 addition & 1 deletion src/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "empleados",
"-651384976": "nacionalidades",
"-1033881248": "Vea nuestros puestos disponibles"
}
}
2 changes: 1 addition & 1 deletion src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "employés",
"-651384976": "nationalités",
"-1033881248": "Voir nos postes vacants"
}
}
2 changes: 1 addition & 1 deletion src/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "dipendenti",
"-651384976": "nazionalità",
"-1033881248": "Vedi le posizioni aperte"
}
}
2 changes: 1 addition & 1 deletion src/translations/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "직원",
"-651384976": "출신 국적",
"-1033881248": "채용 정보 보기"
}
}
2 changes: 1 addition & 1 deletion src/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "pracowników",
"-651384976": "narodowości",
"-1033881248": "Zobacz nasze otwarte pozycje"
}
}
2 changes: 1 addition & 1 deletion src/translations/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "funcionários",
"-651384976": "nacionalidades",
"-1033881248": "Consulte as nossas vagas"
}
}
2 changes: 1 addition & 1 deletion src/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "сотрудников",
"-651384976": "национальностей",
"-1033881248": "Смотреть вакансии"
}
}
2 changes: 1 addition & 1 deletion src/translations/si.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "සේවකයින්",
"-651384976": "ජාතීන්",
"-1033881248": "අපගේ විවෘත ස්ථාන බලන්න"
}
}
2 changes: 1 addition & 1 deletion src/translations/sw.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "wafanyakazi",
"-651384976": "mataifa",
"-1033881248": "Tazama nafasi zetu zilizo wazi"
}
}
2 changes: 1 addition & 1 deletion src/translations/th.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "พนักงาน",
"-651384976": "สัญชาติ",
"-1033881248": "ดูตำแหน่งงานที่เปิดรับ"
}
}
2 changes: 1 addition & 1 deletion src/translations/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "çalışanlar",
"-651384976": "milliyetler",
"-1033881248": "Açık pozisyonlarımızı görün"
}
}
2 changes: 1 addition & 1 deletion src/translations/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "nhân viên",
"-651384976": "dân tộc",
"-1033881248": "Xem các vị trí đang tuyển"
}
}
2 changes: 1 addition & 1 deletion src/translations/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "雇员",
"-651384976": "国籍",
"-1033881248": "查看空缺职位"
}
}
2 changes: 1 addition & 1 deletion src/translations/zh_tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -4716,4 +4716,4 @@
"-1165835520": "僱員",
"-651384976": "國籍",
"-1033881248": "查看空缺職位"
}
}
Loading