Skip to content

Commit 21e7bd3

Browse files
committed
Nebula: Add radial gradient on top (#6888)
<!-- ## 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 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}` <!-- end pr-codex -->
1 parent fa8a39e commit 21e7bd3

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed

apps/dashboard/src/app/nebula-app/(app)/components/ChatPageContent.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ export function ChatPageContent(props: {
352352
{showEmptyState ? (
353353
<div className="fade-in-0 container flex max-w-[800px] grow animate-in flex-col justify-center">
354354
<EmptyStateChatPageContent
355+
showAurora={true}
355356
isConnectingWallet={connectionStatus === "connecting"}
356357
sendMessage={handleSendMessage}
357358
prefillMessage={props.initialParams?.q}

apps/dashboard/src/app/nebula-app/(app)/components/EmptyStateChatPageContent.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ function Story(props: {
3434
<ThirdwebProvider>
3535
<div className="container flex max-w-[800px] grow flex-col justify-center overflow-hidden">
3636
<EmptyStateChatPageContent
37+
showAurora={false}
3738
isConnectingWallet={false}
3839
sendMessage={() => {}}
3940
prefillMessage={props.prefillMessage}

apps/dashboard/src/app/nebula-app/(app)/components/EmptyStateChatPageContent.tsx

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ export function EmptyStateChatPageContent(props: {
1818
activeAccountAddress: string | undefined;
1919
setActiveWallet: (wallet: WalletMeta) => void;
2020
isConnectingWallet: boolean;
21+
showAurora: boolean;
2122
}) {
2223
return (
23-
<div className="py-10 lg:py-16">
24+
<div className="overflow-hidden py-10 lg:py-16">
25+
{props.showAurora && (
26+
<Aurora className="top-0 left-1/2 h-[800px] w-[1000px] text-[hsl(var(--nebula-pink-foreground)/8%)] lg:w-[150%] dark:text-[hsl(var(--nebula-pink-foreground)/10%)]" />
27+
)}
2428
<div className="relative py-10">
2529
<FancyBorders />
2630
<div className="flex justify-center">
@@ -136,3 +140,22 @@ function DashedBgDiv(props: {
136140
/>
137141
);
138142
}
143+
144+
type AuroraProps = {
145+
className?: string;
146+
};
147+
148+
const Aurora: React.FC<AuroraProps> = ({ className }) => {
149+
return (
150+
<div
151+
className={cn(
152+
"-translate-x-1/2 -translate-y-1/2 pointer-events-none absolute",
153+
className,
154+
)}
155+
style={{
156+
backgroundImage:
157+
"radial-gradient(ellipse at center, currentColor, transparent 60%)",
158+
}}
159+
/>
160+
);
161+
};

apps/dashboard/src/app/nebula-app/login/NebulaLoginPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export function NebulaLoggedOutStatePage(props: {
8888
{showPage === "welcome" && (
8989
<div className="container relative flex max-w-[800px] grow flex-col justify-center overflow-hidden rounded-lg pb-6">
9090
<EmptyStateChatPageContent
91+
showAurora={false}
9192
isConnectingWallet={false}
9293
prefillMessage={message}
9394
context={{

0 commit comments

Comments
 (0)