mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-28 00:35:25 +08:00
limited merch banner
This commit is contained in:
parent
73d0d88aeb
commit
b1e2fd57d0
3 changed files with 19 additions and 5 deletions
|
@ -20,7 +20,7 @@
|
|||
// background-image: url(images/merchdropwebsite2.png);
|
||||
height: 2.35rem;
|
||||
background-size: cover;
|
||||
aspect-ratio: 6/1;
|
||||
aspect-ratio: 8/1;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
margin-left: 2rem;
|
||||
|
|
|
@ -47,18 +47,32 @@ $(document).ready(() => {
|
|||
// );
|
||||
// }
|
||||
|
||||
if (!window.localStorage.getItem("merchbannerclosed2")) {
|
||||
// if (!window.localStorage.getItem("merchbannerclosed2")) {
|
||||
// Notifications.addBanner(
|
||||
// `Three new merch designs, available at <a target="_blank" href="https://www.monkeytype.store/unisex-men-s-t-shirts/">monkeytype.store</a>`,
|
||||
// 1,
|
||||
// "images/cutoutbanner.png",
|
||||
// false,
|
||||
// () => {
|
||||
// window.localStorage.setItem("merchbannerclosed2", "true");
|
||||
// },
|
||||
// true
|
||||
// );
|
||||
// }
|
||||
|
||||
if (!window.localStorage.getItem("merchbannerclosed3")) {
|
||||
Notifications.addBanner(
|
||||
`Three new merch designs, available at <a target="_blank" href="https://www.monkeytype.store/unisex-men-s-t-shirts/">monkeytype.store</a>`,
|
||||
`Limited Monkey Things merch - <a target="_blank" href="https://www.monkeytype.store/listing/monkey-things?product=387/">monkeytype.store</a>`,
|
||||
1,
|
||||
"images/cutoutbanner.png",
|
||||
"images/monkeythings2.png",
|
||||
false,
|
||||
() => {
|
||||
window.localStorage.setItem("merchbannerclosed2", "true");
|
||||
window.localStorage.setItem("merchbannerclosed3", "true");
|
||||
},
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
$("#centerContent")
|
||||
.css("opacity", "0")
|
||||
.removeClass("hidden")
|
||||
|
|
BIN
frontend/static/images/monkeythings2.png
Normal file
BIN
frontend/static/images/monkeythings2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 96 KiB |
Loading…
Reference in a new issue