Skip to content

Commit

Permalink
display version in main menu
Browse files Browse the repository at this point in the history
  • Loading branch information
tobspr committed Dec 7, 2020
1 parent 2b685ee commit 46e5324
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions src/css/states/main_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@
}

.standaloneBanner {
background: rgb(255, 234, 245);
@include S(border-radius, $globalBorderRadius);
background: rgb(255, 75, 84);
@include S(border-radius, $globalBorderRadius + 4);
box-sizing: border-box;
border: solid rgba(#fff, 0.15);
@include S(border-width, 4px);
@include S(padding, 15px);

display: flex;
Expand All @@ -110,13 +112,14 @@
h3 {
@include Heading;
font-weight: bold;
@include S(margin-bottom, 5px);
@include S(margin-bottom, 20px);
text-transform: uppercase;
color: $colorRedBright;
color: #fff;
}

p {
@include Text;
color: #fff;
}

ul {
Expand All @@ -138,7 +141,7 @@
display: block;
text-indent: -999em;
cursor: pointer;
@include S(margin-top, 20px);
@include S(margin-top, 30px);
pointer-events: all;
transition: all 0.12s ease-in;
transition-property: opacity, transform;
Expand Down Expand Up @@ -181,9 +184,8 @@
.updateLabel {
position: absolute;
transform: translateX(50%) rotate(-5deg);
color: $colorRedBright;
color: rgb(231, 78, 58);
@include Heading;
text-transform: uppercase;
font-weight: bold;
@include S(right, 40px);
@include S(bottom, 20px);
Expand Down
2 changes: 1 addition & 1 deletion src/js/states/main_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class MainMenuState extends GameState {
<div class="logo">
<img src="${cachebust("res/logo.png")}" alt="shapez.io Logo">
<span class="updateLabel">Wires update!</span>
<span class="updateLabel">v${G_BUILD_VERSION}</span>
</div>
<div class="mainWrapper ${showDemoBadges ? "demo" : "noDemo"}">
Expand Down

0 comments on commit 46e5324

Please sign in to comment.