Skip to content

Commit 2ab767b

Browse files
committed
feat: Add docs-specific messages to Nexus Prime chat
- Added new docs section to characterMessages with context-appropriate messages - Updated getContextMessage to handle docs page with rotating helpful messages - Messages now guide users about documentation, architecture, and learning resources - Updated docs page floating button with logo icon - Removed confusing 'Escrow Arsenal' message from docs page
1 parent 493b2d7 commit 2ab767b

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

app/docs/page.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,10 +598,18 @@ export default function DocsPage() {
598598
<div className='fixed bottom-8 right-8 z-30 flex flex-col space-y-3'>
599599
<button
600600
onClick={() => openSidebar('developer')}
601-
className='group p-4 rounded-full bg-gradient-to-br from-brand-500 to-brand-600 hover:from-brand-600 hover:to-brand-700 text-white shadow-lg transition-all duration-300 transform hover:scale-110 relative'
601+
className='group p-4 rounded-full bg-gradient-to-br from-brand-500 to-brand-600 hover:from-brand-600 hover:to-brand-700 text-white shadow-lg transition-all duration-300 transform hover:scale-110 relative -p-10'
602602
title='Open Documentation'
603603
>
604-
<span className='text-2xl'>📚</span>
604+
<span className='text-2xl'>
605+
<Image
606+
src='/images/logo/logoicon.png'
607+
alt='STELLAR NEXUS'
608+
width={54}
609+
height={54}
610+
style={{ width: 'auto', height: 'auto' }}
611+
/>
612+
</span>
605613
{/* Tooltip */}
606614
<div className='absolute right-full mr-3 top-1/2 -translate-y-1/2 bg-slate-900 text-white px-3 py-2 rounded-lg text-sm whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity duration-300 pointer-events-none'>
607615
Open Documentation

components/layout/NexusPrime.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,16 @@ export const NexusPrime: React.FC<NexusPrimeProps> = ({
124124
},
125125
},
126126
},
127+
docs: {
128+
welcome:
129+
'Welcome to the Documentation Hub! 📚 Here you\'ll find everything you need to understand the Stellar Nexus Experience platform.',
130+
architecture:
131+
'Explore our comprehensive system architecture, from UI components to smart contracts on the Stellar blockchain! 🏗️',
132+
learning:
133+
'Ready to dive deep? Check out the Developer and Founder guides in the sidebar for starter kits, tutorials, and best practices! 💡',
134+
platform:
135+
'The Stellar Nexus Experience combines trustless escrow mechanics, gamification, and lightning-fast Stellar blockchain technology. ⚡',
136+
},
127137
wallet: {
128138
connected:
129139
'Excellent! Your Stellar wallet is now connected. The power of trustless systems is yours!',
@@ -155,6 +165,16 @@ export const NexusPrime: React.FC<NexusPrimeProps> = ({
155165
} else {
156166
message = characterMessages.demos.welcome;
157167
}
168+
} else if (currentPage === 'docs') {
169+
// Rotate through different docs messages for variety
170+
const docsMessages = [
171+
characterMessages.docs.welcome,
172+
characterMessages.docs.architecture,
173+
characterMessages.docs.learning,
174+
characterMessages.docs.platform,
175+
];
176+
const randomIndex = Math.floor(Math.random() * docsMessages.length);
177+
message = docsMessages[randomIndex];
158178
} else if (currentPage === 'mini-games') {
159179
// If we have a specific gameId, provide game-specific guidance
160180
if (

0 commit comments

Comments
 (0)