Skip to content

Commit

Permalink
add tips (by o97doge on codeberg)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmsderp authored Mar 10, 2024
1 parent 96f6f40 commit 75e9e9a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/loader/loader.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// credit to o97doge on codeberg for the tip system

import React from 'react';
import {defineMessages, FormattedMessage, intlShape, injectIntl} from 'react-intl';
import classNames from 'classnames';
import styles from './loader.css';
import PropTypes from 'prop-types';
import bindAll from 'lodash.bindall';

import { tip } from '../../lib/randomUnhelpfulTip';
import topBlock from './top-block.svg';
import middleBlock from './middle-block.svg';
import bottomBlock from './bottom-block.svg';
Expand Down Expand Up @@ -150,6 +152,7 @@ class LoaderComponent extends React.Component {
<div className={styles.title}>
{mainMessages[this.props.messageId]}
</div>
<p>{tip[Math.round(Math.random() * tip.length)]}</p>
<div className={styles.messageContainerOuter}>
<div
className={styles.messageContainerInner}
Expand All @@ -162,6 +165,7 @@ class LoaderComponent extends React.Component {
ref={this.barInnerRef}
/>
</div>

</div>
</div>
);
Expand Down
7 changes: 7 additions & 0 deletions src/lib/randomUnhelpfulTip.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export const tip = [
'Snail IDE is cool',
'@carters3421 on Scratch made the Purple Square Guy Sprite, its basically his mascot!',
'Also check out LibreKitten!',
'Snail IDE is based off the source code of PenguinMod, which is based off TurboWarp, which is based off Scratch. M O D C E P T I O N.',
'Crazy? I was crazy once. They locked me in a room, a rubber room. A rubber room with rats. And rats make me crazy.',
];

4 comments on commit 75e9e9a

@dumorando
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow

@nmsderp
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow

wow

@nmsderp
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow

wow

wow

@dumorando
Copy link
Collaborator

@dumorando dumorando commented on 75e9e9a Mar 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow

wow

wow

wow

Please sign in to comment.