From 6a0f59a1ad0906db9f37c8a236eea6bc0b20405b Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Sun, 4 Apr 2021 03:08:50 +0800 Subject: [PATCH] Update homepage --- src/locales/en.json | 8 +++++- src/routes/_index/item.svelte | 52 +++++++++++++++++++---------------- src/routes/_index/wish.svelte | 2 +- 3 files changed, 36 insertions(+), 26 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index 2f35af51..940d6be7 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -35,7 +35,8 @@ }, "items": { "title": "Farmable Today", - "detail": "Items" + "detail": "Items", + "sunday": "Sunday can farm all items 😁" }, "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!", @@ -455,5 +456,10 @@ ], "kofi": "Support me on Ko-fi", "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." } } \ No newline at end of file diff --git a/src/routes/_index/item.svelte b/src/routes/_index/item.svelte index 577b238f..fe4a9d3e 100644 --- a/src/routes/_index/item.svelte +++ b/src/routes/_index/item.svelte @@ -56,34 +56,38 @@

{$t('home.items.title')}

- - {#each Object.entries(characterItems) as [id, characters]} + {#if today === 'sunday'} +
{$t('home.items.sunday')}
+ {:else} +
+ {#each Object.entries(characterItems) as [id, characters]} + + + + + {/each} - - - {/each} - - - -
+ {id} + + {#each characters as char} + {char} + {/each} +
- {id} - - {#each characters as char} - {char} + + {#each Object.entries(weaponItems) as [id, _]} +
+ {id} +
{/each}
- {#each Object.entries(weaponItems) as [id, _]} -
- {id} -
- {/each} -
+ + {/if} {$t('home.wish.latest')}

-
+