mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2024-11-22 23:10:58 +01:00
Update homepage
This commit is contained in:
parent
72288e3edd
commit
c8ec385386
5 changed files with 9 additions and 13 deletions
|
@ -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 = '';
|
||||
|
|
|
@ -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}
|
||||
|
|
BIN
static/images/banners/Epitome Invocation 25.png
Normal file
BIN
static/images/banners/Epitome Invocation 25.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 399 KiB |
BIN
static/images/banners/Everbloom Violet 1.png
Normal file
BIN
static/images/banners/Everbloom Violet 1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 578 KiB |
BIN
static/images/home/yae.png
Normal file
BIN
static/images/home/yae.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 169 KiB |
Loading…
Reference in a new issue