From 183e1918946208f85c8fd7904e94cf6e7964f08a Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Fri, 1 Nov 2024 11:19:31 +0800 Subject: [PATCH 1/8] Update indexer endpoint --- apps/helixbox-app/.env.mainnet | 2 +- apps/helixbox-app/.env.testnet | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/helixbox-app/.env.mainnet b/apps/helixbox-app/.env.mainnet index a62dabbe..9559488b 100644 --- a/apps/helixbox-app/.env.mainnet +++ b/apps/helixbox-app/.env.mainnet @@ -1,2 +1,2 @@ -VITE_GRAPHQL_ENDPOINT=https://apollo.helixbridge.app/graphql +VITE_GRAPHQL_ENDPOINT=https://apollo.helix.box/graphql VITE_NETWORK_TYPE=mainnet diff --git a/apps/helixbox-app/.env.testnet b/apps/helixbox-app/.env.testnet index 104031b3..642ce135 100644 --- a/apps/helixbox-app/.env.testnet +++ b/apps/helixbox-app/.env.testnet @@ -1,2 +1,2 @@ -VITE_GRAPHQL_ENDPOINT=https://apollo-test.helixbridge.app/graphql +VITE_GRAPHQL_ENDPOINT=https://apollo-test.helix.box/graphql VITE_NETWORK_TYPE=testnet From d794e8bd9cf4f55fa18f55ab1a049319a9fda9cd Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Fri, 1 Nov 2024 11:25:21 +0800 Subject: [PATCH 2/8] Scale products on PC --- .../src/components/homepage-products/index.tsx | 2 +- apps/helixbox-home/tailwind.config.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/helixbox-home/src/components/homepage-products/index.tsx b/apps/helixbox-home/src/components/homepage-products/index.tsx index 20f74bf0..0c63e12e 100644 --- a/apps/helixbox-home/src/components/homepage-products/index.tsx +++ b/apps/helixbox-home/src/components/homepage-products/index.tsx @@ -16,7 +16,7 @@ export default function HomepageProducts() { ))} -
+
diff --git a/apps/helixbox-home/tailwind.config.js b/apps/helixbox-home/tailwind.config.js index b895ce0d..10472556 100644 --- a/apps/helixbox-home/tailwind.config.js +++ b/apps/helixbox-home/tailwind.config.js @@ -22,10 +22,10 @@ export default { maxWidth: { "8xl": "90rem", }, - screens: { - xl: "1200px", - "2xl": "1200px", - }, + // screens: { + // xl: "1200px", + // "2xl": "1200px", + // }, keyframes: { "scroll-to-bottom": { "0%": { top: "1lh" }, From d56f39d46ab301f1f9f630fe0728957d5f956338 Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Fri, 1 Nov 2024 11:49:32 +0800 Subject: [PATCH 3/8] Fix footer testnet and mainnet link --- apps/helixbox-app/src/components/footer.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/helixbox-app/src/components/footer.tsx b/apps/helixbox-app/src/components/footer.tsx index ba4ae5ef..88c76a6e 100644 --- a/apps/helixbox-app/src/components/footer.tsx +++ b/apps/helixbox-app/src/components/footer.tsx @@ -33,17 +33,17 @@ function Links() { useEffect(() => { if (window.location.hostname === "app.helix.box") { - setNetwork((prev) => ({ ...prev, label: "Testnet", path: "https://testnet.app.helix.box" })); - } else if (window.location.hostname === "testnet.app.helix.box") { + setNetwork((prev) => ({ ...prev, label: "Testnet", path: "https://testnet-app.helix.box" })); + } else if (window.location.hostname === "testnet-app.helix.box") { setNetwork((prev) => ({ ...prev, label: "Mainnet", path: "https://app.helix.box" })); - } else if (window.location.hostname === "helix-stg-mainnet.vercel.app") { - setNetwork((prev) => ({ ...prev, label: "Testnet", path: "https://helix-stg-testnet.vercel.app" })); - } else if (window.location.hostname === "helix-stg-testnet.vercel.app") { - setNetwork((prev) => ({ ...prev, label: "Mainnet", path: "https://helix-stg-mainnet.vercel.app" })); - } else if (window.location.hostname === "helix-dev-mainnet.vercel.app") { - setNetwork((prev) => ({ ...prev, label: "Testnet", path: "https://helix-dev-testnet.vercel.app" })); - } else if (window.location.hostname === "helix-dev-testnet.vercel.app") { - setNetwork((prev) => ({ ...prev, label: "Mainnet", path: "https://helix-dev-mainnet.vercel.app" })); + } else if (window.location.hostname === "helixbox-stg-mainnet.vercel.app") { + setNetwork((prev) => ({ ...prev, label: "Testnet", path: "https://helixbox-stg-testnet.vercel.app" })); + } else if (window.location.hostname === "helixbox-stg-testnet.vercel.app") { + setNetwork((prev) => ({ ...prev, label: "Mainnet", path: "https://helixbox-stg-mainnet.vercel.app" })); + } else if (window.location.hostname === "helixbox-dev-mainnet.vercel.app") { + setNetwork((prev) => ({ ...prev, label: "Testnet", path: "https://helixbox-dev-testnet.vercel.app" })); + } else if (window.location.hostname === "helixbox-dev-testnet.vercel.app") { + setNetwork((prev) => ({ ...prev, label: "Mainnet", path: "https://helixbox-dev-mainnet.vercel.app" })); } else { setNetwork((prev) => ({ ...prev, label: "", path: "" })); } From 4744225beaaf57d2b3f99ebccf77482c40ada502 Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Fri, 1 Nov 2024 11:51:19 +0800 Subject: [PATCH 4/8] Remove home header logo transition --- apps/helixbox-home/src/components/homepage-header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/helixbox-home/src/components/homepage-header.tsx b/apps/helixbox-home/src/components/homepage-header.tsx index 40c27ca1..879f41db 100644 --- a/apps/helixbox-home/src/components/homepage-header.tsx +++ b/apps/helixbox-home/src/components/homepage-header.tsx @@ -21,7 +21,7 @@ const navigations: ( export default function HomepageHeader() { return (
- + Helixbox logo From babb0a524259930c098fa1b94d3ea2943469bc99 Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Fri, 1 Nov 2024 11:56:04 +0800 Subject: [PATCH 5/8] Close icon --- apps/helixbox-home/public/images/close.svg | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 apps/helixbox-home/public/images/close.svg diff --git a/apps/helixbox-home/public/images/close.svg b/apps/helixbox-home/public/images/close.svg new file mode 100644 index 00000000..d1e4f322 --- /dev/null +++ b/apps/helixbox-home/public/images/close.svg @@ -0,0 +1,6 @@ + + + From e1c245b10300643ae2f9555d202b8e4bf93440c0 Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Fri, 1 Nov 2024 12:11:04 +0800 Subject: [PATCH 6/8] Refactor helix not-found page --- apps/helix/src/routes/not-found.tsx | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/apps/helix/src/routes/not-found.tsx b/apps/helix/src/routes/not-found.tsx index 60f6cee7..851c9f6e 100644 --- a/apps/helix/src/routes/not-found.tsx +++ b/apps/helix/src/routes/not-found.tsx @@ -1,17 +1,5 @@ -import { Link } from "react-router-dom"; +import { Navigate } from "react-router-dom"; export default function NotFound() { - return ( - <> -
-
-

Not Found !

-

Could not find requested resource

- - Return Home - -
-
- - ); + return ; } From bb33b10040ac6cb18205b19531baf7c1f78ed13b Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Fri, 1 Nov 2024 12:15:51 +0800 Subject: [PATCH 7/8] Refactor helix error page --- apps/helix/src/routes/error.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/helix/src/routes/error.tsx b/apps/helix/src/routes/error.tsx index d62b40fe..340cf2f0 100644 --- a/apps/helix/src/routes/error.tsx +++ b/apps/helix/src/routes/error.tsx @@ -5,7 +5,7 @@ export default function Error() { // console.error(error); return ( -
+

Oops!

Sorry, an unexpected error has occurred.

From 83ec3b69fe05e86c2f9944de4e79bd867c192c5b Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Fri, 1 Nov 2024 12:17:48 +0800 Subject: [PATCH 8/8] Refactor app not-found page --- apps/helixbox-app/src/routes/not-found.tsx | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/apps/helixbox-app/src/routes/not-found.tsx b/apps/helixbox-app/src/routes/not-found.tsx index 60f6cee7..851c9f6e 100644 --- a/apps/helixbox-app/src/routes/not-found.tsx +++ b/apps/helixbox-app/src/routes/not-found.tsx @@ -1,17 +1,5 @@ -import { Link } from "react-router-dom"; +import { Navigate } from "react-router-dom"; export default function NotFound() { - return ( - <> -

-
-

Not Found !

-

Could not find requested resource

- - Return Home - -
-
- - ); + return ; }