Update homepage

This commit is contained in:
Made Baruna 2022-02-16 09:02:08 +07:00
parent 72288e3edd
commit c8ec385386
5 changed files with 9 additions and 13 deletions

View file

@ -13,23 +13,16 @@
const dispatch = createEventDispatcher();
const featured = {
zhongli: {
name: 'Zhongli',
rarity: 'legendary',
count: 0,
average: '...',
percentage: '...',
},
ganyu: {
name: 'Ganyu',
yae_miko: {
name: 'Yae Miko',
rarity: 'legendary',
count: 0,
average: '...',
percentage: '...',
},
};
const bannerId = 300025;
const image = 'zhongliganyu.png';
const bannerId = 300026;
const image = 'yae.png';
let loading = true;
let user = '';

View file

@ -9,7 +9,7 @@
const dispatch = createEventDispatcher();
const promoted = ['ganyu', 'zhongli'];
const promoted = ['thoma', 'fischl', 'diona'];
let current = 0;
async function change(index) {
@ -27,7 +27,10 @@
<div class="bg-item rounded-xl p-4 flex flex-col">
<div class="flex items-center">
{#each promoted as item, i}
<button class="pill {i === 0 ? 'mr-2' : ''} {current === i ? 'active' : ''}" on:click={() => change(i)}>
<button
class="pill {i < promoted.length - 1 ? 'mr-2' : ''} {current === i ? 'active' : ''}"
on:click={() => change(i)}
>
{characters[item].name}
</button>
{/each}

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 KiB

BIN
static/images/home/yae.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB