Update banner and timeline

pull/17/head
Made Baruna 2023-07-26 02:38:42 +08:00
parent a13901524b
commit 511abbcd18
17 changed files with 191 additions and 15 deletions

View File

@ -872,6 +872,29 @@ export const banners = {
// version: '3.8', // version: '3.8',
// timezoneDependent: true, // timezoneDependent: true,
// }, // },
{
name: 'Drifting Luminescence',
image: 4,
shortName: 'Kokomi',
start: '2023-07-25 18:00:00',
end: '2023-08-15 17:59:59',
color: '#53caf3',
featured: ['sangonomiya_kokomi', 'wanderer'],
featuredRare: ['yanfei', 'faruzan', 'rosaria'],
version: '3.8',
},
// {
// name: 'From Ashes Reborn',
// image: 2,
// shortName: 'Wanderer',
// start: '2023-07-25 18:00:00',
// end: '2023-08-15 17:59:59',
// color: '#53caf3',
// featured: ['sangonomiya_kokomi', 'wanderer'],
// featuredRare: ['yanfei', 'faruzan', 'rosaria'],
// version: '3.8',
// timezoneDependent: true,
// },
], ],
weapons: [ weapons: [
{ {
@ -1467,6 +1490,18 @@ export const banners = {
color: '#ffb169', color: '#ffb169',
featured: ['song_of_broken_pines', 'lost_prayer_to_the_sacred_winds'], featured: ['song_of_broken_pines', 'lost_prayer_to_the_sacred_winds'],
featuredRare: ['the_alley_flash', 'alley_hunter', 'rainslasher', 'favonius_lance', 'eye_of_perception'], featuredRare: ['the_alley_flash', 'alley_hunter', 'rainslasher', 'favonius_lance', 'eye_of_perception'],
timezoneDependent: true,
version: '3.8',
},
{
name: 'Epitome Invocation',
image: 50,
shortName: 'Moonglow',
start: '2023-07-25 18:00:00',
end: '2023-08-15 17:59:59',
color: '#eae5e1',
featured: ['everlasting_moonglow', 'tulaytullahs_remembrance'],
featuredRare: ['wine_and_song', 'lions_roar', 'the_bell', 'dragons_bane', 'favonius_warbow'],
version: '3.8', version: '3.8',
}, },
], ],

View File

@ -603,4 +603,30 @@ export const bannersDual = {
version: '3.8', version: '3.8',
}, },
], ],
'Drifting Luminescence 4': [
{
name: 'Drifting Luminescence',
image: 4,
shortName: 'Kokomi',
start: '2023-07-25 18:00:00',
end: '2023-08-15 17:59:59',
color: '#53caf3',
featured: ['sangonomiya_kokomi', 'wanderer'],
featuredRare: ['yanfei', 'faruzan', 'rosaria'],
version: '3.8',
timezoneDependent: true,
},
{
name: 'From Ashes Reborn',
image: 2,
shortName: 'Wanderer',
start: '2023-07-25 18:00:00',
end: '2023-08-15 17:59:59',
color: '#53caf3',
featured: ['sangonomiya_kokomi', 'wanderer'],
featuredRare: ['yanfei', 'faruzan', 'rosaria'],
version: '3.8',
timezoneDependent: true,
},
],
}; };

View File

@ -1323,11 +1323,44 @@ export const events = [
name: "Adventurer's Trials: Advanced", name: "Adventurer's Trials: Advanced",
pos: '0% 50%', pos: '0% 50%',
zoom: '150%', zoom: '150%',
image: 'Adventurers Trials Advanced Temp.png', image: 'Adventurers Trials Advanced.jpg',
start: '2023-07-20 10:00:00', start: '2023-07-20 10:00:00',
end: '2023-07-31 03:59:59', end: '2023-07-31 03:59:59',
color: '#fffa86', color: '#fffa86',
url: 'https://www.hoyolab.com/article/19777607', url: 'https://www.hoyolab.com/article/20113425',
showOnHome: true,
},
{
name: 'Perilous Expedition',
pos: '0% 20%',
zoom: '200%',
image: 'Perilous Expedition.jpg',
start: '2023-07-27 10:00:00',
end: '2023-08-07 03:59:59',
color: '#edfbad',
url: 'https://www.hoyolab.com/article/20360979',
showOnHome: true,
},
{
name: 'Shared Sight',
pos: '0% 50%',
zoom: '100%',
image: 'Shared Sight Temp.png',
start: '2023-08-03 10:00:00',
end: '2023-08-14 03:59:59',
color: '#d1f6a2',
url: 'https://www.hoyolab.com/article/20180483',
showOnHome: true,
},
{
name: 'Overflowing Mastery',
pos: '0% 50%',
image: 'overflowing_mastery.jpg',
start: '2023-08-07 04:00:00',
end: '2023-08-14 03:59:59',
color: '#f5debc',
zoom: '200%',
url: 'https://www.hoyolab.com/article/20180483',
showOnHome: true, showOnHome: true,
}, },
]; ];

View File

@ -1,4 +1,28 @@
export const eventsData = [ export const eventsData = [
[
{
name: 'Perilous Expedition',
pos: '0% 20%',
zoom: '200%',
image: 'Perilous Expedition.jpg',
start: '2023-07-27 10:00:00',
end: '2023-08-07 03:59:59',
color: '#edfbad',
url: 'https://www.hoyolab.com/article/20360979',
showOnHome: true,
},
{
name: 'Overflowing Mastery',
pos: '0% 50%',
image: 'overflowing_mastery.jpg',
start: '2023-08-07 04:00:00',
end: '2023-08-14 03:59:59',
color: '#f5debc',
zoom: '200%',
url: 'https://www.hoyolab.com/article/20180483',
showOnHome: true,
},
],
[ [
{ {
name: "Divine Ingenuity: Collector's Chapter", name: "Divine Ingenuity: Collector's Chapter",
@ -14,12 +38,23 @@ export const eventsData = [
{ {
name: "Adventurer's Trials: Advanced", name: "Adventurer's Trials: Advanced",
pos: '0% 50%', pos: '0% 50%',
zoom: '150%', zoom: '200%',
image: 'Adventurers Trials Advanced Temp.png', image: 'Adventurers Trials Advanced.jpg',
start: '2023-07-20 10:00:00', start: '2023-07-20 10:00:00',
end: '2023-07-31 03:59:59', end: '2023-07-31 03:59:59',
color: '#fffa86', color: '#fffa86',
url: 'https://www.hoyolab.com/article/19777607', url: 'https://www.hoyolab.com/article/20113425',
showOnHome: true,
},
{
name: 'Shared Sight',
pos: '0% 50%',
zoom: '100%',
image: 'Shared Sight Temp.png',
start: '2023-08-03 10:00:00',
end: '2023-08-14 03:59:59',
color: '#d1f6a2',
url: 'https://www.hoyolab.com/article/20180483',
showOnHome: true, showOnHome: true,
}, },
], ],
@ -95,6 +130,29 @@ export const eventsData = [
showOnHome: true, showOnHome: true,
timezoneDependent: true, timezoneDependent: true,
}, },
{
name: 'Born of Ocean Swell - Eula Banner',
pos: '10% 15%',
zoom: '150%',
image: 'Born of Ocean Swell 3.jpg',
start: '2023-07-05 06:00:00',
end: '2023-07-25 17:59:59',
color: '#A6D6E0',
url: 'https://www.hoyolab.com/article/19771439',
showOnHome: true,
timezoneDependent: true,
},
{
name: 'Drifting Luminescence - Kokomi Banner',
pos: '10% 15%',
zoom: '150%',
image: 'Drifting Luminescence 4.jpg',
start: '2023-07-25 18:00:00',
end: '2023-08-15 17:59:59',
color: '#53caf3',
url: 'https://www.hoyolab.com/article/20180298',
showOnHome: true,
},
], ],
[ [
{ {
@ -132,6 +190,17 @@ export const eventsData = [
showOnHome: true, showOnHome: true,
timezoneDependent: true, timezoneDependent: true,
}, },
{
name: 'From Ashes Reborn - Wanderer Banner',
pos: '10% 15%',
zoom: '150%',
image: 'From Ashes Reborn 2.jpg',
start: '2023-07-25 18:00:00',
end: '2023-08-15 17:59:59',
color: '#53caf3',
url: 'https://www.hoyolab.com/article/20180298',
showOnHome: true,
},
], ],
[ [
{ {
@ -169,6 +238,17 @@ export const eventsData = [
showOnHome: true, showOnHome: true,
timezoneDependent: true, timezoneDependent: true,
}, },
{
name: 'Epitome Invocation - Weapon Banner',
pos: '30% 35%',
zoom: '150%',
image: 'Epitome Invocation 50.jpg',
start: '2023-07-25 18:00:00',
end: '2023-08-15 17:59:59',
color: '#FFAA4B',
url: 'https://www.hoyolab.com/article/20180298',
showOnHome: true,
},
], ],
[ [
{ {

View File

@ -13,25 +13,25 @@
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();
const featured = { const featured = {
klee: { wanderer: {
name: 'Klee', name: 'Wanderer',
rarity: 'legendary', rarity: 'legendary',
count: 0, count: 0,
average: '...', average: '...',
percentage: '...', percentage: '...',
}, },
eula: { sangonomiya_kokomi: {
name: 'Eula', name: 'Sangonomiya Kokomi',
rarity: 'legendary', rarity: 'legendary',
count: 0, count: 0,
average: '...', average: '...',
percentage: '...', percentage: '...',
}, },
}; };
const bannerId = 300050; const bannerId = 300051;
const image = 'eula_klee.png'; const image = 'wanderer_kokomi.png';
const width = 800; const width = 800;
const height = 515; const height = 409;
let loading = true; let loading = true;
let user = ''; let user = '';

View File

@ -29,6 +29,8 @@
return 'pale_flame'; return 'pale_flame';
case '+80_em': case '+80_em':
return 'gilded_dreams'; return 'gilded_dreams';
case '+15%_anemo_dmg_set':
return 'viridescent_venerer';
default: default:
return artifact; return artifact;
} }
@ -128,7 +130,7 @@
</div> </div>
<a <a
href="/characters/{id}" href="/characters/{id}"
class="flex justify-end items-center self-end lg:self-start text-white mt-4 class="flex justify-end items-center self-end lg:self-start text-white mt-4
bg-background-secondary rounded-xl py-2 px-4 hover:bg-background transition-colors duration-100" bg-background-secondary rounded-xl py-2 px-4 hover:bg-background transition-colors duration-100"
> >
{characters[id].name} Build {characters[id].name} Build

View File

@ -1,6 +1,6 @@
<script context="module"> <script context="module">
export async function load({ fetch }) { export async function load({ fetch }) {
const promoted = ['eula', 'klee']; const promoted = ['sangonomiya_kokomi', 'wanderer'];
const builds = {}; const builds = {};
for (const p of promoted) { for (const p of promoted) {
const response = await fetch(`/characters/build/${p}.json`); const response = await fetch(`/characters/build/${p}.json`);
@ -95,7 +95,7 @@
{/if} {/if}
<Achievement on:done={onDone} /> <Achievement on:done={onDone} />
<Furnishing on:done={onDone} /> <Furnishing on:done={onDone} />
<Twitter on:done={onDone} /> <!-- <Twitter on:done={onDone} /> -->
<!-- <div class="flex flex-col space-y-4"> <!-- <div class="flex flex-col space-y-4">
</div> --> </div> -->
</Masonry> </Masonry>

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 KiB