|
1 | 1 | import { useState, useRef, useEffect } from 'react'; |
2 | 2 | import { useParams, Link } from 'react-router'; |
3 | 3 | import { useAppContext } from '../context/AppContext'; |
| 4 | +import { X } from 'lucide-react'; |
4 | 5 |
|
5 | 6 | // Mock AI responses as fallback |
6 | 7 | const ALIEN_RESPONSES = [ |
@@ -138,7 +139,24 @@ Keep it friendly, slightly flirtatious, and warmly confusing. Keep the grammar s |
138 | 139 |
|
139 | 140 | return ( |
140 | 141 | <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)' }}> |
142 | 160 |
|
143 | 161 | {/* Chat Header */} |
144 | 162 | <div style={{ padding: '20px', position: 'relative', display: 'flex', alignItems: 'center', gap: '16px' }}> |
|
0 commit comments