Skip to content

Commit

Permalink
add nyan cat to loading screen in tx sim (#152)
Browse files Browse the repository at this point in the history
* add nyan cat to loading screen in tx sim

* remove nyan2 gif
  • Loading branch information
AugmentedMode authored Apr 11, 2024
1 parent be8dbce commit 36029e0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
Binary file added public/images/popup/nyan.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ import styles from '../simulation.module.css';

export const SimulationLoading = () => {
function getRandomGif() {
const rand = Math.floor(Math.random() * 3) + 1;
return '/images/popup/nyan.gif';
// const rand = Math.floor(Math.random() * 3) + 1;

switch (rand) {
case 1:
return "/images/popup/RunMichaelK.gif";
case 2:
return "/images/popup/PenguinRunLeft.gif";
case 3:
return "/images/popup/PenguinRunRight.gif";
default:
return "/images/popup/RunMichaelK.gif";
}
// switch (rand) {
// case 1:
// return "/images/popup/RunMichaelK.gif";
// case 2:
// return "/images/popup/PenguinRunLeft.gif";
// case 3:
// return "/images/popup/PenguinRunRight.gif";
// default:
// return "/images/popup/RunMichaelK.gif";
// }
}

const loadingGif = getRandomGif();
Expand All @@ -23,7 +24,7 @@ export const SimulationLoading = () => {
<div style={{ display: 'flex', justifyContent: 'center' }}>
<div className="row text-center" style={{ marginTop: '50%' }}>
<div className="col" style={{ display: 'flex', justifyContent: 'center' }}>
<img src={loadingGif} alt="" width={150} />
<img src={loadingGif} alt="" width={180} />
</div>
</div>

Expand Down

0 comments on commit 36029e0

Please sign in to comment.