Update wish tally

This commit is contained in:
Made Baruna 2021-06-29 19:32:06 +07:00
parent 539007539e
commit 982e61dc80
No known key found for this signature in database
GPG key ID: 5AA5DA16AA5DCEAD
3 changed files with 30 additions and 20 deletions
src/routes
static/images/home

View file

@ -13,15 +13,15 @@
const dispatch = createEventDispatcher();
const featured = {
klee: {
kaedehara_kazuha: {
rarity: 'legendary',
count: 0,
average: '...',
percentage: '...',
},
};
const bannerId = 300014;
const image = 'klee.png';
const bannerId = 300015;
const image = 'kazuha.png';
let loading = true;
let user = '';
@ -48,6 +48,8 @@
}
}
console.log(featured);
loading = false;
} catch (err) {
console.error(err);
@ -59,7 +61,6 @@
await tick();
dispatch('done');
});
</script>
<div class="bg-item rounded-xl p-4 flex flex-col">
@ -80,7 +81,7 @@
{/if}
</h3>
<p class="ml-6 font-sm leading-2">
<span class="font-semibold">Klee</span>
<span class="font-semibold">Kazuha</span>
{$t('home.banner.summoned')}
</p>
</div>

View file

@ -10,7 +10,6 @@
function showOldTally(index) {
showOld[index] = true;
}
</script>
<svelte:head>
@ -26,6 +25,8 @@
</p>
<div class="px-4 md:px-8">
<ItemNew type="character" banner={banners.characters[14]} id={300015} featured={['kaedehara_kazuha']} />
<ItemNew type="weapon" banner={banners.weapons[13]} id={400014} featured={['freedom-sworn', 'skyward_atlas']} />
<ItemNew type="character" banner={banners.characters[13]} id={300014} featured={['klee']} />
<ItemNew
type="weapon"
@ -33,15 +34,23 @@
id={400013}
featured={['lost_prayer_to_the_sacred_winds', 'skyward_pride']}
/>
<ItemNew type="character" banner={banners.characters[12]} id={300013} featured={['eula']} />
<ItemNew
type="weapon"
banner={banners.weapons[11]}
id={400012}
featured={['song_of_broken_pines', 'aquila_favonia']}
/>
<ItemNew type="character" banner={banners.standard[0]} id={200001} />
{#if showOld[0]}
<ItemNew type="character" banner={banners.characters[12]} id={300013} featured={['eula']} />
<ItemNew
type="weapon"
banner={banners.weapons[11]}
id={400012}
featured={['song_of_broken_pines', 'aquila_favonia']}
/>
{:else}
<Button on:click={() => showOldTally(0)}>
{$t('wish.tally.show')}
{banners.characters[12].name} & {banners.weapons[11].name}
</Button>
<div class="mb-2" />
{/if}
{#if showOld[1]}
<ItemNew type="character" banner={banners.characters[11]} id={300012} featured={['zhongli', 'yanfei']} />
<ItemNew
type="weapon"
@ -50,13 +59,13 @@
featured={['summit_shaper', 'memory_of_dust']}
/>
{:else}
<Button on:click={() => showOldTally(0)}>
<Button on:click={() => showOldTally(1)}>
{$t('wish.tally.show')}
{banners.characters[11].name} & {banners.weapons[10].name}
</Button>
<div class="mb-2" />
{/if}
{#if showOld[1]}
{#if showOld[2]}
<Item type="character" banner={banners.characters[10]} id={300011} featured={['tartaglia', 'rosaria']} />
<Item
type="weapon"
@ -65,13 +74,13 @@
featured={['skyward_harp', 'lost_prayer_to_the_sacred_winds']}
/>
{:else}
<Button on:click={() => showOldTally(1)}>
<Button on:click={() => showOldTally(2)}>
{$t('wish.tally.show')}
{banners.characters[10].name} & {banners.weapons[9].name}
</Button>
<div class="mb-2" />
{/if}
{#if showOld[2]}
{#if showOld[3]}
<Item type="character" banner={banners.characters[9]} id={300010} featured={['venti']} />
<Item
type="weapon"
@ -80,17 +89,17 @@
featured={['skyward_harp', 'lost_prayer_to_the_sacred_winds']}
/>
{:else}
<Button on:click={() => showOldTally(2)}>
<Button on:click={() => showOldTally(3)}>
{$t('wish.tally.show')}
{banners.characters[9].name} & {banners.weapons[8].name}
</Button>
<div class="mb-2" />
{/if}
{#if showOld[3]}
{#if showOld[4]}
<Item type="character" banner={banners.characters[8]} id={300009} featured={['hu_tao']} />
<Item type="weapon" banner={banners.weapons[7]} id={400008} featured={['wolfs_gravestone', 'staff_of_homa']} />
{:else}
<Button on:click={() => showOldTally(3)}>
<Button on:click={() => showOldTally(4)}>
{$t('wish.tally.show')}
{banners.characters[8].name} & {banners.weapons[7].name}
</Button>

Binary file not shown.

After

(image error) Size: 289 KiB