Update homepage
parent
32b468375d
commit
84f22b0cea
|
@ -13,23 +13,23 @@
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
||||||
const featured = {
|
const featured = {
|
||||||
yoimiya: {
|
tartaglia: {
|
||||||
name: 'Yoimiya',
|
name: 'Tartaglia',
|
||||||
rarity: 'legendary',
|
rarity: 'legendary',
|
||||||
count: 0,
|
count: 0,
|
||||||
average: '...',
|
average: '...',
|
||||||
percentage: '...',
|
percentage: '...',
|
||||||
},
|
},
|
||||||
nahida: {
|
yae_miko: {
|
||||||
name: 'Nahida',
|
name: 'Yae Miko',
|
||||||
rarity: 'legendary',
|
rarity: 'legendary',
|
||||||
count: 0,
|
count: 0,
|
||||||
average: '...',
|
average: '...',
|
||||||
percentage: '...',
|
percentage: '...',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const bannerId = 300038;
|
const bannerId = 300039;
|
||||||
const image = 'nahida_yoimiya.png';
|
const image = 'tartaglia_yae.png';
|
||||||
const width = 800;
|
const width = 800;
|
||||||
const height = 595;
|
const height = 595;
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
class="flex flex-col pt-2 max-w-[60%]"
|
class="flex flex-col pt-2 max-w-[60%]"
|
||||||
style="background: linear-gradient(270deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 17%, rgba(0,0,0,0.75) 70%, rgba(0,0,0,0) 100%);"
|
style="background: linear-gradient(270deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 17%, rgba(0,0,0,0.75) 70%, rgba(0,0,0,0) 100%);"
|
||||||
>
|
>
|
||||||
<h3 class="text-3xl font-black leading-6 text-right {i === 0 ? 'ml-4' : ''}">
|
<h3 class="text-3xl font-black leading-6 text-right {i === 0 ? 'ml-4' : 'pr-4'}">
|
||||||
{#if loading}
|
{#if loading}
|
||||||
<Icon path={mdiLoading} spin size={0.8} />
|
<Icon path={mdiLoading} spin size={0.8} />
|
||||||
{:else}
|
{:else}
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
<p
|
<p
|
||||||
class="font-sm leading-2 whitespace-nowrap overflow-hidden text-ellipsis {i === 0
|
class="font-sm leading-2 whitespace-nowrap overflow-hidden text-ellipsis {i === 0
|
||||||
? 'ml-4 text-left'
|
? 'ml-4 text-left'
|
||||||
: 'text-right'}"
|
: 'pr-4 text-right'}"
|
||||||
style="direction: rtl;"
|
style="direction: rtl;"
|
||||||
>
|
>
|
||||||
{$t(item.name)}
|
{$t(item.name)}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script context="module">
|
<script context="module">
|
||||||
export async function load({ fetch }) {
|
export async function load({ fetch }) {
|
||||||
const promoted = ['yoimiya', 'noelle', 'razor', 'bennett'];
|
const promoted = ['tartaglia', 'yae_miko'];
|
||||||
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: 322 KiB |
Binary file not shown.
After Width: | Height: | Size: 535 KiB |
Binary file not shown.
After Width: | Height: | Size: 490 KiB |
Binary file not shown.
After Width: | Height: | Size: 327 KiB |
Loading…
Reference in New Issue