mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2024-10-23 17:36:30 +02:00
Update homepage
This commit is contained in:
parent
5f5ef4c04a
commit
6a0f59a1ad
3 changed files with 36 additions and 26 deletions
|
@ -35,7 +35,8 @@
|
||||||
},
|
},
|
||||||
"items": {
|
"items": {
|
||||||
"title": "Farmable Today",
|
"title": "Farmable Today",
|
||||||
"detail": "Items"
|
"detail": "Items",
|
||||||
|
"sunday": "Sunday can farm all items 😁"
|
||||||
},
|
},
|
||||||
"calculator": {
|
"calculator": {
|
||||||
"title": "🧮 Calculate Character and Weapons ascension material and talent book! All the calculations can be added to the Todo list, it will show you how much resin you need too!",
|
"title": "🧮 Calculate Character and Weapons ascension material and talent book! All the calculations can be added to the Todo list, it will show you how much resin you need too!",
|
||||||
|
@ -455,5 +456,10 @@
|
||||||
],
|
],
|
||||||
"kofi": "Support me on Ko-fi",
|
"kofi": "Support me on Ko-fi",
|
||||||
"trakteer": "Support me on Trakteer"
|
"trakteer": "Support me on Trakteer"
|
||||||
|
},
|
||||||
|
"reminder": {
|
||||||
|
"title": "Reminder Notification",
|
||||||
|
"notSupported": "Your browser does not support push notification, please try other browser!",
|
||||||
|
"blocked": "Notification is blocked, the reminder notification will not work! Please enable it on your browser."
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -56,34 +56,38 @@
|
||||||
|
|
||||||
<div class="bg-item rounded-xl p-4 flex flex-col">
|
<div class="bg-item rounded-xl p-4 flex flex-col">
|
||||||
<p class="text-white mb-2">{$t('home.items.title')}</p>
|
<p class="text-white mb-2">{$t('home.items.title')}</p>
|
||||||
<table>
|
{#if today === 'sunday'}
|
||||||
{#each Object.entries(characterItems) as [id, characters]}
|
<div class="text-white">{$t('home.items.sunday')}</div>
|
||||||
|
{:else}
|
||||||
|
<table>
|
||||||
|
{#each Object.entries(characterItems) as [id, characters]}
|
||||||
|
<tr>
|
||||||
|
<td class="border-b border-gray-700 h-14 w-14 pr-2 py-2 align-middle">
|
||||||
|
<img class="h-full" src="/images/items/{id}.png" alt={id} title={id} />
|
||||||
|
</td>
|
||||||
|
<td class="border-b border-gray-700 pt-2 align-middle">
|
||||||
|
{#each characters as char}
|
||||||
|
<img
|
||||||
|
class="h-10 w-auto mb-2 mr-2 inline rounded-full"
|
||||||
|
src="/images/characters/{char}.png"
|
||||||
|
alt={char}
|
||||||
|
title={char}
|
||||||
|
/>
|
||||||
|
{/each}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{/each}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="border-b border-gray-700 h-14 w-14 pr-2 py-2 align-middle">
|
<td colspan="2" class="py-2 align-middle">
|
||||||
<img class="h-full" src="/images/items/{id}.png" alt={id} title={id} />
|
{#each Object.entries(weaponItems) as [id, _]}
|
||||||
</td>
|
<div class="h-10 w-10 mr-4 inline-block">
|
||||||
<td class="border-b border-gray-700 pt-2 align-middle">
|
<img class="h-full" src="/images/items/{id}.png" alt={id} title={id} />
|
||||||
{#each characters as char}
|
</div>
|
||||||
<img
|
|
||||||
class="h-10 w-auto mb-2 mr-2 inline rounded-full"
|
|
||||||
src="/images/characters/{char}.png"
|
|
||||||
alt={char}
|
|
||||||
title={char}
|
|
||||||
/>
|
|
||||||
{/each}
|
{/each}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/each}
|
</table>
|
||||||
<tr>
|
{/if}
|
||||||
<td colspan="2" class="py-2 align-middle">
|
|
||||||
{#each Object.entries(weaponItems) as [id, _]}
|
|
||||||
<div class="h-10 w-10 mr-4 inline-block">
|
|
||||||
<img class="h-full" src="/images/items/{id}.png" alt={id} title={id} />
|
|
||||||
</div>
|
|
||||||
{/each}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<a
|
<a
|
||||||
href="/items"
|
href="/items"
|
||||||
class="flex justify-end items-center self-end lg:self-start text-white mt-4 bg-background-secondary rounded-xl py-2 px-4
|
class="flex justify-end items-center self-end lg:self-start text-white mt-4 bg-background-secondary rounded-xl py-2 px-4
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
{:else}
|
{:else}
|
||||||
<p class="text-white mb-2">{$t('home.wish.latest')}</p>
|
<p class="text-white mb-2">{$t('home.wish.latest')}</p>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<div class="h-16 w-16" style="min-width: 4rem;">
|
<div class="h-16 w-16 mr-1" style="min-width: 4rem;">
|
||||||
<img
|
<img
|
||||||
class="h-full w-auto"
|
class="h-full w-auto"
|
||||||
src={latestPull.type === 'character'
|
src={latestPull.type === 'character'
|
||||||
|
|
Loading…
Reference in a new issue