Skip to content

Commit

Permalink
add talk step
Browse files Browse the repository at this point in the history
  • Loading branch information
TiyoSheng committed Nov 28, 2023
1 parent be094c0 commit 95c9559
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/client/src/components/Talk/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const Talk = (props) => {
}
</div>
<div className='text' onClick={() => props.onNext()}>
<div className='step'>{step} / 10</div>
<div className='name' style={{marginBottom: '18px'}}>{curPlayer?.name || 'Mistery Duck'}:</div>
<Typewriter text={text} typingSpeed={30} step={step} />
<div style={{position: 'absolute', bottom: '18px', right: '18px', fontSize: '12px', color: 'rgba(255, 255, 255, 0.80)'}}>Click any button to continue</div>
Expand Down
5 changes: 5 additions & 0 deletions packages/client/src/components/Talk/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
color: #FFF;
font-size: 22px;
font-family: 'MISS';
.step {
position: absolute;
top: -40px;
right: 0px;
}
}
}
}

0 comments on commit 95c9559

Please sign in to comment.