Fix banner image

pull/1/head
Made Baruna 2021-03-19 02:42:30 +08:00
parent c7389bec05
commit 2210526222
23 changed files with 26 additions and 1 deletions

View File

@ -2,20 +2,27 @@ export const banners = {
beginners: [
{
name: "Beginners' Wish",
shortName: 'Beginners\' Wish',
image: 1,
start: '2000-01-01 00:00:00',
end: '2200-01-01 00:00:00',
color: '#FFFFFF',
},
],
standard: [
{
name: 'Wanderlust Invocation',
shortName: 'Wanderlust Invocation',
image: 1,
start: '2000-01-01 00:00:00',
end: '2200-01-01 00:00:00',
color: '#FFFFFF',
},
],
characters: [
{
name: 'Ballad in Goblets',
image: 1,
shortName: 'Venti',
start: '2020-09-28 00:00:00',
end: '2020-10-18 18:00:00',
@ -23,6 +30,7 @@ export const banners = {
},
{
name: 'Sparkling Steps',
image: 1,
shortName: 'Klee',
start: '2020-10-20 18:00:00',
end: '2020-11-10 18:00:00',
@ -30,6 +38,7 @@ export const banners = {
},
{
name: 'Farewell of Snezhnaya',
image: 1,
shortName: 'Tartaglia',
start: '2020-11-11 06:00:00',
end: '2020-12-01 18:00:00',
@ -37,6 +46,7 @@ export const banners = {
},
{
name: 'Gentry of Hermitage',
image: 1,
shortName: 'Zhongli',
start: '2020-12-01 18:00:00',
end: '2020-12-22 15:00:00',
@ -44,6 +54,7 @@ export const banners = {
},
{
name: 'Secretum Secretorum',
image: 1,
shortName: 'Albedo',
start: '2020-12-23 10:00:00',
end: '2021-01-12 16:00:00',
@ -51,6 +62,7 @@ export const banners = {
},
{
name: 'Adrift in the Harbor',
image: 1,
shortName: 'Ganyu',
start: '2021-01-12 18:00:00',
end: '2021-02-02 15:00:00',
@ -58,6 +70,7 @@ export const banners = {
},
{
name: 'Invitation to Mundane Life',
image: 1,
shortName: 'Xiao',
start: '2021-02-03 06:00:00',
end: '2021-02-17 16:00:00',
@ -65,6 +78,7 @@ export const banners = {
},
{
name: 'Dance of Lanterns',
image: 1,
shortName: 'Keqing',
start: '2021-02-17 18:00:00',
end: '2021-03-02 16:00:00',
@ -72,6 +86,7 @@ export const banners = {
},
{
name: 'Moment of Bloom',
image: 1,
shortName: 'Hu Tao',
start: '2021-03-02 18:00:00',
end: '2021-03-16 15:00:00',
@ -79,6 +94,7 @@ export const banners = {
},
{
name: 'Ballad in Goblets',
image: 2,
shortName: 'Venti',
start: '2021-03-17 06:00:00',
end: '2021-04-06 16:00:00',
@ -88,6 +104,7 @@ export const banners = {
weapons: [
{
name: 'Epitome Invocation',
image: 1,
start: '2020-09-28 00:00:00',
end: '2020-10-18 18:00:00',
shortName: 'Amos',
@ -95,6 +112,7 @@ export const banners = {
},
{
name: 'Epitome Invocation',
image: 2,
start: '2020-10-20 18:00:00',
end: '2020-11-10 18:00:00',
shortName: 'WGS',
@ -102,6 +120,7 @@ export const banners = {
},
{
name: 'Epitome Invocation',
image: 3,
start: '2020-11-11 06:00:00',
end: '2020-12-01 18:00:00',
shortName: 'Skyward',
@ -109,6 +128,7 @@ export const banners = {
},
{
name: 'Epitome Invocation',
image: 4,
start: '2020-12-01 18:00:00',
end: '2020-12-22 15:00:00',
shortName: 'Vortex',
@ -116,6 +136,7 @@ export const banners = {
},
{
name: 'Epitome Invocation',
image: 5,
start: '2020-12-23 10:00:00',
end: '2021-01-12 16:00:00',
shortName: 'Summit',
@ -123,6 +144,7 @@ export const banners = {
},
{
name: 'Epitome Invocation',
image: 6,
start: '2021-01-12 18:00:00',
end: '2021-02-02 15:00:00',
shortName: 'Amos',
@ -130,6 +152,7 @@ export const banners = {
},
{
name: 'Epitome Invocation',
image: 7,
start: '2021-02-03 06:00:00',
end: '2021-02-23 16:00:00',
shortName: 'Primordial',
@ -137,6 +160,7 @@ export const banners = {
},
{
name: 'Epitome Invocation',
image: 8,
start: '2021-02-23 18:00:00',
end: '2021-03-16 15:00:00',
shortName: 'Homa',
@ -144,6 +168,7 @@ export const banners = {
},
{
name: 'Epitome Invocation',
image: 9,
start: '2021-03-17 06:00:00',
end: '2021-04-06 16:00:00',
shortName: 'Elegy',

View File

@ -67,7 +67,7 @@
const start = dayjs(e.start, 'YYYY-MM-DD HH:mm:ss').subtract(diff, 'hour');
const end = dayjs(e.end, 'YYYY-MM-DD HH:mm:ss').subtract(diff, 'hour');
const image = `/images/banners/${e.name} ${start.format('YYYY-MM-DD')}.png`;
const image = `/images/banners/${e.name} ${e.image}.png`;
return {
...e,

View File

Before

Width:  |  Height:  |  Size: 489 KiB

After

Width:  |  Height:  |  Size: 489 KiB

View File

Before

Width:  |  Height:  |  Size: 478 KiB

After

Width:  |  Height:  |  Size: 478 KiB

View File

Before

Width:  |  Height:  |  Size: 515 KiB

After

Width:  |  Height:  |  Size: 515 KiB

View File

Before

Width:  |  Height:  |  Size: 286 KiB

After

Width:  |  Height:  |  Size: 286 KiB

View File

Before

Width:  |  Height:  |  Size: 596 KiB

After

Width:  |  Height:  |  Size: 596 KiB

View File

Before

Width:  |  Height:  |  Size: 391 KiB

After

Width:  |  Height:  |  Size: 391 KiB

View File

Before

Width:  |  Height:  |  Size: 387 KiB

After

Width:  |  Height:  |  Size: 387 KiB

View File

Before

Width:  |  Height:  |  Size: 447 KiB

After

Width:  |  Height:  |  Size: 447 KiB

View File

Before

Width:  |  Height:  |  Size: 417 KiB

After

Width:  |  Height:  |  Size: 417 KiB

View File

Before

Width:  |  Height:  |  Size: 405 KiB

After

Width:  |  Height:  |  Size: 405 KiB

View File

Before

Width:  |  Height:  |  Size: 450 KiB

After

Width:  |  Height:  |  Size: 450 KiB

View File

Before

Width:  |  Height:  |  Size: 364 KiB

After

Width:  |  Height:  |  Size: 364 KiB

View File

Before

Width:  |  Height:  |  Size: 356 KiB

After

Width:  |  Height:  |  Size: 356 KiB

View File

Before

Width:  |  Height:  |  Size: 393 KiB

After

Width:  |  Height:  |  Size: 393 KiB

View File

Before

Width:  |  Height:  |  Size: 508 KiB

After

Width:  |  Height:  |  Size: 508 KiB

View File

Before

Width:  |  Height:  |  Size: 297 KiB

After

Width:  |  Height:  |  Size: 297 KiB

View File

Before

Width:  |  Height:  |  Size: 564 KiB

After

Width:  |  Height:  |  Size: 564 KiB

View File

Before

Width:  |  Height:  |  Size: 513 KiB

After

Width:  |  Height:  |  Size: 513 KiB

View File

Before

Width:  |  Height:  |  Size: 529 KiB

After

Width:  |  Height:  |  Size: 529 KiB

View File

Before

Width:  |  Height:  |  Size: 467 KiB

After

Width:  |  Height:  |  Size: 467 KiB

View File

Before

Width:  |  Height:  |  Size: 418 KiB

After

Width:  |  Height:  |  Size: 418 KiB