From 6001f2487ee746f69366718196f7a0d53831bcb0 Mon Sep 17 00:00:00 2001 From: MananTank Date: Thu, 3 Apr 2025 01:25:41 +0000 Subject: [PATCH] [TOOL-3909] Dashboard: Add footer links to project pages & header style adjustments (#6627) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## PR-Codex overview This PR focuses on enhancing the layout and structure of various components in the application, introducing new footer sections, and improving the user interface for better organization and navigation. ### Detailed summary - Removed the `SupportedPlatformLink.tsx` file. - Updated `href` in `react-native/v5/page.mdx` from `/installation` to `/getting-started`. - Enhanced layout in multiple components with added `container` classes for better styling. - Introduced new `FooterCard` component in various pages for documentation and tutorial links. - Replaced `AAFooterSection` with `AAFooter` in `AccountAbstractionPage.tsx`. - Updated `InAppWalletFooterSection` to `InAppWalletsFooter` with a new structure. - Modified headers and added spacing in several components for improved visual hierarchy. - Introduced new `InsightFooter` component with relevant links. - Adjusted various components to use consistent `container` class for layout consistency. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- .../src/@/components/blocks/SidebarLayout.tsx | 10 +- .../src/@/components/blocks/app-footer.tsx | 10 +- apps/dashboard/src/@/components/ui/tabs.tsx | 8 +- .../contracts/DeployedContractsPageHeader.tsx | 8 +- .../_components/DeployedContractsPage.tsx | 3 +- .../components/ProjectSidebarLayout.tsx | 2 - .../components/footer/FooterLinksSection.tsx | 89 +++++++ .../account-abstraction/AAFooterSection.tsx | 176 +++++-------- .../AccountAbstractionPage.tsx | 106 ++++---- .../in-app-wallets/_components/footer.tsx | 246 ++++++------------ .../in-app-wallets/_components/header.tsx | 10 +- .../connect/in-app-wallets/layout.tsx | 69 +++-- .../[project_slug]/connect/page.tsx | 14 - .../connect/universal-bridge/layout.tsx | 112 ++++++-- .../[project_slug]/contracts/page.tsx | 72 ++++- .../[project_slug]/insight/page.tsx | 82 +++++- .../analytics/nebula-analytics-page.tsx | 4 +- .../nebula-waitlist-page-ui.client.tsx | 6 +- .../[project_slug]/nebula/layout.tsx | 72 +++++ .../[project_slug]/nebula/page.tsx | 19 +- .../team/[team_slug]/[project_slug]/page.tsx | 25 +- .../wallets/SupportedPlatformLink.tsx | 35 --- .../tools/python-sdk/installation/page.mdx | 2 +- apps/portal/src/app/react-native/v5/page.mdx | 2 +- 24 files changed, 704 insertions(+), 478 deletions(-) create mode 100644 apps/dashboard/src/app/team/[team_slug]/[project_slug]/components/footer/FooterLinksSection.tsx delete mode 100644 apps/dashboard/src/app/team/[team_slug]/[project_slug]/connect/page.tsx create mode 100644 apps/dashboard/src/app/team/[team_slug]/[project_slug]/nebula/layout.tsx delete mode 100644 apps/dashboard/src/components/wallets/SupportedPlatformLink.tsx diff --git a/apps/dashboard/src/@/components/blocks/SidebarLayout.tsx b/apps/dashboard/src/@/components/blocks/SidebarLayout.tsx index 6294dcf04be..cc5bba9f020 100644 --- a/apps/dashboard/src/@/components/blocks/SidebarLayout.tsx +++ b/apps/dashboard/src/@/components/blocks/SidebarLayout.tsx @@ -17,6 +17,7 @@ import { NavLink } from "../ui/NavLink"; import { Separator } from "../ui/separator"; import { MobileSidebar, useActiveSidebarLink } from "./MobileSidebar"; import { CustomSidebar, type SidebarLink } from "./Sidebar"; +import { AppFooter } from "./app-footer"; export function SidebarLayout(props: { sidebarLinks: SidebarLink[]; @@ -54,7 +55,6 @@ export function FullWidthSidebarLayout(props: { footerSidebarLinks?: SidebarLink[]; children: React.ReactNode; className?: string; - footer?: React.ReactNode; }) { const { contentSidebarLinks, children, footerSidebarLinks } = props; return ( @@ -65,7 +65,7 @@ export function FullWidthSidebarLayout(props: { )} > {/* left - sidebar */} - + @@ -95,10 +95,10 @@ export function FullWidthSidebarLayout(props: { links={[...contentSidebarLinks, ...(footerSidebarLinks || [])]} /> -
+
{children}
- {props.footer} + ); @@ -156,7 +156,7 @@ function MobileSidebarTrigger(props: { links: SidebarLink[] }) { const activeLink = useActiveSidebarLink(props.links); return ( -
+
{activeLink && {activeLink.label}} diff --git a/apps/dashboard/src/@/components/blocks/app-footer.tsx b/apps/dashboard/src/@/components/blocks/app-footer.tsx index 39cf386ede9..5f104b6d774 100644 --- a/apps/dashboard/src/@/components/blocks/app-footer.tsx +++ b/apps/dashboard/src/@/components/blocks/app-footer.tsx @@ -12,17 +12,23 @@ import Link from "next/link"; type AppFooterProps = { className?: string; + containerClassName?: string; }; export function AppFooter(props: AppFooterProps) { return (