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

Commit

Permalink
chore: updated class names in templates components
Browse files Browse the repository at this point in the history
  • Loading branch information
hasan-deriv committed Dec 25, 2023
1 parent fe7c6e1 commit 0cbbf76
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const ProductsHeading = ({ title }: ProductsHeadingProps) => {
align={'left'}
pt={'4x'}
md={{ pt: '8x' }}
className="visible-larger-than-tablet"
className="at-visible-larger-than-tablet"
>
{title.map((text, index) => (
<React.Fragment key={index}>
Expand All @@ -32,7 +32,7 @@ const ProductsHeading = ({ title }: ProductsHeadingProps) => {
align={'left'}
pt={'4x'}
md={{ pt: '8x' }}
className="visible-phone-and-tablet"
className="at-visible-phone-and-tablet"
>
{title.map((text, index) => (
<React.Fragment key={index}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const DesktopMenu = ({ has_centered_items }: IDesktopNavbarProps) => {
onValueChange={setActive}
className={dclsx(
'navigation_root',
has_centered_items ? 'justify-center' : 'justify-end',
has_centered_items ? undefined : 'margin-right-40x',
has_centered_items ? 'at-justify-center' : 'at-justify-end',
has_centered_items ? undefined : 'at-margin-right-40x',
)}
>
<NavigationMenu.List className="navigation_list">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ const SectionOptionContentItem = ({ item }: { item: OptionContentSectionItemData
<Flex.Box gap="4x" align="center">
{item.icon.src && <img src={item.icon.src} alt={localize(item.icon.alt)} />}
{item.title && (
<h4 className={dclsx('text-small')}>
<h4 className={dclsx('at-text-small')}>
<Localize translate_text={item.title} />
</h4>
)}
</Flex.Box>
{item.sections.map((sectionItem) => (
<Flex.Box key={sectionItem.title} direction="col">
<h5 className={dclsx('text-small', 'padding-block-12x')}>
<h5 className={dclsx('at-text-small', 'at-padding-block-12x')}>
<Localize translate_text={sectionItem.title} />
</h5>
<Flex.Box direction="col" gap="6x" pb="16x">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const SingleOptionContentItem = ({ item }: { item: OptionContentSingleItemData }
<Flex.Box gap="4x" pb="8x" align="center">
{item.icon && <img src={item.icon.src} alt={localize(item.icon.alt)} />}
{item.title && (
<h4 className={dclsx('text-small')}>
<h4 className={dclsx('at-text-small')}>
<Localize translate_text={item.title} />
</h4>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const PlatformsCarousel = ({ heading, data, ...rest }: PropsType) => {
<Typography.Heading as="h2" align="center" size="large" mb="8x" md={{ mb: '40x' }}>
<Localize translate_text={heading} />
</Typography.Heading>
<div className={dclsx('md-padding-inline-15x', slider_wrapper)}>
<div className={dclsx('md-at-padding-inline-15x', slider_wrapper)}>
<Swiper
speed={500}
slidesPerView={1}
Expand All @@ -58,7 +58,7 @@ const PlatformsCarousel = ({ heading, data, ...rest }: PropsType) => {
},
}}
className={dclsx(
'padding-inline-5x padding-bottom-20x md-padding-bottom-10x',
'at-padding-inline-5x at-padding-bottom-20x md-at-padding-bottom-10x',
)}
>
{data.map((slide) => (
Expand All @@ -69,7 +69,7 @@ const PlatformsCarousel = ({ heading, data, ...rest }: PropsType) => {
</Swiper>
<button
className={dclsx(
'padding-0x slider-button-prev visible-larger-than-tablet',
'at-padding-0x slider-button-prev at-visible-larger-than-tablet',
slider_button,
slider_button_prev,
)}
Expand All @@ -78,7 +78,7 @@ const PlatformsCarousel = ({ heading, data, ...rest }: PropsType) => {
</button>
<button
className={dclsx(
'padding-0x slider-button-next visible-larger-than-tablet',
'at-padding-0x slider-button-next at-visible-larger-than-tablet',
slider_button,
slider_button_next,
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ const PlatformCard = ({ data: { icon, heading, paragraph, link } }: PlatformProp
</Typography.Paragraph>
<Link
url={link}
className={dclsx(platform_link, 'flex', 'align-items-center', 'justify-center')}
className={dclsx(
platform_link,
'at-flex',
'at-align-items-center',
'at-justify-center',
)}
textcolor="brand"
padding_block="4x"
padding_inline="8x"
Expand All @@ -44,7 +49,7 @@ const PlatformCard = ({ data: { icon, heading, paragraph, link } }: PlatformProp
<Image
src={Arrow}
alt={localize('_t_Arrow_t_')}
className={dclsx('margin-left-1x')}
className={dclsx('at-margin-left-1x')}
width={10}
height={10}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const WhyTradeOptions = ({ data }: { data: WhyTradeOptionsType }) => {
textcolor="inverted"
size="xxs"
mb="8x"
className={dclsx('text-medium')}
className={dclsx('at-text-medium')}
>
<Localize translate_text={data.heading2} />
</Typography.Heading>
Expand Down

0 comments on commit 0cbbf76

Please sign in to comment.