Skip to content

Commit

Permalink
adjust animation to big screens
Browse files Browse the repository at this point in the history
  • Loading branch information
clxandstuff committed May 29, 2023
1 parent 8ee773b commit 00ed1e9
Showing 1 changed file with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions src/components/wizard/stories/create-account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,15 @@ const SuccessStep = ({avatarImage}: {avatarImage: string}) => {
left: '10%',
}}
>
<Lottie animationData={brandHeroesAnimation} />
<div
style={{
margin: '0 auto',
width: '100%',
maxWidth: '1000px',
}}
>
<Lottie animationData={brandHeroesAnimation} />
</div>
</div>
<div
style={{
Expand All @@ -166,12 +174,20 @@ const SuccessStep = ({avatarImage}: {avatarImage: string}) => {
left: '10%',
}}
>
<Lottie
lottieRef={confettiAnimationRef}
animationData={confettiAnimation}
loop={false}
autoplay={false}
/>
<div
style={{
margin: '0 auto',
width: '100%',
maxWidth: '1000px',
}}
>
<Lottie
lottieRef={confettiAnimationRef}
animationData={confettiAnimation}
loop={false}
autoplay={false}
/>
</div>
</div>
</>
);
Expand Down Expand Up @@ -218,7 +234,7 @@ const CreateAccountStory = () => {
return (
<Wizard onComplete={onComplete}>
<Wizard.ProgressBar>Join Brainly</Wizard.ProgressBar>
<WizardStep>
{/* <WizardStep>
<Wizard.Title subtitle="Let us know you better">
Almost there.
</Wizard.Title>
Expand Down Expand Up @@ -363,7 +379,7 @@ const CreateAccountStory = () => {
<WizardStep.Submit variant="solid-indigo">
create account
</WizardStep.Submit>
</WizardStep>
</WizardStep> */}
<WizardStep>
<SuccessStep avatarImage={avatarImage} />
</WizardStep>
Expand Down

0 comments on commit 00ed1e9

Please sign in to comment.