Skip to content

Commit 518b1f0

Browse files
committed
Nebula: Add radial gradient on top - DO NOT MERGE
1 parent 3b9a412 commit 518b1f0

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+
export 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)