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

Meenu/Translation 92 page ctrader trade platform #5071

Merged
Show file tree
Hide file tree
Changes from 103 commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
ea88c63
auto-pull-translation
meenu-deriv May 2, 2023
68e3777
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv May 17, 2023
23c8e75
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv May 18, 2023
f53d9e3
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv May 19, 2023
7da0c9e
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv May 19, 2023
764c0fb
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv May 19, 2023
125df01
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv May 24, 2023
5d42d8d
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv May 29, 2023
c8c9e4d
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv May 31, 2023
2fa2119
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv Jun 1, 2023
89b022a
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv Jun 2, 2023
5ef04c8
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv Jun 5, 2023
d10176b
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv Jun 7, 2023
525c562
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv Jun 8, 2023
5449cb7
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv Jun 8, 2023
b9dae03
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv Jun 9, 2023
d6c619f
auto-pull-translation
meenu-deriv Jun 9, 2023
1087624
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv Jun 12, 2023
9801425
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv Jun 12, 2023
3703e7f
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv Jun 14, 2023
08c8f03
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv Jun 15, 2023
2d0d155
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv Jun 20, 2023
270df92
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv Jun 21, 2023
af57470
Merge branch 'master' of https://github.com/binary-com/deriv-com
meenu-deriv Jun 21, 2023
b658b55
fix: test
meenu-deriv Jun 21, 2023
6970897
Merge branch 'master' of https://github.com/binary-com/deriv-com into…
meenu-deriv Jun 21, 2023
cd9f0a5
fix: initial commit
meenu-deriv Jun 21, 2023
b19ecad
fix: product page
meenu-deriv Jun 21, 2023
2b16e53
fix: banner fixes
meenu-deriv Jun 22, 2023
17e5f7c
fix: products available on added
mayuran-deriv Jun 22, 2023
7519b84
fix: comments fixes
meenu-deriv Jun 22, 2023
4527462
Merge pull request #7 from mayuran-deriv/mayuran/products_ctrade_add
meenakshi-deriv Jun 22, 2023
1afb703
fix: bug fixes
meenu-deriv Jun 22, 2023
3f4788e
Merge branch 'translation-92-page-ctrader-trade-platform' of https://…
meenu-deriv Jun 22, 2023
7aa41b8
fix: render issue in mobile in tab
mayuran-deriv Jun 22, 2023
aa497a0
fix: removed ternory and added switch case
mayuran-deriv Jun 22, 2023
52cc37c
auto-pull-translation
meenu-deriv Jun 23, 2023
41f1030
Merge branch 'master' of https://github.com/binary-com/deriv-com into…
meenu-deriv Jun 23, 2023
663ace3
fix: added hoc
meenu-deriv Jun 23, 2023
041b7fa
Merge pull request #8 from mayuran-deriv/mayuran/fix_mobile_wrong_ren…
meenakshi-deriv Jun 23, 2023
6a7a1d0
fix: updated dependency
meenu-deriv Jun 23, 2023
c219cb6
auto-pull-translation
meenu-deriv Jun 23, 2023
6c5843a
translation: 📚 sync translations from crowdin feature branch
DerivFE Jun 23, 2023
37d306a
fix: banner issue arab
mayuran-deriv Jun 26, 2023
4159836
fix: scss change
mayuran-deriv Jun 26, 2023
72de9e4
fix: empty line removed
mayuran-deriv Jun 26, 2023
ae39763
feat: created carousel file
hasan-deriv Jun 26, 2023
ccb09ec
feat: added icons
hasan-deriv Jun 26, 2023
397c5e1
feat: added platform component
hasan-deriv Jun 26, 2023
c8495a8
Merge pull request #9 from mayuran-deriv/mayuran/fix_mobile_wrong_ren…
meenakshi-deriv Jun 26, 2023
dab0a85
Update src/features/components/templates/trade-platform/other-platfor…
hasan-deriv Jun 27, 2023
4fe6394
Update src/features/components/templates/trade-platform/other-platfor…
hasan-deriv Jun 27, 2023
8c23c5b
fix: pr suggestions
hasan-deriv Jun 27, 2023
1dbb2ee
fix: swiper btn's css
hasan-deriv Jun 27, 2023
501c690
Merge pull request #11 from hasan-deriv/pr-92-other-platforms-carousel
meenakshi-deriv Jul 3, 2023
3aa9ef7
Merge branch 'master' of https://github.com/binary-com/deriv-com into…
meenu-deriv Jul 3, 2023
0517235
fix: radius issue fix
mayuran-deriv Jul 3, 2023
82a02a9
fix: pr comments
mayuran-deriv Jul 3, 2023
febf4b1
Merge pull request #12 from mayuran-deriv/mayuran/radius-banner-issue
meenakshi-deriv Jul 3, 2023
0d1e6f3
fix: image fixes
meenu-deriv Jul 3, 2023
99ba83a
Merge branch 'translation-92-page-ctrader-trade-platform' of https://…
meenu-deriv Jul 3, 2023
56ae4ef
fix: integrated other platform section
meenu-deriv Jul 4, 2023
aa9a866
fix: log mobile or tab
meenu-deriv Jul 6, 2023
847be3f
fix: responsive tab fixes
meenu-deriv Jul 6, 2023
72d9710
fix: fixed conflicts
meenu-deriv Jul 6, 2023
145864e
Merge branch 'master' of https://github.com/binary-com/deriv-com into…
meenu-deriv Jul 10, 2023
86a4abf
fix: step 2 real image
meenu-deriv Jul 10, 2023
3dfbab7
fix: decrease other platform carousel's speed
hasan-deriv Jul 11, 2023
c1d109e
Merge pull request #13 from hasan-deriv/other-platform-carousel-speed
meenakshi-deriv Jul 11, 2023
9dc5a97
fix: align issue in markets
mayuran-deriv Jul 12, 2023
e5659b7
fix: added tab radius and updated urls
meenu-deriv Jul 13, 2023
4ff6999
fix: fixed conflicts
meenu-deriv Jul 13, 2023
fc3d694
Merge branch 'translation-92-page-ctrader-trade-platform' of https://…
meenu-deriv Jul 13, 2023
0809c15
Merge pull request #14 from mayuran-deriv/mayuran/bug_ctrader_align
meenakshi-deriv Jul 13, 2023
f657856
fix: added ctrader in available platform
meenu-deriv Jul 13, 2023
45e874f
Merge branch 'translation-92-page-ctrader-trade-platform' of https://…
meenu-deriv Jul 13, 2023
f9e0e31
fix: tab button fix
meenu-deriv Jul 13, 2023
767a128
fix: mobile spacing issue
mayuran-deriv Jul 18, 2023
10df9c0
Merge pull request #15 from mayuran-deriv/mayuran/spacing_issue_mobile
meenakshi-deriv Jul 18, 2023
4f7ea48
fix: pull branch
meenu-deriv Jul 18, 2023
9905035
fix: fixed padding
meenu-deriv Jul 18, 2023
a97ea3d
fix: padding fix
meenu-deriv Jul 20, 2023
dc2c9ce
fix: ctrader on eu
meenu-deriv Jul 24, 2023
7aeffa4
fix: hidden some ctrader sections and added coming soon tag
aswathy-deriv Aug 25, 2023
c3bc408
fix: merge conflicts
aswathy-deriv Aug 25, 2023
182efd6
fix: review comments
aswathy-deriv Aug 25, 2023
5f5c18d
auto-pull-translation
aswathy-deriv Aug 30, 2023
a521991
translation: 📚 sync translations from crowdin feature branch
DerivFE Aug 30, 2023
5025270
Merge branch 'master' of https://github.com/binary-com/deriv-com into…
aswathy-deriv Aug 30, 2023
b80889b
fix: merge conflicts
aswathy-deriv Aug 30, 2023
5a85468
fix: added the container fluid
aswathy-deriv Aug 31, 2023
c5e5a89
empty: :rocket: to redeploy and trigger build
aswathy-deriv Aug 31, 2023
1e26ffc
fix: merge conflicts
aswathy-deriv Sep 4, 2023
70c78d8
fix: merge conflicts
Sep 6, 2023
da175fd
fix: changes in ctrader page
Sep 6, 2023
c88696a
Merge branch 'master' of https://github.com/binary-com/deriv-com into…
Sep 7, 2023
f5517c9
empty: :rocket: to redeploy and trigger build
Sep 7, 2023
b798d18
fix: merge conflicts
aswathy-deriv Sep 12, 2023
abeb08d
fix: merge new conflicts
aswathy-deriv Sep 12, 2023
363b2d8
empty: :rocket: to redeploy and trigger build
aswathy-deriv Sep 12, 2023
b6634b3
fix: merge conflicts
aswathy-deriv Sep 19, 2023
6c5ec68
feat: added ctrader in the navigation and footer
aswathy-deriv Sep 19, 2023
581e94a
fix: merge changes
aswathy-deriv Sep 19, 2023
7b7c35a
fix: changed seo to the main page and added pageContext
aswathy-deriv Sep 19, 2023
5bf09ec
fix: peer comments
aswathy-deriv Sep 25, 2023
120ee23
fix: merge changes
aswathy-deriv Sep 28, 2023
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
36 changes: 32 additions & 4 deletions crowdin/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@
"236845507": "What are contracts for difference (CFDs)?",
"237637819": "Where can I trade Touch/No Touch options?",
"239216026": "XMR/USD",
"239429137": "Useful menus where you can find out how each asset’s margin impacts your trade before placing them.",
"241331061": "Deriv GO is really good! I've been looking for an app like this which is easy to use.",
"242356757": "Submit a report",
"243072878": "15 - 5,000",
Expand Down Expand Up @@ -351,6 +352,7 @@
"352494339": "Get trading with Deriv MT5",
"354060979": "<0>1 lot</0> with 1000 leverage:",
"356733895": "Know your potential profit with fixed payouts, or maximise potential profit with variable payouts if your predictions are right.",
"357105933": "Go to the Trader’s hub and choose the Demo option.",
"358257887": "Once your submitted document has been approved, go to Cashier > DP2P to register your Deriv P2P account.",
"358369253": "Can I close In/Out options before the end of the trade duration?",
"358838306": "Vice President of Customer Support",
Expand Down Expand Up @@ -486,6 +488,7 @@
"481411401": "Regulation",
"482100031": "Trade the way you want with 3 exciting trade types.",
"483166710": "You can open an Asians trade by:",
"484950532": "All day, all year",
"485805015": "Can I close a High/Low Ticks contract before the contract expires?",
"486632400": "Open a digital options contract with a High/Low ticks trade type on Deriv’s trading platforms and earn payouts with accurate market predictions.",
"486935836": "I forgot my Google/Facebook/Apple account password. How can I log in to my Deriv account?",
Expand Down Expand Up @@ -540,6 +543,7 @@
"524082501": "As a payment agent, you are an independent exchanger. You can:",
"524230462": "How can I sign up as a Deriv IB?",
"524459540": "How do I create variables?",
"524469079": "An intuitive interface",
"524640779": "Please enter a valid password",
"524754401": "Instruments available for multipliers trading",
"526128866": "<p>Payout per point indicates the payout you will receive for each point above or below the strike price (which is selected before you enter the contract) within the contract period. This amount will depend on your stake.</p><p>For Call options, payout per point indicates the amount of payout you’ll gain for each point above the predetermined strike price, at the contract's expiry.</p><p>For Put options, payout per point indicates the amount of payout you’ll gain for each point below the predetermined strike price, at the contract's expiry.</p><p>Please note that this payout does not equal to potential profit. You'll only earn potential profit once the payout amount exceeds your stake amount.</p>",
Expand Down Expand Up @@ -633,6 +637,7 @@
"619610610": "Close your account at any time you want.",
"621291584": "0.75",
"622253642": "Save time – no need to open, monitor, and close trades.",
"623188171": "Trade cryptocurrencies and synthetic indices anytime, even on weekends and holidays.",
"623694668": "VWO.US",
"624256060": "Define optional parameters that give you more control over your trading, including stop loss, take profit, and deal cancellation.",
"627774646": "Additional income stream from monthly subscriptions.",
Expand Down Expand Up @@ -944,6 +949,7 @@
"913719394": "If you select ‘Over’, you will win the payout if the last digit of the last tick is greater than your prediction.",
"915392164": "Open long or short positions based on your predictions of the market price movements.",
"915554307": "Your potential. Our technology.",
"915735859": "Quick account sign-in",
"916591715": "The above information is updated monthly and, therefore, may not reflect current trading conditions.",
"917157780": "If you select 'Differs', you receive the payout if the last digit of the exit price is different than your prediction.",
"917922170": "- Select the underlying asset you want to trade.",
Expand Down Expand Up @@ -986,6 +992,7 @@
"960618190": "Trade various assets in multiple markets simultaneously.",
"961338094": "Enter multiplier value",
"961530723": "Netflix Inc",
"961728715": "platform",
"962218636": "Airbus SE",
"963202666": "How do I sign up as an affiliate?",
"968367390": "Traders typically analyse the underlying market and price trends to determine the likelihood of prices rising or falling over a given time period.",
Expand Down Expand Up @@ -1482,6 +1489,7 @@
"1456673219": "How and when will I receive my commission payout?",
"1456712815": "- Specifying the duration of the trade",
"1456920032": "<0>Deriv X</0> and <1>Deriv MT5</1> offer CFD trading on a similar range of assets, where you're able to open positions with leverage and your potential profit is only known when you close your positions. It's riskier than digital options trading because while you may potentially gain a lot if you win, you may also lose a lot if you don't. Deriv X and Deriv MT5 are popular among our traders who enjoy the risks as part of the excitement of CFD trading.",
"1457227649": "Trade derived and financial assets on one CFD account, without needing to switch between multiple accounts.",
"1458062110": "<0>XLE.US</0> The Energy Select Sector SPDR® Fund ETF tracks the energy sector of the S&P 500 Index.",
"1458263388": "Earn when your clients trade on an MT5 Financial STP account.",
"1461287243": "You can open a position for as low as 1 USD.",
Expand Down Expand Up @@ -1546,6 +1554,7 @@
"1508447392": "Not all payment methods are available in your country. Kindly check your cashier for further information.",
"1509244758": "Method",
"1510075920": "Gold/USD",
"1511280539": "Take advantage of an easy-to-use interface for trading and charting that both new and experienced traders can enjoy.",
"1514553548": "Melaka, Malaysia",
"1516021730": "20 - 1,000",
"1516676261": "Deposit",
Expand Down Expand Up @@ -1811,6 +1820,7 @@
"1741108305": "- Place your trade.",
"1742122525": "Automate your trading with DBot, Deriv’s trading robot which you can build without writing code.",
"1742671486": "Can I select the duration for an Asians contract?",
"1743279813": "Why trade with Deriv cTrader",
"1743448290": "Payment agents",
"1744150552": "Your new Deriv EZ account is ready.",
"1744637366": "Available on <0>Android</0> and <1>iOS</1>",
Expand Down Expand Up @@ -1939,6 +1949,7 @@
"1859772193": "If you select ‘Allow equals’, you win the payout if the exit spot is higher than or equal to the entry spot for ‘Rise’. Similarly, you win the payout if the exit spot is lower than or equal to the entry spot for ‘Fall’.",
"1860472068": "Online banking",
"1861000095": "example",
"1861172210": "cTrader is our intuitive CFD trading platform where you can trade forex, commodities, stocks & indices, cryptocurrencies, and derived indices.",
"1861302455": "You can place an In/Out trade by:",
"1861802946": "Want to trade <br/> Options on the go?",
"1862283751": "Trade forex, synthetic indices, and cryptocurrencies wherever, whenever you want and maximise your potential profit with multipliers on Deriv GO.",
Expand Down Expand Up @@ -2297,6 +2308,7 @@
"-1290112064": "Deriv EZ",
"-319687255": "Deriv GO",
"-1246992539": "Binary Bot",
"-145462920": "Deriv cTrader",
"-34495732": "Regulatory information",
"-634625185": "Terms & conditions",
"-258641121": "Deriv Prime",
Expand All @@ -2322,6 +2334,7 @@
"-622923303": "Trade on Deriv MT5, the all-in-one CFD trading platform.",
"-1278432184": "A highly customisable and easy-to-use CFD trading platform.",
"-232026853": "Trade on global markets from anywhere with our mobile-first CFD trading platform.",
"-1434935157": "Advance trading, charting and technical analysis tools available for users.",
"-1109694579": "Trade multipliers on forex, cryptocurrencies, and synthetic indices with our mobile app.",
"-981017278": "Automated trading at your fingertips. No coding needed.",
"-1668315223": "Traders’ tools",
Expand Down Expand Up @@ -3109,7 +3122,26 @@
"-1718206543": "Enter your email address to begin",
"-359315319": "Continue",
"-497118625": "Your demo Deriv and cTrader accounts have been created successfully.",
"-1101838164": "A feature-rich",
"-319509090": "CFD trading",
"-76418992": "Deriv ctrader logo",
"-700260448": "demo",
"-1006826644": "<0>Sign in</0> to your Deriv account. If you don’t have one, <1>sign up</1> for free.",
"-1864840861": "Under CFDs, look for Deriv cTrader and select Get.",
"-706898598": "Go to the Trader’s hub and choose the Real option.",
"-639006406": "How to get started with a Deriv cTrader account",
"-544288925": "cTrader – a CFD trading platform | Deriv",
"-1344568737": "The all-in-one CFD trading platform.",
"-1464815790": "Get trading with Deriv cTrader",
"-906824015": "Scan to download Deriv cTrader",
"-1517620254": "All your favourite assets in one place",
"-2142229954": "Know your trade margins",
"-1284819681": "What is Deriv cTrader",
"-835302900": "Deriv cTrader is an easy-to-use, multi-asset CFD trading platform packed with a wide range of features on a user-friendly interface. Enhance your trading experience further with features such as limit order and stop order, chart trading, and custom indicators. With Deriv cTrader, take advantage of our deep liquidity to execute trades quickly and efficiently.",
"-1627231267": "Multiple assets on a single platform",
"-238387918": "Trade forex, stocks & indices, cryptocurrencies, commodities, and derived indices in one place.",
"-707160742": "Easy start",
"-897434771": "Already have a Deriv account? Use those credentials to sign in to Deriv cTrader.",
"-1930452638": "Deriv EZ logo",
"-151281957": "CFDs trading platform",
"-1252238038": "Add a Deriv EZ demo account.",
Expand All @@ -3121,7 +3153,6 @@
"-1342386962": "Take advantage of more than 50 trading indicators and tools to make informed decisions.",
"-733360107": "Instant platform access",
"-127969124": "Easy to start",
"-707160742": "Easy start",
"-1160097046": "Trade anytime you want, including weekends and holidays, on cryptocurrencies and our proprietary derived indices.",
"-1486813632": "Rated excellent on",
"-967353831": "You need Deriv GO Ultimate for Android. Trade Options, in addition to CFDs and Multipliers, on your favourite markets.",
Expand Down Expand Up @@ -3433,8 +3464,6 @@
"-468571835": "Deriv MT5 gives you access to multiple asset classes – forex, stocks & indices, cryptocurrencies, commodities, and derived indices – on a single platform. With exclusive access to innovative assets, Deriv brings the MT5 experience to a superior level for both new and experienced traders.",
"-1058362536": "Quick demo account sign-up",
"-356516643": "Practise with a demo account preloaded with unlimited virtual funds.",
"-1627231267": "Multiple assets on a single platform",
"-238387918": "Trade forex, stocks & indices, cryptocurrencies, commodities, and derived indices in one place.",
"-525457182": "Trade round-the-clock, even on weekends, with our proprietary derived indices.",
"-1136280668": "licensed and regulated",
"-1111729867": "Why trade with Deriv MT5",
Expand Down Expand Up @@ -4238,7 +4267,6 @@
"-1477021091": "You can use our swap calculator to estimate the swap charges required to keep your positions open overnight on Deriv’s CFD trading platforms.",
"-1984817147": "On Deriv, you can trade CFDs with tight spreads. The spread is the difference between the buy price and sell price. The tighter the spread, the lower the cost to enter the market.",
"-877732419": "<0>High leverage</0> — Leverage allows you to open larger positions with a smaller balance in your trading account. The higher the leverage, the less money you need.",
"-319509090": "CFD trading",
"-2087689842": "Why trade CFDs on Deriv",
"-1794853647": "CFD trading | Online trading platform | Deriv",
"-31586003": "Trade CFDs on multiple markets. Enjoy high leverage, tight spreads, and risk management features to amplify your potential profits and limit losses.",
Expand Down
9 changes: 9 additions & 0 deletions src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ export const dmt5_windows_url =
'https://download.mql5.com/cdn/web/deriv.limited/mt5/deriv5setup.exe'
export const dp2p_google_play_url =
'https://play.google.com/store/apps/details?id=com.deriv.dp2p&hl=en&gl=US'
//to be updated with ctrader url later
export const ctrader_google_play_url =
'https://play.google.com/store/apps/details?id=com.deriv.dp2p&hl=en&gl=US'
export const ctrader_app_store_url =
'https://download.mql5.com/cdn/mobile/mt5/ios?server=Deriv-Demo,Deriv-Server'

export const ctrader_web_browser_url = 'ct.deriv.com'
export const ctrader_windows_url = 'https://getctrader.com/deriv/ctrader-deriv-setup.exe'
export const growthbook_client_key = GATSBY_GROWTHBOOK_CLIENT_KEY
export const gtm_test_domain = 'deriv-com.binary.sx'
export const map_api_key = MAP_API_KEY
Expand All @@ -145,6 +153,7 @@ export const localized_link_url = Object.freeze({
blog: blog_url,
community: community_url,
derivx: derivx_app_url,
deriv_app_login,
api: deriv_api_url,
dbot: deriv_bot_app_url,
deriv_app: deriv_app_url,
Expand Down
1 change: 1 addition & 0 deletions src/features/components/atoms/link/external.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const product_links: ProductLinksType = {
deriv_app: ({ language, url }) =>
getDerivAppLocalizedURL(localized_link_url['deriv_app'], language, url),
mt5: ({ language, url }) => getDerivAppLocalizedURL(localized_link_url['mt5'], language, url),
deriv_app_login: () => localized_link_url['deriv_app_login'],
derivx: ({ language, url }) =>
getDerivAppLocalizedURL(localized_link_url['derivx'], language, url),
affiliate_sign_in: ({ affiliate_lang }) =>
Expand Down
14 changes: 10 additions & 4 deletions src/features/components/atoms/tab/tab-content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,22 @@ const TabContent = ({ items: initial_tems, direction = 'row' }: Omit<StepperTabT
align={'center'}
margin_inline={'10x'}
margin_block={'20x'}
md={{ direction: direction, margin_block: '32x', pb: '40x', margin_inline: '0x' }}
md={{
direction: direction,
margin_block: '32x',
pb: '40x',
margin_inline: '0x',
gap: '40x',
}}
>
<FlexBox.Box
className={tab_images}
margin_inline={'40x'}
margin_inline={'25x'}
md={{ margin_block: '12x', margin_inline: '0x' }}
>
{items[selected]?.image}
</FlexBox.Box>
<FlexBox.Box>
<FlexBox.Box padding="5x">
<Box as={'ul'}>
{items.map((item, index) => {
const is_selected = selected === index
Expand All @@ -51,7 +57,7 @@ const TabContent = ({ items: initial_tems, direction = 'row' }: Omit<StepperTabT
{`${index + 1}. `}
<Localize
translate_text={item.title}
components={[item?.component]}
components={item?.component}
/>
</Typography.Paragraph>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
.tab_images {
max-block-size: 38.5rem;
@include breakpoints(tablet) {
max-block-size: 62.5rem;
max-block-size: 43.4rem;
aswathy-deriv marked this conversation as resolved.
Show resolved Hide resolved
max-inline-size: 79.2rem;
}
}
48 changes: 29 additions & 19 deletions src/features/components/atoms/tab/tab-switcher/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,45 @@ import FlexBox from '../../flex-box'
import FlexBoxContainer from '../../flex-box/box'
import * as styles from './tab-switcher.module.scss'
import { Localize } from 'components/localization'
import dclsx from 'features/utils/dclsx'

const TabSwitcher = ({ tab, onTabClick }: Omit<StepperTabTypes, 'items'>) => {
const TabSwitcher = ({ tab, onTabClick, is_ctrader = false }: Omit<StepperTabTypes, 'items'>) => {
return (
<FlexBoxContainer direction={'col'} align={'center'} justify={'center'} pt={'20x'}>
<Typography.Heading align={'center'} mb={'20x'}>
<Localize translate_text={'_t_How to get started with a Deriv EZ account_t_'} />
</Typography.Heading>
<FlexBoxContainer
direction={'col'}
align={'center'}
justify={'center'}
pb={'20x'}
md={{ padding: '10x' }}
>
<FlexBox.Box justify={'center'}>
<TabButton
className={
tab === 'demo' ? styles.tab_switcher_active : styles.tab_switcher_unactive
}
className={dclsx(
tab === 'demo' ? styles.tab_switcher_active : styles.tab_switcher_unactive,
styles.demo_tab_button,
)}
onClick={() => onTabClick('demo')}
>
<Typography.Paragraph size={'xlarge'} align={'center'}>
<Localize translate_text={'_t_Demo account _t_'} />
</Typography.Paragraph>
</TabButton>
<TabButton
className={
tab === 'real' ? styles.tab_switcher_active : styles.tab_switcher_unactive
}
style={{ background: 'transparent' }}
onClick={() => onTabClick('real')}
>
<Typography.Paragraph size={'xlarge'} align={'center'}>
<Localize translate_text={'_t_Real account _t_'} />
</Typography.Paragraph>
</TabButton>
{!is_ctrader && (
<TabButton
className={dclsx(
tab === 'real'
? styles.tab_switcher_active
: styles.tab_switcher_unactive,
styles.real_tab_button,
)}
style={{ background: 'transparent' }}
onClick={() => onTabClick('real')}
>
<Typography.Paragraph size={'xlarge'} align={'center'}>
<Localize translate_text={'_t_Real account _t_'} />
</Typography.Paragraph>
</TabButton>
)}
</FlexBox.Box>
</FlexBoxContainer>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.demo_tab_button {
border-radius: 16px 0 0 16px;
}
.real_tab_button {
border-radius: 0px 16px 16px 0;
}
.tab_switcher {
&_active {
font-weight: bold;
Expand Down
3 changes: 2 additions & 1 deletion src/features/components/atoms/tab/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { TString } from 'types/generics'

export type TabItemTypes = {
title: TString
component?: React.ReactElement
component?: React.ReactElement[]
image: React.ReactElement
alt?: string
}
Expand All @@ -14,4 +14,5 @@ export type StepperTabTypes = {
tab?: string
onTabClick: (step: 'demo' | 'real' | number) => void
direction?: TFlexDirection
is_ctrader?: boolean
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
max-block-size: 64.1rem;
}
}
.hero_desktop_image {
.hero_image_wrapper {
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
@include breakpoints(tablet) {
margin-inline-start: auto;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const DerivProductHero = ({ contentData }: DerivProductHeroType) => {
md={{ direction: 'row' }}
>
<FlexBox.Box
container="fluid"
className={hero_wrapper}
direction={'col'}
justify={'center'}
Expand Down
Loading