From 21e7bd314de4cd2d67e7306015132e4e96185312 Mon Sep 17 00:00:00 2001 From: MananTank Date: Tue, 29 Apr 2025 20:25:10 +0000 Subject: [PATCH] Nebula: Add radial gradient on top (#6888) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR focuses on enhancing the `EmptyStateChatPageContent` component by adding a new `showAurora` prop to control the display of an `Aurora` visual effect. It also adjusts the `isConnectingWallet` prop based on connection status and updates styles for better layout. ### Detailed summary - Added `showAurora` prop to `EmptyStateChatPageContent` in multiple files. - Updated `isConnectingWallet` logic based on connection status. - Modified layout styles in `EmptyStateChatPageContent` for improved appearance. - Introduced `Aurora` component with specific styles for visual effects. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- .../(app)/components/ChatPageContent.tsx | 1 + .../EmptyStateChatPageContent.stories.tsx | 1 + .../components/EmptyStateChatPageContent.tsx | 25 ++++++++++++++++++- .../app/nebula-app/login/NebulaLoginPage.tsx | 1 + 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/apps/dashboard/src/app/nebula-app/(app)/components/ChatPageContent.tsx b/apps/dashboard/src/app/nebula-app/(app)/components/ChatPageContent.tsx index 58f58eb7b0f..da8a79eaaac 100644 --- a/apps/dashboard/src/app/nebula-app/(app)/components/ChatPageContent.tsx +++ b/apps/dashboard/src/app/nebula-app/(app)/components/ChatPageContent.tsx @@ -352,6 +352,7 @@ export function ChatPageContent(props: { {showEmptyState ? (
{}} prefillMessage={props.prefillMessage} diff --git a/apps/dashboard/src/app/nebula-app/(app)/components/EmptyStateChatPageContent.tsx b/apps/dashboard/src/app/nebula-app/(app)/components/EmptyStateChatPageContent.tsx index 07878e3f03a..9a0bf150b80 100644 --- a/apps/dashboard/src/app/nebula-app/(app)/components/EmptyStateChatPageContent.tsx +++ b/apps/dashboard/src/app/nebula-app/(app)/components/EmptyStateChatPageContent.tsx @@ -18,9 +18,13 @@ export function EmptyStateChatPageContent(props: { activeAccountAddress: string | undefined; setActiveWallet: (wallet: WalletMeta) => void; isConnectingWallet: boolean; + showAurora: boolean; }) { return ( -
+
+ {props.showAurora && ( + + )}
@@ -136,3 +140,22 @@ function DashedBgDiv(props: { /> ); } + +type AuroraProps = { + className?: string; +}; + +const Aurora: React.FC = ({ className }) => { + return ( +
+ ); +}; diff --git a/apps/dashboard/src/app/nebula-app/login/NebulaLoginPage.tsx b/apps/dashboard/src/app/nebula-app/login/NebulaLoginPage.tsx index bc8e7110ae6..f1b6b754fce 100644 --- a/apps/dashboard/src/app/nebula-app/login/NebulaLoginPage.tsx +++ b/apps/dashboard/src/app/nebula-app/login/NebulaLoginPage.tsx @@ -88,6 +88,7 @@ export function NebulaLoggedOutStatePage(props: { {showPage === "welcome" && (