Update timeline

pull/1/head
Made Baruna 2022-02-06 00:43:02 +07:00
parent 0c8a0ca359
commit 5f01dbd825
3 changed files with 14 additions and 15 deletions

View File

@ -1,18 +1,4 @@
export const eventsData = [
[
{
name: '2.5 Special Program',
pos: '100% 85%',
image: 'special_program.jpg',
start: '2022-02-04 20:00:00',
end: '2022-02-12 00:00:00',
color: '#f0e5f6',
zoom: '150%',
url: 'https://www.twitch.tv/genshinimpactofficial',
startOnly: true,
timezoneDependent: true,
},
],
[
{
name: 'Let the Arataki Gang Show Begin Web Event',
@ -117,6 +103,19 @@ export const eventsData = [
url: 'https://www.hoyolab.com/article/1823190',
showOnHome: true,
},
{
name: 'Update Version 2.5',
pos: '100% 85%',
image: '2.5.jpg',
start: '2022-02-16 06:00:00',
end: '2022-02-24 00:00:00',
color: '#f0e5f6',
zoom: '150%',
url: 'https://youtu.be/S71sh48SaHc',
startOnly: true,
timezoneDependent: true,
showOnHome: true,
},
],
[
{

View File

@ -58,7 +58,7 @@
}
}
current.sort((a, b) => (dayjs(a.start).isAfter(dayjs(b.start)) ? 1 : -1));
current.sort((a, b) => (dayjs(a.end).isAfter(dayjs(b.end)) ? 1 : -1));
upcoming.sort((a, b) => (dayjs(a.start).isAfter(dayjs(b.start)) ? 1 : -1));
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB