Update homepage

pull/1/head
Made Baruna 2022-11-02 02:39:17 +07:00
parent c037864aac
commit f2d2788213
4 changed files with 10 additions and 8 deletions

View File

@ -13,25 +13,25 @@
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();
const featured = { const featured = {
nilou: { yoimiya: {
name: 'Nilou', name: 'Yoimiya',
rarity: 'legendary', rarity: 'legendary',
count: 0, count: 0,
average: '...', average: '...',
percentage: '...', percentage: '...',
}, },
albedo: { nahida: {
name: 'Albedo', name: 'Nahida',
rarity: 'legendary', rarity: 'legendary',
count: 0, count: 0,
average: '...', average: '...',
percentage: '...', percentage: '...',
}, },
}; };
const bannerId = 300037; const bannerId = 300038;
const image = 'nilou_albedo.png'; const image = 'nahida_yoimiya.png';
const width = 800; const width = 800;
const height = 490; const height = 595;
let loading = true; let loading = true;
let user = ''; let user = '';

View File

@ -25,6 +25,8 @@
return 'gladiators_finale'; return 'gladiators_finale';
case '+20%_energy_recharge': case '+20%_energy_recharge':
return 'emblem_of_severed_fate'; return 'emblem_of_severed_fate';
case '+25%_physical_dmg':
return 'pale_flame';
default: default:
return artifact; return artifact;
} }

View File

@ -1,6 +1,6 @@
<script context="module"> <script context="module">
export async function load({ fetch }) { export async function load({ fetch }) {
const promoted = ['albedo', 'xiangling', 'barbara', 'beidou']; const promoted = ['yoimiya', 'noelle', 'razor', 'bennett'];
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`);

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB