From 44458e51188f30f69cfcb4a04c0f9e6be0557ef0 Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Sat, 10 Apr 2021 17:24:40 +0800 Subject: [PATCH] Update home --- package.json | 1 + src/locales/en.json | 4 ++++ src/locales/id.json | 4 ++++ src/routes/_index/twitter.svelte | 21 +++++++++++++++++++++ src/routes/index.svelte | 11 ++++++++++- yarn.lock | 5 +++++ 6 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 src/routes/_index/twitter.svelte diff --git a/package.json b/package.json index 06216b23..cbc75453 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "compression": "^1.7.1", "exceljs": "^4.2.1", "polka": "next", + "prettier": "^2.2.1", "sirv": "^1.0.0" }, "devDependencies": { diff --git a/src/locales/en.json b/src/locales/en.json index 1d16784e..3aad61d2 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -55,6 +55,10 @@ "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!", "detail": "Calculator" + }, + "twitter": { + "title": "Follow my Twitter, will occasionally post sneak peak what I currently develop and latest update to paimon.moe!", + "detail": "Follow Twitter" } }, "characters": { diff --git a/src/locales/id.json b/src/locales/id.json index 2819d2be..089cb6d5 100644 --- a/src/locales/id.json +++ b/src/locales/id.json @@ -55,6 +55,10 @@ "calculator": { "title": "🧮 Hitung Ascension dan Talent Book Karakter dan Senjata! Semua hasil perhitungan bisa ditambahkan ke daftar todo, dan juga akan menampilkan berapa resin yang kamu perlukan!", "detail": "Kalkulator" + }, + "twitter": { + "title": "Follow my Twitter, akan post tentang apa yang lagi di develop dan update terbaru tentang paimon.moe!", + "detail": "Follow Twitter" } }, "characters": { diff --git a/src/routes/_index/twitter.svelte b/src/routes/_index/twitter.svelte new file mode 100644 index 00000000..629167d6 --- /dev/null +++ b/src/routes/_index/twitter.svelte @@ -0,0 +1,21 @@ + + +
+

+ {$t('home.twitter.title')} +

+ + + {$t('home.twitter.detail')} + + +
diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 543a1f9d..6e18ad2c 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -1,6 +1,7 @@ @@ -46,6 +54,7 @@ + diff --git a/yarn.lock b/yarn.lock index dbd35ed8..c1b79bb4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2493,6 +2493,11 @@ postcss@^8.1.2: nanoid "^3.1.12" source-map "^0.6.1" +prettier@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5" + integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q== + pretty-hrtime@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz#b7e3ea42435a4c9b2759d99e0f201eb195802ee1"