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
1 change: 0 additions & 1 deletion apps/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"next-themes": "^0.4.6",
"nextjs-toploader": "^1.6.12",
"nuqs": "^2.4.3",
"ogl": "^1.0.11",
"papaparse": "^5.5.3",
"pluralize": "^8.0.0",
"posthog-js": "1.256.1",
Expand Down
192 changes: 0 additions & 192 deletions apps/dashboard/src/@/components/DarkVeil.tsx

This file was deleted.

5 changes: 3 additions & 2 deletions apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,10 @@ function TabButton(props: {
return (
<Button
onClick={props.onClick}
size="sm"
className={cn(
"rounded-full text-muted-foreground px-5 text-base bg-accent",
props.isActive && "text-foreground border-foreground",
"rounded-full text-muted-foreground px-4 bg-accent",
props.isActive && "text-foreground border-foreground/50",
)}
variant="outline"
>
Expand Down
36 changes: 0 additions & 36 deletions apps/dashboard/src/app/bridge/components/BridgeVeil.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion apps/dashboard/src/app/bridge/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ThirdwebMiniLogo } from "../../(app)/components/ThirdwebMiniLogo";

export function PageHeader(props: { containerClassName?: string }) {
return (
<div className="border-b border-border/50 border-dashed">
<div className="border-b border-dashed">
<header
className={cn(
"container flex max-w-7xl justify-between py-4",
Expand Down
19 changes: 8 additions & 11 deletions apps/dashboard/src/app/bridge/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { cn } from "@workspace/ui/lib/utils";
import { DotIcon } from "lucide-react";
import type { Metadata } from "next";
import type { Address } from "thirdweb";
import { defineChain } from "thirdweb/chains";
import { getContract } from "thirdweb/contract";
import { getCurrencyMetadata } from "thirdweb/extensions/erc20";
import { FaqSection } from "@/components/blocks/faq-section";
import { AppFooter } from "@/components/footers/app-footer";
import { BridgeVeil } from "./components/BridgeVeil";
import { PillLink } from "./components/client/pill-link";
import { UniversalBridgeEmbed } from "./components/client/UniversalBridgeEmbed";
import { PageHeader } from "./components/header";
Expand Down Expand Up @@ -55,30 +55,27 @@ export default async function BridgePage({

return (
<div className="grow flex flex-col relative overflow-hidden">
<div className="absolute top-0 left-0 right-0 h-dvh md:h-[1200px] fade-in-0 animate-in duration-700">
<BridgeVeil />
</div>

<div className="relative z-10">
<PageHeader />

<div className="h-20" />
<div className="h-12 lg:h-20" />

<div className="relative z-10">
<div className="container">
<h1 className="text-5xl md:text-6xl font-bold mb-6 tracking-tighter text-center leading-none text-pretty">
<h1 className="text-3xl md:text-6xl font-bold mb-6 tracking-tighter text-center leading-8 lg:leading-none text-balance">
Bridge and Swap tokens <br className="max-sm:hidden" /> across any
chain, instantly
</h1>

<div className="flex-wrap flex gap-3 items-center justify-center">
<div className="flex flex-wrap gap-2 items-center justify-center">
<DataPill>85+ Chains Supported</DataPill>
<DotIcon className="size-3 text-muted-foreground lg:hidden" />
<DataPill>4500+ Tokens Supported</DataPill>
<DataPill>9+ Million Routes Available</DataPill>
</div>
Comment on lines +70 to 75
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Add aria-hidden to the DotIcon and verify separator placement.

Two concerns:

  1. Accessibility: The DotIcon is purely decorative and should include aria-hidden="true" to prevent screen readers from announcing it.

  2. Asymmetric separator: Only one DotIcon appears between the first two pills, but not between the second and third. Is this intentional grouping, or should separators appear between all pills on small screens?

Apply this diff to add aria-hidden:

-              <DotIcon className="size-3 text-muted-foreground lg:hidden" />
+              <DotIcon className="size-3 text-muted-foreground lg:hidden" aria-hidden="true" />

To verify whether the separator placement is intentional or if additional separators are needed, please clarify the design intent for pill grouping on mobile.


📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<div className="flex flex-wrap gap-2 items-center justify-center">
<DataPill>85+ Chains Supported</DataPill>
<DotIcon className="size-3 text-muted-foreground lg:hidden" />
<DataPill>4500+ Tokens Supported</DataPill>
<DataPill>9+ Million Routes Available</DataPill>
</div>
<div className="flex flex-wrap gap-2 items-center justify-center">
<DataPill>85+ Chains Supported</DataPill>
<DotIcon className="size-3 text-muted-foreground lg:hidden" aria-hidden="true" />
<DataPill>4500+ Tokens Supported</DataPill>
<DataPill>9+ Million Routes Available</DataPill>
</div>
🤖 Prompt for AI Agents
In apps/dashboard/src/app/bridge/page.tsx around lines 70-75, the DotIcon is
decorative so add aria-hidden="true" to the element, and for consistent
small-screen separators insert the same DotIcon (with className="size-3
text-muted-foreground lg:hidden" and aria-hidden="true") between each DataPill
(i.e., after the first and second pills) so separators appear uniformly on small
screens while remaining hidden on large screens.

</div>

<div className="h-16" />
<div className="h-12 lg:h-16" />

<div className="flex grow items-center justify-center px-4 relative">
<DotsBackgroundPattern />
Expand Down Expand Up @@ -134,7 +131,7 @@ export default async function BridgePage({

function DataPill(props: { children: React.ReactNode }) {
return (
<p className="flex items-center gap-1.5 text-foreground/50 text-xs bg-accent/30 backdrop-blur-lg border border-border/70 rounded-full px-3 py-1.5 hover:text-foreground transition-colors duration-300">
<p className="lg:bg-card flex items-center gap-1.5 text-muted-foreground text-xs lg:backdrop-blur-lg lg:border lg:border-border/70 rounded-full lg:px-3 lg:py-1.5 hover:text-foreground transition-colors duration-300">
{props.children}
</p>
);
Expand All @@ -144,7 +141,7 @@ function DotsBackgroundPattern(props: { className?: string }) {
return (
<div
className={cn(
"pointer-events-none absolute -inset-x-36 -inset-y-24 text-pink-700/30 dark:text-pink-500/20",
"pointer-events-none absolute -inset-x-36 -inset-y-24 text-foreground/20 dark:text-muted-foreground/20 hidden lg:block",
props.className,
)}
style={{
Expand Down
Loading
Loading