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

Commit

Permalink
feat: added content change in banner
Browse files Browse the repository at this point in the history
  • Loading branch information
vinu-deriv committed Jun 26, 2024
1 parent 477b16a commit ffcb783
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
3 changes: 3 additions & 0 deletions public/images/ic-megaphone.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 7 additions & 4 deletions src/components/Banner/fixed-dbot-banner.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ import './fixed-dbot-banner.scss';
const FixedDbotBanner = () => (
<div className='fixed-banner__container'>
<div className='fixed-banner__content'>
<div className='fixed-banner__icon-info icon-info'></div>
<img className='fixed-banner__icon' alt='move to deriv' src='/public/images/ic-megaphone.svg' />
<div>
<span>{translate('For improved features and an overall better performance, ')}</span>
<span>
<strong>{translate('Important: ')}</strong>
</span>
<span>{translate('Binary Bot will be discontinued soon. ')}</span>
<a className='fixed-banner__visit-deriv-bot' href='#' onClick={visitDerivBot}>
{translate('switch to Deriv Bot')}
{translate('Upgrade to Deriv Bot')}
</a>
<span>{translate(' now.')}</span>
<span>{translate(' to continue trading.')}</span>
</div>
</div>
</div>
Expand Down
6 changes: 2 additions & 4 deletions src/components/Banner/fixed-dbot-banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
justify-content: center;
background-color: #ffeabf;
height: 56px;

font-size: var(--font-size-s);
@include mobile {
height: unset;
}
Expand Down Expand Up @@ -37,10 +37,8 @@
}
}

&__icon-info {
&__icon {
margin-right: 0.5rem;
font-size: 1.4rem;
transform: rotate(180deg);
}
}

Expand Down

0 comments on commit ffcb783

Please sign in to comment.