Skip to content

Commit

Permalink
Adds Top 10 and New Color
Browse files Browse the repository at this point in the history
  • Loading branch information
Vigasaurus committed Jun 4, 2023
1 parent f550cd2 commit 6063f98
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 2 deletions.
13 changes: 12 additions & 1 deletion src/frontend-scripts/components/section-main/Changelog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,18 @@ class Changelog extends React.Component {
<p>Welcome to the delayed Season 22!</p>
</div>
<h4>The top 10 players of season 21 are:</h4>
<ol>To be updated soon!</ol>
<ol>
<li>godhemzelve: 2094</li>
<li>Gamesolver: 1852</li>
<li>GodMedusa: 1844</li>
<li>KingofSilents: 1817</li>
<li>ImThatGuyPal: 1804</li>
<li>LeonardoDiCaprio: 1780</li>
<li>GioIzHawt: 1766</li>
<li>VictorPeen: 1758</li>
<li>morphy: 1757</li>
<li>Athanor: 1747</li>
</ol>

<hr style={{ width: '100%' }} />

Expand Down
1 change: 1 addition & 0 deletions src/frontend-scripts/components/section-main/Colors.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const additionalRoles = [
['editor', 'editorcolor'],
['admin', 'admin'],
['moira', 'moira'],
['godhemzelve', 'godhemzelve'],
['vig', 'vig']
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ class Playerlist extends React.Component {

render() {
const { userInfo } = this.props;
const adminGradientData = { A: 'admin', d: 'moira', m: 'vig', i: 'admin', n: 'moira', s: 'vig' };
const adminGradientData = { A: 'godhemzelve', d: 'moira', m: 'vig', i: 'admin', n: 'godhemzelve', s: 'vig' };

return (
<section className="playerlist">
Expand Down
1 change: 1 addition & 0 deletions src/frontend-scripts/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const PLAYERCOLORS = (user, isSeasonal, defaultClass, eloDisabled) => {
editorcolor: user.staffRole === 'editor',
veteran: user.staffRole === 'veteran',
moira: user.userName === 'moira' && user.staffRole === 'admin',
godhemzelve: user.userName === 'godhemzelve' && user.staffRole === 'admin',
vig: user.userName === 'Vig' && user.staffRole === 'admin'
});
} else if (
Expand Down
1 change: 1 addition & 0 deletions src/frontend-scripts/node-constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ module.exports.PLAYERCOLORS = (user, isSeasonal, defaultClass, eloDisabled) => {
editorcolor: user.staffRole === 'editor',
veteran: user.staffRole === 'veteran',
moira: user.userName === 'moira' && user.staffRole === 'admin',
godhemzelve: user.userName === 'godhemzelve' && user.staffRole === 'admin',
vig: user.userName === 'Vig' && user.staffRole === 'admin'
});
} else if (
Expand Down
4 changes: 4 additions & 0 deletions src/scss/players.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ $eloValues: (1500 0.3 1 0.3) (1600 0.3 1 0.5) (1849 0 1 0.7) (1850 1 1 0.7) (190
box-shadow: 0 0 5px 2px #ff95fb !important;
}

.player-container.godhemzelve {
box-shadow: 0 0 5px 2px #beedc8 !important;
}

.player-container.vig {
box-shadow: 0 0 5px 2px #ab85ff !important;
}
Expand Down
4 changes: 4 additions & 0 deletions src/scss/profile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ $eloValues: (1500 0.3 1 0.3) (1600 0.3 1 0.5) (1849 0 1 0.7) (1850 1 1 0.7) (190
box-shadow: 0 0 5px 2px #ff95fb !important;
}

.profile-picture.godhemzelve {
box-shadow: 0 0 5px 2px #beedc8 !important;
}

.profile-picture.vig {
box-shadow: 0 0 5px 2px #ab85ff !important;
}
Expand Down
7 changes: 7 additions & 0 deletions src/scss/style-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,13 @@ $eloValues: (1500 0.3 1 0.3) (1600 0.3 1 0.5) (1849 0 1 0.7) (1850 1 1 0.7) (190
box-shadow: 0 0 5px 2px #ff95fb !important;
}

.godhemzelve {
color: #beedc8 !important;
}
.player-small-cardback.godhemzelve {
box-shadow: 0 0 5px 2px #beedc8 !important;
}

.vig {
color: #ab85ff !important;
}
Expand Down

0 comments on commit 6063f98

Please sign in to comment.