From 71e81b6ebc3a9d5466659ac06f1071cd7aa6a2ed Mon Sep 17 00:00:00 2001 From: Alissa Crane Date: Wed, 6 Nov 2024 15:18:23 -0800 Subject: [PATCH 01/12] update components with new design --- app/components/Agent.tsx | 29 +++++++-- app/components/AgentAssets.tsx | 54 +++++++++++++++ app/components/AgentBalance.tsx | 19 ++++++ app/components/AgentProfile.tsx | 8 ++- app/components/AgentStats.tsx | 76 ---------------------- app/components/Chat.tsx | 112 ++++++++++++++++++++++++++++++++ app/components/ChatInput.tsx | 15 ++--- app/components/Navbar.tsx | 78 +++++++++++++++------- app/components/Stream.tsx | 72 +++++++------------- app/components/StreamItem.tsx | 12 +--- app/constants.ts | 2 +- 11 files changed, 300 insertions(+), 177 deletions(-) create mode 100644 app/components/AgentAssets.tsx create mode 100644 app/components/AgentBalance.tsx delete mode 100644 app/components/AgentStats.tsx create mode 100644 app/components/Chat.tsx diff --git a/app/components/Agent.tsx b/app/components/Agent.tsx index 0b7a021..0fe7965 100644 --- a/app/components/Agent.tsx +++ b/app/components/Agent.tsx @@ -2,13 +2,16 @@ import { useCallback, useState } from 'react'; import type { Language } from '../types'; import AgentProfile from './AgentProfile'; -import AgentStats from './AgentStats'; +import AgentBalance from './AgentBalance'; import Footer from './Footer'; import Navbar from './Navbar'; import Stream from './Stream'; +import Chat from './Chat'; +import AgentAssets from './AgentAssets'; export default function Agent() { const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false); + const [isMobileChatOpen, setIsMobileChatOpen] = useState(false); const [currentLanguage, setCurrentLanguage] = useState('en'); const handleLanguageChange = useCallback((lang: Language) => { @@ -20,6 +23,8 @@ export default function Agent() { @@ -29,13 +34,29 @@ export default function Agent() { className={` ${ isMobileMenuOpen ? 'translate-x-0' : '-translate-x-full' - } fixed z-20 flex h-full w-full flex-col overflow-y-auto bg-black p-2 transition-transform duration-300 lg:relative lg:z-0 lg:w-1/3 lg:translate-x-0 lg:border-[#5788FA]/50 lg:border-r `} + } fixed z-20 flex h-full w-full flex-col overflow-y-auto bg-black transition-transform duration-300 lg:relative lg:z-0 lg:w-1/3 lg:translate-x-0 lg:border-[#5788FA]/50 lg:border-r `} > - + + - +
+ + +
+ +
+ +