diff --git a/apps/hyperdrive-trading/src/routeTree.gen.ts b/apps/hyperdrive-trading/src/routeTree.gen.ts index a54b59b41..835a70ada 100644 --- a/apps/hyperdrive-trading/src/routeTree.gen.ts +++ b/apps/hyperdrive-trading/src/routeTree.gen.ts @@ -15,11 +15,11 @@ import { Route as ChainlogImport } from "./ui/routes/chainlog"; import { Route as ErrorImport } from "./ui/routes/error"; import { Route as IndexImport } from "./ui/routes/index"; import { Route as IneligibleImport } from "./ui/routes/ineligible"; +import { Route as LandingImport } from "./ui/routes/landing"; import { Route as LeaderboardImport } from "./ui/routes/leaderboard"; import { Route as MarketChainIdAddressImport } from "./ui/routes/market.$chainId.$address"; import { Route as MintImport } from "./ui/routes/mint"; import { Route as PointsmarketsImport } from "./ui/routes/points_markets"; -import { Route as PortfolioImport } from "./ui/routes/portfolio"; import { Route as RestrictedcountriesImport } from "./ui/routes/restricted_countries"; // Create/Update Routes @@ -30,12 +30,6 @@ const RestrictedcountriesRoute = RestrictedcountriesImport.update({ getParentRoute: () => rootRoute, } as any); -const PortfolioRoute = PortfolioImport.update({ - id: "/portfolio", - path: "/portfolio", - getParentRoute: () => rootRoute, -} as any); - const PointsmarketsRoute = PointsmarketsImport.update({ id: "/points_markets", path: "/points_markets", @@ -54,6 +48,12 @@ const LeaderboardRoute = LeaderboardImport.update({ getParentRoute: () => rootRoute, } as any); +const LandingRoute = LandingImport.update({ + id: "/landing", + path: "/landing", + getParentRoute: () => rootRoute, +} as any); + const IneligibleRoute = IneligibleImport.update({ id: "/ineligible", path: "/ineligible", @@ -116,6 +116,13 @@ declare module "@tanstack/react-router" { preLoaderRoute: typeof IneligibleImport; parentRoute: typeof rootRoute; }; + "/landing": { + id: "/landing"; + path: "/landing"; + fullPath: "/landing"; + preLoaderRoute: typeof LandingImport; + parentRoute: typeof rootRoute; + }; "/leaderboard": { id: "/leaderboard"; path: "/leaderboard"; @@ -137,13 +144,6 @@ declare module "@tanstack/react-router" { preLoaderRoute: typeof PointsmarketsImport; parentRoute: typeof rootRoute; }; - "/portfolio": { - id: "/portfolio"; - path: "/portfolio"; - fullPath: "/portfolio"; - preLoaderRoute: typeof PortfolioImport; - parentRoute: typeof rootRoute; - }; "/restricted_countries": { id: "/restricted_countries"; path: "/restricted_countries"; @@ -168,10 +168,10 @@ export interface FileRoutesByFullPath { "/chainlog": typeof ChainlogRoute; "/error": typeof ErrorRoute; "/ineligible": typeof IneligibleRoute; + "/landing": typeof LandingRoute; "/leaderboard": typeof LeaderboardRoute; "/mint": typeof MintRoute; "/points_markets": typeof PointsmarketsRoute; - "/portfolio": typeof PortfolioRoute; "/restricted_countries": typeof RestrictedcountriesRoute; "/market/$chainId/$address": typeof MarketChainIdAddressRoute; } @@ -181,10 +181,10 @@ export interface FileRoutesByTo { "/chainlog": typeof ChainlogRoute; "/error": typeof ErrorRoute; "/ineligible": typeof IneligibleRoute; + "/landing": typeof LandingRoute; "/leaderboard": typeof LeaderboardRoute; "/mint": typeof MintRoute; "/points_markets": typeof PointsmarketsRoute; - "/portfolio": typeof PortfolioRoute; "/restricted_countries": typeof RestrictedcountriesRoute; "/market/$chainId/$address": typeof MarketChainIdAddressRoute; } @@ -195,10 +195,10 @@ export interface FileRoutesById { "/chainlog": typeof ChainlogRoute; "/error": typeof ErrorRoute; "/ineligible": typeof IneligibleRoute; + "/landing": typeof LandingRoute; "/leaderboard": typeof LeaderboardRoute; "/mint": typeof MintRoute; "/points_markets": typeof PointsmarketsRoute; - "/portfolio": typeof PortfolioRoute; "/restricted_countries": typeof RestrictedcountriesRoute; "/market/$chainId/$address": typeof MarketChainIdAddressRoute; } @@ -210,10 +210,10 @@ export interface FileRouteTypes { | "/chainlog" | "/error" | "/ineligible" + | "/landing" | "/leaderboard" | "/mint" | "/points_markets" - | "/portfolio" | "/restricted_countries" | "/market/$chainId/$address"; fileRoutesByTo: FileRoutesByTo; @@ -222,10 +222,10 @@ export interface FileRouteTypes { | "/chainlog" | "/error" | "/ineligible" + | "/landing" | "/leaderboard" | "/mint" | "/points_markets" - | "/portfolio" | "/restricted_countries" | "/market/$chainId/$address"; id: @@ -234,10 +234,10 @@ export interface FileRouteTypes { | "/chainlog" | "/error" | "/ineligible" + | "/landing" | "/leaderboard" | "/mint" | "/points_markets" - | "/portfolio" | "/restricted_countries" | "/market/$chainId/$address"; fileRoutesById: FileRoutesById; @@ -248,10 +248,10 @@ export interface RootRouteChildren { ChainlogRoute: typeof ChainlogRoute; ErrorRoute: typeof ErrorRoute; IneligibleRoute: typeof IneligibleRoute; + LandingRoute: typeof LandingRoute; LeaderboardRoute: typeof LeaderboardRoute; MintRoute: typeof MintRoute; PointsmarketsRoute: typeof PointsmarketsRoute; - PortfolioRoute: typeof PortfolioRoute; RestrictedcountriesRoute: typeof RestrictedcountriesRoute; MarketChainIdAddressRoute: typeof MarketChainIdAddressRoute; } @@ -261,10 +261,10 @@ const rootRouteChildren: RootRouteChildren = { ChainlogRoute: ChainlogRoute, ErrorRoute: ErrorRoute, IneligibleRoute: IneligibleRoute, + LandingRoute: LandingRoute, LeaderboardRoute: LeaderboardRoute, MintRoute: MintRoute, PointsmarketsRoute: PointsmarketsRoute, - PortfolioRoute: PortfolioRoute, RestrictedcountriesRoute: RestrictedcountriesRoute, MarketChainIdAddressRoute: MarketChainIdAddressRoute, }; @@ -283,10 +283,10 @@ export const routeTree = rootRoute "/chainlog", "/error", "/ineligible", + "/landing", "/leaderboard", "/mint", "/points_markets", - "/portfolio", "/restricted_countries", "/market/$chainId/$address" ] @@ -303,6 +303,9 @@ export const routeTree = rootRoute "/ineligible": { "filePath": "ineligible.tsx" }, + "/landing": { + "filePath": "landing.tsx" + }, "/leaderboard": { "filePath": "leaderboard.tsx" }, @@ -312,9 +315,6 @@ export const routeTree = rootRoute "/points_markets": { "filePath": "points_markets.tsx" }, - "/portfolio": { - "filePath": "portfolio.tsx" - }, "/restricted_countries": { "filePath": "restricted_countries.tsx" }, diff --git a/apps/hyperdrive-trading/src/ui/analytics/ExternalLink.tsx b/apps/hyperdrive-trading/src/ui/analytics/ExternalLink.tsx index ffd34adf0..c5946026c 100644 --- a/apps/hyperdrive-trading/src/ui/analytics/ExternalLink.tsx +++ b/apps/hyperdrive-trading/src/ui/analytics/ExternalLink.tsx @@ -59,11 +59,14 @@ export function ExternalLink({ }); onClick?.(e); }} - className={classNames("group", className)} + className={classNames( + "group inline-flex items-center gap-0.5", + className, + )} > {children} {icon === true ? ( - + ) : ( icon && icon )} diff --git a/apps/hyperdrive-trading/src/ui/app/Footer/Footer.tsx b/apps/hyperdrive-trading/src/ui/app/Footer/Footer.tsx index c81f02d5b..caa40b87f 100644 --- a/apps/hyperdrive-trading/src/ui/app/Footer/Footer.tsx +++ b/apps/hyperdrive-trading/src/ui/app/Footer/Footer.tsx @@ -2,17 +2,14 @@ import { Link } from "@tanstack/react-router"; import { ReactElement } from "react"; import { ExternalLink } from "src/ui/analytics/ExternalLink"; import { HyperdriveLogo } from "src/ui/app/Navbar/HyperdriveLogo"; -import FarcasterIcon from "src/ui/base/icons/farcaster"; -import LinkedInIcon from "src/ui/base/icons/linkedin"; -import XIcon from "src/ui/base/icons/x"; -import { CHAINLOG_ROUTE } from "src/ui/chainlog/routes"; import { privacyPolicyUrl } from "src/ui/compliance/privacyPolicy"; import { termsOfUseUrl } from "src/ui/compliance/termsOfUse"; + export default function Footer(): ReactElement { const footerTitleClassName = "daisy-footer-title text-neutral-content opacity-100"; // need to set opacity here to override daisy-footer-title return ( -