Skip to content

Commit 43b0680

Browse files
committed
[MNY-242] Dashboard: Remove animated background from bridge page (#8219)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR primarily focuses on code cleanup and improvements in the `apps/dashboard` project. It removes unused components and makes adjustments to existing components for better styling and functionality. ### Detailed summary - Deleted `DarkVeil` and `BridgeVeil` components. - Adjusted the styling of the `PageHeader` component. - Modified button size and styles in `BuyAndSwapEmbed`. - Updated `BridgePage` component layout and header styles. - Improved `DataPill` component styles. - Refined `DotsBackgroundPattern` visibility and styles. - Updated dependency versions in `package.json` and `pnpm-lock.yaml`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Removed animated veil background and simplified header visuals; adjusted responsive typography, spacing, borders, paddings, and colors for improved light/dark contrast. * Added a small dot icon beside the first pill on mobile, improved pill layout and muted pill text color on larger screens. * Made tab buttons smaller and refined active-state styling. * **Refactor** * Removed legacy veil background components to simplify the UI. * **Chores** * Removed an unused graphics dependency from the dashboard. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent cccbde9 commit 43b0680

File tree

7 files changed

+70
-346
lines changed

7 files changed

+70
-346
lines changed

apps/dashboard/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"next-themes": "^0.4.6",
4848
"nextjs-toploader": "^1.6.12",
4949
"nuqs": "^2.4.3",
50-
"ogl": "^1.0.11",
5150
"papaparse": "^5.5.3",
5251
"pluralize": "^8.0.0",
5352
"posthog-js": "1.256.1",

apps/dashboard/src/@/components/DarkVeil.tsx

Lines changed: 0 additions & 192 deletions
This file was deleted.

apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,10 @@ function TabButton(props: {
240240
return (
241241
<Button
242242
onClick={props.onClick}
243+
size="sm"
243244
className={cn(
244-
"rounded-full text-muted-foreground px-5 text-base bg-accent",
245-
props.isActive && "text-foreground border-foreground",
245+
"rounded-full text-muted-foreground px-4 bg-accent",
246+
props.isActive && "text-foreground border-foreground/50",
246247
)}
247248
variant="outline"
248249
>

apps/dashboard/src/app/bridge/components/BridgeVeil.tsx

Lines changed: 0 additions & 36 deletions
This file was deleted.

apps/dashboard/src/app/bridge/components/header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ThirdwebMiniLogo } from "../../(app)/components/ThirdwebMiniLogo";
66

77
export function PageHeader(props: { containerClassName?: string }) {
88
return (
9-
<div className="border-b border-border/50 border-dashed">
9+
<div className="border-b border-dashed">
1010
<header
1111
className={cn(
1212
"container flex max-w-7xl justify-between py-4",

apps/dashboard/src/app/bridge/page.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { cn } from "@workspace/ui/lib/utils";
2+
import { DotIcon } from "lucide-react";
23
import type { Metadata } from "next";
34
import type { Address } from "thirdweb";
45
import { defineChain } from "thirdweb/chains";
56
import { getContract } from "thirdweb/contract";
67
import { getCurrencyMetadata } from "thirdweb/extensions/erc20";
78
import { FaqSection } from "@/components/blocks/faq-section";
89
import { AppFooter } from "@/components/footers/app-footer";
9-
import { BridgeVeil } from "./components/BridgeVeil";
1010
import { PillLink } from "./components/client/pill-link";
1111
import { UniversalBridgeEmbed } from "./components/client/UniversalBridgeEmbed";
1212
import { PageHeader } from "./components/header";
@@ -55,30 +55,27 @@ export default async function BridgePage({
5555

5656
return (
5757
<div className="grow flex flex-col relative overflow-hidden">
58-
<div className="absolute top-0 left-0 right-0 h-dvh md:h-[1200px] fade-in-0 animate-in duration-700">
59-
<BridgeVeil />
60-
</div>
61-
6258
<div className="relative z-10">
6359
<PageHeader />
6460

65-
<div className="h-20" />
61+
<div className="h-12 lg:h-20" />
6662

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

74-
<div className="flex-wrap flex gap-3 items-center justify-center">
70+
<div className="flex flex-wrap gap-2 items-center justify-center">
7571
<DataPill>85+ Chains Supported</DataPill>
72+
<DotIcon className="size-3 text-muted-foreground lg:hidden" />
7673
<DataPill>4500+ Tokens Supported</DataPill>
7774
<DataPill>9+ Million Routes Available</DataPill>
7875
</div>
7976
</div>
8077

81-
<div className="h-16" />
78+
<div className="h-12 lg:h-16" />
8279

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

135132
function DataPill(props: { children: React.ReactNode }) {
136133
return (
137-
<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">
134+
<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">
138135
{props.children}
139136
</p>
140137
);
@@ -144,7 +141,7 @@ function DotsBackgroundPattern(props: { className?: string }) {
144141
return (
145142
<div
146143
className={cn(
147-
"pointer-events-none absolute -inset-x-36 -inset-y-24 text-pink-700/30 dark:text-pink-500/20",
144+
"pointer-events-none absolute -inset-x-36 -inset-y-24 text-foreground/20 dark:text-muted-foreground/20 hidden lg:block",
148145
props.className,
149146
)}
150147
style={{

0 commit comments

Comments
 (0)