mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-09 10:41:56 +00:00
dfb93c16ab
* Increases Modal's width to better fit in the content. * Restore the image side behavior so that images are sometimes on the left, not always on the right * Allows modal to dynamically size its height. * This reduces some awkward whitespace, and makes it so you can't just jam on the "Next" button since it moves a bit, should slow some people down to at least catch the headlines. * Restore the alert style on the opening modal * Provide a mobile-friendly progress stepper. * This module's markup kind of sucks, so the restyling code is heinous. Sorry. * Scrolls the user to the top after hitting "Next" or "Previous" * On mobile, you would stay scrolled at the bottom. Much nicer feeling now. * Tons of text and content spacing / color / size adjustments.
50 lines
1.4 KiB
TypeScript
50 lines
1.4 KiB
TypeScript
import React from 'react';
|
|
import OnboardSlide from './OnboardSlide';
|
|
import translate from 'translations';
|
|
import onboardIconOne from 'assets/images/onboarding_icon-01.svg';
|
|
|
|
import './WelcomeSlide.scss';
|
|
|
|
const WelcomeSlide = () => {
|
|
const header = translate('ONBOARD_welcome_title');
|
|
const subheader = <small>{translate('ONBOARD_welcome_content__3')}</small>;
|
|
|
|
const content = (
|
|
<div>
|
|
<div className="WelcomeSlide-alert">
|
|
<div className="WelcomeSlide-alert-icon">
|
|
<i className="fa fa-exclamation-triangle" />
|
|
</div>
|
|
<span>
|
|
{translate('ONBOARD_welcome_content__1')}
|
|
{translate('ONBOARD_welcome_content__2')}
|
|
</span>
|
|
</div>
|
|
<div className="WelcomeSlide-alert">
|
|
<div className="WelcomeSlide-alert-icon">
|
|
<i className="fa fa-exclamation-triangle" />
|
|
</div>
|
|
<span>{translate('ONBOARD_welcome_content__8')}</span>
|
|
</div>
|
|
<h5>{translate('ONBOARD_welcome_content__4')}</h5>
|
|
<ul>
|
|
<li>{translate('ONBOARD_welcome_content__5')}</li>
|
|
<li>{translate('ONBOARD_welcome_content__6')}</li>
|
|
<li>{translate('ONBOARD_welcome_content__7')}</li>
|
|
</ul>
|
|
</div>
|
|
);
|
|
|
|
return (
|
|
<OnboardSlide
|
|
header={header}
|
|
subheader={subheader}
|
|
content={content}
|
|
image={onboardIconOne}
|
|
imageSide="right"
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default WelcomeSlide;
|