Skip to content
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
52 changes: 26 additions & 26 deletions apps/hyperdrive-trading/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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";
Expand All @@ -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";
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -210,10 +210,10 @@ export interface FileRouteTypes {
| "/chainlog"
| "/error"
| "/ineligible"
| "/landing"
| "/leaderboard"
| "/mint"
| "/points_markets"
| "/portfolio"
| "/restricted_countries"
| "/market/$chainId/$address";
fileRoutesByTo: FileRoutesByTo;
Expand All @@ -222,10 +222,10 @@ export interface FileRouteTypes {
| "/chainlog"
| "/error"
| "/ineligible"
| "/landing"
| "/leaderboard"
| "/mint"
| "/points_markets"
| "/portfolio"
| "/restricted_countries"
| "/market/$chainId/$address";
id:
Expand All @@ -234,10 +234,10 @@ export interface FileRouteTypes {
| "/chainlog"
| "/error"
| "/ineligible"
| "/landing"
| "/leaderboard"
| "/mint"
| "/points_markets"
| "/portfolio"
| "/restricted_countries"
| "/market/$chainId/$address";
fileRoutesById: FileRoutesById;
Expand All @@ -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;
}
Expand All @@ -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,
};
Expand All @@ -283,10 +283,10 @@ export const routeTree = rootRoute
"/chainlog",
"/error",
"/ineligible",
"/landing",
"/leaderboard",
"/mint",
"/points_markets",
"/portfolio",
"/restricted_countries",
"/market/$chainId/$address"
]
Expand All @@ -303,6 +303,9 @@ export const routeTree = rootRoute
"/ineligible": {
"filePath": "ineligible.tsx"
},
"/landing": {
"filePath": "landing.tsx"
},
"/leaderboard": {
"filePath": "leaderboard.tsx"
},
Expand All @@ -312,9 +315,6 @@ export const routeTree = rootRoute
"/points_markets": {
"filePath": "points_markets.tsx"
},
"/portfolio": {
"filePath": "portfolio.tsx"
},
"/restricted_countries": {
"filePath": "restricted_countries.tsx"
},
Expand Down
7 changes: 5 additions & 2 deletions apps/hyperdrive-trading/src/ui/analytics/ExternalLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? (
<ArrowTopRightOnSquareIcon className="size-4 opacity-60 group-hover:opacity-100" />
<ArrowTopRightOnSquareIcon className="size-[1em] opacity-60 group-hover:opacity-100" />
) : (
icon && icon
)}
Expand Down
140 changes: 2 additions & 138 deletions apps/hyperdrive-trading/src/ui/app/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +2,24 @@ 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 (
<footer className="daisy-footer max-w-6xl grid-cols-2 p-10 text-base-content sm:grid-cols-5">
<footer className="daisy-footer flex max-w-6xl justify-center gap-20 p-10 text-base-content">
<aside>
<Link
to="/"
className="text-h6 inline-flex items-center gap-2 font-extrabold uppercase tracking-widest"
>
<HyperdriveLogo width={160} />
</Link>
<span className="text-neutral-content">Yield, Your Way.</span>
<div className="mt-2 flex flex-row gap-3">
<ExternalLink
newTab
rel="noreferrer"
href="https://x.com/delv_tech"
className="daisy-link-hover daisy-link"
>
<XIcon />
</ExternalLink>
<ExternalLink
newTab
rel="noreferrer"
href="https://warpcast.com/~/channel/delv"
className="daisy-link-hover daisy-link"
>
<FarcasterIcon />
</ExternalLink>
<ExternalLink
newTab
rel="noreferrer"
href="https://linkedin.com/company/delv-tech"
className="daisy-link-hover daisy-link"
>
<LinkedInIcon />
</ExternalLink>
</div>
</aside>
<nav>
<header className={footerTitleClassName}>Resources</header>

<ExternalLink
newTab
href="https://hyperdrive.box"
className="daisy-link-hover daisy-link"
>
About Hyperdrive
</ExternalLink>
<ExternalLink
newTab
href="https://docs.hyperdrive.box"
Expand All @@ -79,104 +41,6 @@ export default function Footer(): ReactElement {
>
Security
</ExternalLink>
<ExternalLink
newTab
href="https://arxiv.org/pdf/2404.05036"
className="daisy-link-hover daisy-link"
>
Whitepaper
</ExternalLink>
<Link to={CHAINLOG_ROUTE} className="daisy-link-hover daisy-link">
Chainlog
</Link>
<ExternalLink
newTab
href="https://testnet.hyperdrive.box/"
className="daisy-link-hover daisy-link"
>
Testnet
</ExternalLink>
</nav>
<nav>
<header className={footerTitleClassName}>Developers</header>

<ExternalLink
newTab
className="daisy-link-hover daisy-link"
href="https://github.com/delvtech"
>
GitHub
</ExternalLink>

<ExternalLink
newTab
href="https://docs.hyperdrive.box/hyperdrive-trading-bots/quickstart"
className="daisy-link-hover daisy-link"
>
Trading Bots
</ExternalLink>

<ExternalLink
newTab
href="https://github.com/delvtech/hyperdrive-rs"
className="daisy-link-hover daisy-link"
>
SDK
</ExternalLink>

<ExternalLink
newTab
href="https://cantina.xyz/bounties/7fa99194-3a19-476d-92dd-f66289baf95e"
className="daisy-link-hover daisy-link"
>
Bug Bounty
</ExternalLink>
</nav>
<nav>
<header className={footerTitleClassName}>Ecosystem</header>

<ExternalLink
newTab
href="https://docs.hyperdrive.box/hyperdrive-for-developers/integrations"
className="daisy-link-hover daisy-link"
>
Integrations
</ExternalLink>

<ExternalLink
newTab
href="https://delv.tech/discord"
className="daisy-link-hover daisy-link"
>
Community
</ExternalLink>

<ExternalLink
newTab
href="https://governance.element.fi/"
className="daisy-link-hover daisy-link"
>
Governance
</ExternalLink>
</nav>
<nav>
<header className={footerTitleClassName}>About Us</header>

<ExternalLink
newTab
className="daisy-link-hover daisy-link"
href="https://www.delv.tech/"
>
DELV
</ExternalLink>

<ExternalLink
newTab
className="daisy-link-hover daisy-link"
href="https://blog.delv.tech/"
>
Blog
</ExternalLink>
</nav>
<nav>
<header className={footerTitleClassName}>Legal</header>
Expand Down
Loading
Loading