diff --git a/app/page.tsx b/app/page.tsx index 335e987..8a3fb25 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -93,13 +93,32 @@ function JsonArray({ items }: { items: string[] }) { ) } -type Phase = 'typing-whoami' | 'show-whoami' | 'typing-cat' | 'show-json' | 'done' +type IntroPhase = 'typing-whoami' | 'show-whoami' | 'typing-cat' | 'show-json' | 'done' interface HistoryEntry { command: string output: React.ReactNode + isTyping?: boolean } +const AboutJson = () => ( +
+
+ {'{'}{'\n'}
+ {' '}"name": ,{'\n'}
+ {' '}"company": ,{'\n'}
+ {' '}"domain": ,{'\n'}
+ {' '}"role": ,{'\n'}
+ {' '}"experience": ,{'\n'}
+ {' '}"languages": ,{'\n'}
+ {' '}"frameworks": ,{'\n'}
+ {' '}"database": ,{'\n'}
+ {' '}"tools": {'\n'}
+ {'}'}
+
+
+)
+
type CommandResult = React.ReactNode | 'OPEN_GITHUB' | 'OPEN_WORK' | 'CLEAR' | 'FETCH_STATUS'
const COMMANDS: Record
-
- {'{'}{'\n'}
- {' '}"name": ,{'\n'}
- {' '}"company": ,{'\n'}
- {' '}"domain": ,{'\n'}
- {' '}"role": ,{'\n'}
- {' '}"experience": ,{'\n'}
- {' '}"languages": ,{'\n'}
- {' '}"frameworks": ,{'\n'}
- {' '}"database": ,{'\n'}
- {' '}"tools": {'\n'}
- {'}'}
-
-
>
)}
{/* Command history and interactive prompt */}
- {phase === 'done' && (
+ {(introPhase === 'show-whoami' || introPhase === 'show-json' || introPhase === 'done') && (
<>
{history.map((entry, i) => (
-