Skip to content

Commit 5c7c6fa

Browse files
committed
Add exit button to chat interface
1 parent a67a619 commit 5c7c6fa

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

src/pages/Chat.tsx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useState, useRef, useEffect } from 'react';
22
import { useParams, Link } from 'react-router';
33
import { useAppContext } from '../context/AppContext';
4+
import { X } from 'lucide-react';
45

56
// Mock AI responses as fallback
67
const ALIEN_RESPONSES = [
@@ -138,7 +139,24 @@ Keep it friendly, slightly flirtatious, and warmly confusing. Keep the grammar s
138139

139140
return (
140141
<div style={{ width: '100%', maxWidth: '800px', margin: '20px auto', padding: '0 20px', flex: 1, display: 'flex', flexDirection: 'column' }}>
141-
<div className="glass-panel" style={{ backgroundColor: '#1a1829', border: 'none', display: 'flex', flexDirection: 'column', height: 'calc(100vh - 120px)' }}>
142+
<div style={{ display: 'flex', justifyContent: 'flex-end', marginBottom: '8px' }}>
143+
<Link to="/explore" style={{
144+
color: 'var(--color-primary)',
145+
textDecoration: 'none',
146+
display: 'flex',
147+
alignItems: 'center',
148+
gap: '4px',
149+
fontSize: '0.9rem',
150+
fontWeight: 'bold',
151+
padding: '6px 12px',
152+
borderRadius: '20px',
153+
background: 'rgba(217, 3, 104, 0.1)',
154+
border: '1px solid var(--color-primary)'
155+
}}>
156+
<X size={16} /> Exit
157+
</Link>
158+
</div>
159+
<div className="glass-panel" style={{ backgroundColor: '#1a1829', border: 'none', display: 'flex', flexDirection: 'column', height: 'calc(100vh - 160px)' }}>
142160

143161
{/* Chat Header */}
144162
<div style={{ padding: '20px', position: 'relative', display: 'flex', alignItems: 'center', gap: '16px' }}>

0 commit comments

Comments
 (0)