Skip to content

Commit 00ed1e9

Browse files
committed
adjust animation to big screens
1 parent 8ee773b commit 00ed1e9

File tree

1 file changed

+25
-9
lines changed

1 file changed

+25
-9
lines changed

src/components/wizard/stories/create-account.tsx

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,15 @@ const SuccessStep = ({avatarImage}: {avatarImage: string}) => {
155155
left: '10%',
156156
}}
157157
>
158-
<Lottie animationData={brandHeroesAnimation} />
158+
<div
159+
style={{
160+
margin: '0 auto',
161+
width: '100%',
162+
maxWidth: '1000px',
163+
}}
164+
>
165+
<Lottie animationData={brandHeroesAnimation} />
166+
</div>
159167
</div>
160168
<div
161169
style={{
@@ -166,12 +174,20 @@ const SuccessStep = ({avatarImage}: {avatarImage: string}) => {
166174
left: '10%',
167175
}}
168176
>
169-
<Lottie
170-
lottieRef={confettiAnimationRef}
171-
animationData={confettiAnimation}
172-
loop={false}
173-
autoplay={false}
174-
/>
177+
<div
178+
style={{
179+
margin: '0 auto',
180+
width: '100%',
181+
maxWidth: '1000px',
182+
}}
183+
>
184+
<Lottie
185+
lottieRef={confettiAnimationRef}
186+
animationData={confettiAnimation}
187+
loop={false}
188+
autoplay={false}
189+
/>
190+
</div>
175191
</div>
176192
</>
177193
);
@@ -218,7 +234,7 @@ const CreateAccountStory = () => {
218234
return (
219235
<Wizard onComplete={onComplete}>
220236
<Wizard.ProgressBar>Join Brainly</Wizard.ProgressBar>
221-
<WizardStep>
237+
{/* <WizardStep>
222238
<Wizard.Title subtitle="Let us know you better">
223239
Almost there.
224240
</Wizard.Title>
@@ -363,7 +379,7 @@ const CreateAccountStory = () => {
363379
<WizardStep.Submit variant="solid-indigo">
364380
create account
365381
</WizardStep.Submit>
366-
</WizardStep>
382+
</WizardStep> */}
367383
<WizardStep>
368384
<SuccessStep avatarImage={avatarImage} />
369385
</WizardStep>

0 commit comments

Comments
 (0)