From 90e49ba7fa7b2ff1f2d39301cc322603c2cac7b2 Mon Sep 17 00:00:00 2001 From: Rico Date: Thu, 28 Jul 2022 19:43:51 +0800 Subject: [PATCH] react-app: Add license and github url to footer refs #328 --- react-app/src/components/Footer/Footer.tsx | 137 ++++++++++++--------- react-app/src/i18n/translations/en.json | 3 +- react-app/src/i18n/translations/zh.json | 3 +- 3 files changed, 86 insertions(+), 57 deletions(-) diff --git a/react-app/src/components/Footer/Footer.tsx b/react-app/src/components/Footer/Footer.tsx index fae57dd0..5535ee20 100644 --- a/react-app/src/components/Footer/Footer.tsx +++ b/react-app/src/components/Footer/Footer.tsx @@ -16,57 +16,53 @@ const Footer: React.FC = () => { "text-sm", "leading-5", "font-normal", + "items-center", "text-gray-500", "desktop:flex", - "desktop:items-center", + "desktop:justify-between", "desktop:mt-5" )} > -

- -

-

- -

+

+ +

+ + +
- {Config.footerLinks.tokenLinks.map((token) => ( - - {token.name} - - ))} -
- {Config.footerLinks.contactSupport != null && ( +

+ +

{ "desktop:px-3" )} > -

- -

- ( + + {token.name} + + ))} +
+ {Config.footerLinks.contactSupport != null && ( +
-
- )} + > +

+ +

+ + + )} + ); diff --git a/react-app/src/i18n/translations/en.json b/react-app/src/i18n/translations/en.json index 2f369c4f..841f2668 100644 --- a/react-app/src/i18n/translations/en.json +++ b/react-app/src/i18n/translations/en.json @@ -221,7 +221,8 @@ "auth.loginFailure": "Failed to login, please try again", "footer.contactSupport": "Contact Support", "footer.getToken": "Get Token", - "footer.likecoin": "© {year} LikeCoin", + "footer.github": "GitHub", + "footer.license": "Apache License", "footer.needHelp": "Need help?", "form.validation.address.invalidAddress": "Invalid address", "form.validation.address.invalidPrefix": "Invalid address prefix, please use address with prefix `{prefix}`", diff --git a/react-app/src/i18n/translations/zh.json b/react-app/src/i18n/translations/zh.json index 17ecf33d..e1e4ca75 100644 --- a/react-app/src/i18n/translations/zh.json +++ b/react-app/src/i18n/translations/zh.json @@ -221,7 +221,8 @@ "auth.loginFailure": "Failed to login, please try again", "footer.contactSupport": "Contact Support", "footer.getToken": "Get Token", - "footer.likecoin": "© {year} LikeCoin", + "footer.github": "GitHub", + "footer.license": "Apache License", "footer.needHelp": "Need help?", "form.validation.address.invalidAddress": "Invalid address", "form.validation.address.invalidPrefix": "Invalid address prefix, please use address with prefix `{prefix}`",