From bc3db4382f7198fc70792a02f0f126c18e58cac4 Mon Sep 17 00:00:00 2001 From: Danish Arora Date: Wed, 19 Nov 2025 01:37:06 -0500 Subject: [PATCH] chore: add remix banner --- app/src/components/Header.tsx | 4 ++ app/src/components/RemixBanner.tsx | 81 ++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 app/src/components/RemixBanner.tsx diff --git a/app/src/components/Header.tsx b/app/src/components/Header.tsx index a4568f3..d97c592 100644 --- a/app/src/components/Header.tsx +++ b/app/src/components/Header.tsx @@ -34,6 +34,7 @@ import { useToast } from '@/components/ui/use-toast'; import { useEthereumWallet } from '@opchan/react'; import { WalletWizard } from '@/components/ui/wallet-wizard'; import { CallSignSetupDialog } from '@/components/ui/call-sign-setup-dialog'; +import RemixBanner from '@/components/RemixBanner'; const Header = () => { @@ -259,6 +260,9 @@ const Header = () => { + {/* Remix Banner */} + + {/* Wallet Wizard */} { + const [isDismissed, setIsDismissed] = useUIState('remixBannerDismissed', false); + const [activeTab, setActiveTab] = useState<'users' | 'devs'>('users'); + + if (isDismissed) return null; + + return ( +
+
+
+ {/* Tab Toggle */} +
+ + +
+ + {/* Message Content */} +
+ {activeTab === 'users' ? ( +

+ REMIX THIS:{' '} + Use it • Create cells • Post comments • Shape the conversation +

+ ) : ( +

+ BUILD YOUR OWN:{' '} + + Write your own UI with the forum library •{' '} + + Docs (WIP) + + +

+ )} +
+ + {/* Dismiss Button */} + +
+
+
+ ); +}; + +export default RemixBanner; +