mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Improve mobile warning
This commit is contained in:
parent
91e713fc00
commit
3178974d78
@ -4,6 +4,8 @@
|
|||||||
background: #333438 !important;
|
background: #333438 !important;
|
||||||
@include S(padding, 20px);
|
@include S(padding, 20px);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
justify-content: center;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
@ -17,20 +19,23 @@
|
|||||||
margin-bottom: 13px;
|
margin-bottom: 13px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
|
max-width: 300px;
|
||||||
|
text-align: left;
|
||||||
a {
|
a {
|
||||||
color: $colorBlueBright;
|
color: $colorBlueBright;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.standaloneLink {
|
.standaloneLink {
|
||||||
width: 100%;
|
width: 200px;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
|
min-height: 40px;
|
||||||
background: uiResource("get_on_itch_io.svg") center center / contain no-repeat;
|
background: uiResource("get_on_itch_io.svg") center center / contain no-repeat;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: block;
|
display: block;
|
||||||
text-indent: -999em;
|
text-indent: -999em;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-top: 20px;
|
margin-top: 10px;
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
transition: all 0.12s ease-in;
|
transition: all 0.12s ease-in;
|
||||||
transition-property: opacity, transform;
|
transition-property: opacity, transform;
|
||||||
|
@ -9,22 +9,20 @@ export class MobileWarningState extends GameState {
|
|||||||
|
|
||||||
getInnerHTML() {
|
getInnerHTML() {
|
||||||
return `
|
return `
|
||||||
|
|
||||||
<div class="mobileWarning">
|
<img class="logo" src="${cachebust("res/logo.png")}" alt="shapez.io Logo">
|
||||||
<img class="logo" src="${cachebust("res/logo.png")}" alt="shapez.io Logo">
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
I'm sorry, but shapez.io is not yet available on mobile devices!
|
I'm sorry, but shapez.io is not yet available on mobile devices!
|
||||||
(There is also no estimate when this will change, but feel to make a contribution! It's
|
(There is also no estimate when this will change, but feel to make a contribution! It's
|
||||||
<a href="https://github.com/tobspr/shapez.io" target="_blank">open source</a>!)</p>
|
<a href="https://github.com/tobspr/shapez.io" target="_blank">open source</a>!)</p>
|
||||||
|
|
||||||
<p>If you want to play on your computer, you can also get the standalone on itch.io:</p>
|
<p>If you want to play on your computer, you can also get the standalone on itch.io:</p>
|
||||||
|
|
||||||
|
|
||||||
<a href="${
|
<a href="${
|
||||||
THIRDPARTY_URLS.standaloneStorePage
|
THIRDPARTY_URLS.standaloneStorePage
|
||||||
}" class="standaloneLink" target="_blank">Get the shapez.io standalone!</a>
|
}" class="standaloneLink" target="_blank">Get the shapez.io standalone!</a>
|
||||||
</div>
|
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user