mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-03-21 17:54:13 -05:00
Display the time when results will be available
This commit is contained in:
parent
084f4b29ea
commit
abecc207c7
|
|
@ -35,6 +35,18 @@
|
|||
Splatfest starts in {{ duration(date.start) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="font-splatoon2">
|
||||
<div class="text-3xl font-splatoon1 text-white">Results</div>
|
||||
<div v-if="isPast(results)">
|
||||
Results are now available in game!
|
||||
</div>
|
||||
<div v-else>
|
||||
Results will be available in-game
|
||||
at {{ formatTime(results) }}
|
||||
(in {{ duration(results) }})
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<img class="absolute -top-10 right-10 w-48 -rotate-3" src="@/assets/img/tape/tape-1.png" />
|
||||
|
|
@ -83,6 +95,8 @@ const dates = [
|
|||
},
|
||||
];
|
||||
|
||||
const results = new Date('28 Aug 2022 14:00:00 +0000');
|
||||
|
||||
function isPast(date) {
|
||||
return time.now >= date;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user