Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some links and UI improvement #848

Merged
merged 8 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/helix/src/routes/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function Error() {
// console.error(error);

return (
<main className="app-main flex flex-col items-center justify-center gap-5">
<main className="flex h-screen flex-col items-center justify-center gap-5">
<h1 className="font-bold">Oops!</h1>
<p>Sorry, an unexpected error has occurred.</p>
<p>
Expand Down
16 changes: 2 additions & 14 deletions apps/helix/src/routes/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
import { Link } from "react-router-dom";
import { Navigate } from "react-router-dom";

export default function NotFound() {
return (
<>
<main className="app-main flex items-center justify-center">
<div className="gap-medium flex w-fit flex-col items-start">
<h2 className="text-base font-medium text-white">Not Found !</h2>
<p className="text-sm font-normal text-white">Could not find requested resource</p>
<Link to="/" className="text-primary text-sm font-normal hover:underline">
Return Home
</Link>
</div>
</main>
</>
);
return <Navigate to="/" replace />;
}
2 changes: 1 addition & 1 deletion apps/helixbox-app/.env.mainnet
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VITE_GRAPHQL_ENDPOINT=https://apollo.helixbridge.app/graphql
VITE_GRAPHQL_ENDPOINT=https://apollo.helix.box/graphql
VITE_NETWORK_TYPE=mainnet
2 changes: 1 addition & 1 deletion apps/helixbox-app/.env.testnet
Original file line number Diff line number Diff line change
@@ -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
20 changes: 10 additions & 10 deletions apps/helixbox-app/src/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: "" }));
}
Expand Down
16 changes: 2 additions & 14 deletions apps/helixbox-app/src/routes/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
import { Link } from "react-router-dom";
import { Navigate } from "react-router-dom";

export default function NotFound() {
return (
<>
<main className="app-main flex items-center justify-center">
<div className="gap-medium flex w-fit flex-col items-start">
<h2 className="text-base font-medium text-white">Not Found !</h2>
<p className="text-sm font-normal text-white">Could not find requested resource</p>
<Link to="/" className="text-primary text-sm font-normal hover:underline">
Return Home
</Link>
</div>
</main>
</>
);
return <Navigate to="/" replace />;
}
6 changes: 6 additions & 0 deletions apps/helixbox-home/public/images/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/helixbox-home/src/components/homepage-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const navigations: (
export default function HomepageHeader() {
return (
<div className="fixed left-0 top-0 z-40 flex h-[50px] w-full items-center justify-between px-[20px] backdrop-blur-lg lg:h-[64px] lg:px-[60px]">
<Link to="/" className="transition-transform hover:scale-105">
<Link to="/">
<img alt="Helixbox logo" src="images/logo.svg" className="h-[20px] w-[106.64px] lg:h-[26px] lg:w-[138.84px]" />
</Link>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function HomepageProducts() {
<Mobile key={product.title} {...product} />
))}
</div>
<div className="relative hidden items-center justify-center lg:flex">
<div className="relative hidden scale-90 items-center justify-center lg:flex 2xl:scale-100">
<AnimatedVideo video={video} />

<div className="absolute -top-[94px] left-[50%] -translate-x-[50%]">
Expand Down
8 changes: 4 additions & 4 deletions apps/helixbox-home/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
Loading