From eeb980f42cbddc49dfc14f02941863f425551d49 Mon Sep 17 00:00:00 2001 From: lukachi Date: Fri, 17 May 2024 16:31:00 +0300 Subject: [PATCH] upd design --- .env-development | 3 + .env-production | 3 + env-example | 13 +- index.html | 14 +- package.json | 2 +- src/common/LangSwitcher.tsx | 16 +- src/common/NoDataViewer.tsx | 2 +- src/config.ts | 4 + src/helpers/format.ts | 17 +- src/hooks/translate.ts | 6 +- src/locales/index.ts | 3 + src/locales/resources.ts | 6 - src/locales/resources/en.json | 72 ++++-- src/locales/resources/ru.json | 29 --- .../VotingsId/components/AppRequestModal.tsx | 42 ++-- .../components/VotingProccessModal.tsx | 35 +-- .../components/VotingAlive/index.tsx | 16 +- .../VotingBeforeRegistration/index.tsx | 7 +- .../components/VotingRegistration/index.tsx | 19 +- .../VotingRegistrationEnd/index.tsx | 45 ++-- src/pages/Votings/pages/VotingsId/index.tsx | 64 ++--- src/pages/Votings/pages/VotingsList/index.tsx | 15 +- src/store/modules/ui.module.ts | 4 +- static/branding/android-chrome-192x192.png | Bin 4225 -> 4799 bytes static/branding/android-chrome-256x256.png | Bin 0 -> 3940 bytes static/branding/android-chrome-512x512.png | Bin 10454 -> 21562 bytes static/branding/apple-touch-icon.png | Bin 3974 -> 4262 bytes static/branding/favicon-16x16.png | Bin 334 -> 369 bytes static/branding/favicon-32x32.png | Bin 624 -> 592 bytes static/branding/favicon.ico | Bin 15406 -> 15406 bytes static/branding/favicon.png | Bin 624 -> 592 bytes static/branding/logo-sign-in.svg | 24 -- static/branding/logo.svg | 6 +- static/branding/mstile-150x150.png | Bin 4225 -> 4262 bytes static/branding/og-image.jpg | Bin 523789 -> 0 bytes static/branding/og-img.png | Bin 0 -> 37291 bytes static/branding/safari-pinned-tab.svg | 32 +-- static/branding/site.webmanifest | 1 + static/imgs/app-bg.png | Bin 215792 -> 0 bytes static/imgs/default-profile-img.png | Bin 1531 -> 0 bytes static/site.webmanifest | 4 +- yarn.lock | 226 +++++++++--------- 42 files changed, 383 insertions(+), 347 deletions(-) delete mode 100644 src/locales/resources/ru.json create mode 100644 static/branding/android-chrome-256x256.png delete mode 100644 static/branding/logo-sign-in.svg delete mode 100644 static/branding/og-image.jpg create mode 100644 static/branding/og-img.png create mode 100644 static/branding/site.webmanifest delete mode 100644 static/imgs/app-bg.png delete mode 100644 static/imgs/default-profile-img.png diff --git a/.env-development b/.env-development index 25a23b8..75666b4 100644 --- a/.env-development +++ b/.env-development @@ -7,3 +7,6 @@ VITE_API_URL=https://api.stage.freedomtool.org VITE_RPC_URL='https://rpc.qtestnet.org' VITE_VOTING_REGISTRY_CONTRACT_ADDRESS=0xECB5371C727a664160c4F4360af77F0Fe4aeb7F9 VITE_VOTING_DEPLOYER_CONTRACT_ADDRESS=0xf41ceE234219D6cc3d90A6996dC3276aD378cfCF + +VITE_APP_STORE_LINK=https://apps.apple.com/us/app/freedom-tool/id6477800949 +VITE_APP_DOMAIN= diff --git a/.env-production b/.env-production index eae493d..5a9ceea 100644 --- a/.env-production +++ b/.env-production @@ -6,3 +6,6 @@ VITE_API_URL=https://api.stage.freedomtool.org VITE_RPC_URL='https://rpc.qtestnet.org' VITE_VOTING_REGISTRY_CONTRACT_ADDRESS=0xECB5371C727a664160c4F4360af77F0Fe4aeb7F9 VITE_VOTING_DEPLOYER_CONTRACT_ADDRESS=0xf41ceE234219D6cc3d90A6996dC3276aD378cfCF + +VITE_APP_STORE_LINK=https://apps.apple.com/us/app/freedom-tool/id6477800949 +VITE_APP_DOMAIN= diff --git a/env-example b/env-example index d161ccf..5cba707 100644 --- a/env-example +++ b/env-example @@ -1,7 +1,12 @@ VITE_MODE=development VITE_PORT=8095 -VITE_APP_NAME='Voting App' -VITE_API_URL=https://api.stage.freedomtool.org -VITE_VOTING_REGISTRY_CONTRACT_ADDRESS=0xba6ba925C97d5EeE410BdD8e7950653e22E3CE73 -VITE_VOTING_DEPLOYER_CONTRACT_ADDRESS=0xcca19442F5b3e5Fa71aaE69C092aC280e81Fd39f +VITE_APP_NAME= +VITE_API_URL= + +VITE_RPC_URL= +VITE_VOTING_REGISTRY_CONTRACT_ADDRESS= +VITE_VOTING_DEPLOYER_CONTRACT_ADDRESS= + +VITE_APP_STORE_LINK= +VITE_APP_DOMAIN= diff --git a/index.html b/index.html index d148dcd..76dd367 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - Freedomtool App + Freedomtool Voting App