Skip to content

Commit

Permalink
this will come back as a proper tip system later, probably
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Jul 1, 2024
1 parent 24c4b1b commit f375ee2
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 39 deletions.
7 changes: 1 addition & 6 deletions src/components/loader/loader.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
.block-animation {
width: 125px;
height: 150px;
margin: 10px auto 0px;
margin: 50px auto 0px;
}

.block-animation img {
Expand Down Expand Up @@ -190,8 +190,3 @@
height: 100%;
background-color: $ui-white-default;
}

.pride-month {
max-width: 350px;
margin-top: 0.75rem;
}
12 changes: 0 additions & 12 deletions src/components/loader/loader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {getIsLoadingWithId} from '../../reducers/project-state';
import topBlock from './top-block.svg';
import middleBlock from './middle-block.svg';
import bottomBlock from './bottom-block.svg';
import {notScratchDesktop} from '../../lib/isScratchDesktop';

const mainMessages = {
'gui.loader.headline': (
Expand Down Expand Up @@ -147,17 +146,6 @@ class LoaderComponent extends React.Component {
ref={this.barInnerRef}
/>
</div>

{notScratchDesktop() && (
<div
className={styles.prideMonth}
lang="en"
>
<b>{'Pride Month Fun Fact:'}</b>{' '}
{/* eslint-disable-next-line max-len */}
{'Significant parts of TurboWarp were created by transgender people.'}
</div>
)}
</div>
</div>
);
Expand Down
10 changes: 0 additions & 10 deletions src/playground/embed.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.splash-pride-month {
max-width: 350px;
margin-top: 1rem;
}
</style>
</head>
<body>
Expand All @@ -54,11 +49,6 @@

<div class="splash-screen" hidden id="splash-need-js">
<div class="splash-spinner"></div>

<div class="splash-pride-month" lang="en">
<b>Pride Month Fun Fact:</b>
Significant parts of TurboWarp were created by transgender people.
</div>
</div>

<script>
Expand Down
11 changes: 0 additions & 11 deletions src/playground/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@
.splash-reset:disabled {
opacity: 0.8;
}
.splash-pride-month {
max-width: 350px;
}
</style>
</head>
<body>
Expand All @@ -92,11 +88,6 @@
<div class="splash-screen spash-waiting-for-js" hidden>
<div class="splash-spinner"></div>

<div class="splash-pride-month" lang="en">
<b>Pride Month Fun Fact:</b>
Significant parts of TurboWarp were created by transgender people.
</div>

<div class="splash-error-title" hidden>Something went wrong. <a href="https://scratch.mit.edu/users/GarboMuffin/#comments" target="_blank" rel="noreferrer">Please report</a> with the information below.</div>
<div class="splash-errors" hidden></div>
<button class="splash-reset" hidden>Click here to reset caches (can fix some errors)</button>
Expand Down Expand Up @@ -153,13 +144,11 @@
var splashErrorTitle = document.querySelector('.splash-error-title');
var splashError = document.querySelector('.splash-errors');
var splashReset = document.querySelector('.splash-reset');
var splashPrideMonth = document.querySelector('.splash-pride-month');
var totalErrors = 0;
window.onerror = function (event, source, line, col, err) {
if (++totalErrors > 5) return; // dont bother logging more
splashErrorTitle.hidden = splashError.hidden = splashReset.hidden = false;
splashPrideMonth.hidden = true;
var el = document.createElement('div');
el.textContent = 'Error (splash) in ' + source + ' (' + line + ':' + col + '): ' + err;
splashError.appendChild(el);
Expand Down

0 comments on commit f375ee2

Please sign in to comment.