mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-11 06:31:51 +08:00
removed das banner, added das to support links
This commit is contained in:
parent
a8dfc44f49
commit
521a1f94eb
6 changed files with 29 additions and 30 deletions
|
|
@ -38,6 +38,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
.supportButtons {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.supporters,
|
||||
.contributors {
|
||||
display: grid;
|
||||
|
|
|
|||
|
|
@ -1093,7 +1093,7 @@
|
|||
|
||||
.buttons {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
|
||||
gap: 1rem;
|
||||
|
||||
.button {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import * as Commandline from "../elements/commandline";
|
||||
import * as CommandlineLists from "../elements/commandline-lists";
|
||||
|
||||
$(document.body).on("click", "#supportMeButton", () => {
|
||||
$(document.body).on("click", "#supportMeButton, #supportMeAboutButton", () => {
|
||||
$("#supportMeWrapper")
|
||||
.css("opacity", 0)
|
||||
.removeClass("hidden")
|
||||
|
|
|
|||
|
|
@ -48,28 +48,28 @@ $(document).ready(() => {
|
|||
if (Config.quickTab) {
|
||||
$("#restartTestButton").addClass("hidden");
|
||||
}
|
||||
// if (!window.localStorage.getItem("merchbannerclosed")) {
|
||||
// Notifications.addBanner(
|
||||
// `Checkout our merchandise, available at <a target="_blank" href="https://monkeytype.store/">monkeytype.store</a>`,
|
||||
// 1,
|
||||
// "images/merchdropwebsite2.png",
|
||||
// false,
|
||||
// () => {
|
||||
// window.localStorage.setItem("merchbannerclosed", "true");
|
||||
// }
|
||||
// );
|
||||
// }
|
||||
if (!window.localStorage.getItem("dasbannerclosed")) {
|
||||
if (!window.localStorage.getItem("merchbannerclosed")) {
|
||||
Notifications.addBanner(
|
||||
`Looking to buy a new keyboard? Check out <a target="_blank" href="https://www.monkeytype.com/das">DasKeyboard</a>. `,
|
||||
`Checkout our merchandise, available at <a target="_blank" href="https://monkeytype.store/">monkeytype.store</a>`,
|
||||
1,
|
||||
"images/dasbanner.png",
|
||||
"images/merchdropwebsite2.png",
|
||||
false,
|
||||
() => {
|
||||
window.localStorage.setItem("dasbannerclosed", "true");
|
||||
window.localStorage.setItem("merchbannerclosed", "true");
|
||||
}
|
||||
);
|
||||
}
|
||||
// if (!window.localStorage.getItem("dasbannerclosed")) {
|
||||
// Notifications.addBanner(
|
||||
// `Looking to buy a new keyboard? Check out <a target="_blank" href="https://www.monkeytype.com/das">DasKeyboard</a>. `,
|
||||
// 1,
|
||||
// "images/dasbanner.png",
|
||||
// false,
|
||||
// () => {
|
||||
// window.localStorage.setItem("dasbannerclosed", "true");
|
||||
// }
|
||||
// );
|
||||
// }
|
||||
$("#centerContent")
|
||||
.css("opacity", "0")
|
||||
.removeClass("hidden")
|
||||
|
|
|
|||
|
|
@ -98,7 +98,11 @@
|
|||
possible without you and your continued support.
|
||||
</p>
|
||||
<div class="supportButtons">
|
||||
<a class="button ads">
|
||||
<div class="button" id="supportMeAboutButton">
|
||||
<div class="fas fa-donate"></div>
|
||||
Support
|
||||
</div>
|
||||
<!-- <a class="button ads">
|
||||
<div class="fas fa-ad"></div>
|
||||
Ads
|
||||
</a>
|
||||
|
|
@ -128,15 +132,6 @@
|
|||
>
|
||||
<div class="fas fa-tshirt"></div>
|
||||
Merch
|
||||
</a>
|
||||
<!-- <a
|
||||
class="button"
|
||||
href="https://monkeytype.com/das"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<div class="fas fa-keyboard"></div>
|
||||
Keyboards
|
||||
</a> -->
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -860,15 +860,15 @@
|
|||
<div class="icon"><i class="fas fa-tshirt"></i></div>
|
||||
<div class="text">Buy Merch</div>
|
||||
</a>
|
||||
<!-- <a
|
||||
<a
|
||||
class="button"
|
||||
href="https://monkeytype.com/das"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<div class="icon"><i class="fas fa-keyboard"></i></div>
|
||||
<div class="text">Buy a Keyboard</div>
|
||||
</a> -->
|
||||
<div class="text">Buy a DAS Keyboard</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue