8
8
FiMonitor ,
9
9
FiFile ,
10
10
FiZap ,
11
- FiMessageSquare ,
11
+ FiArrowUpRight ,
12
12
} from 'react-icons/fi' ;
13
13
import { useSession } from '../../hooks/useSession' ;
14
14
@@ -245,23 +245,28 @@ const WelcomePage: React.FC = () => {
245
245
className = "flex justify-end mt-2 mr-1"
246
246
>
247
247
< motion . button
248
- whileHover = { { scale : 1.05 } }
249
- whileTap = { { scale : 0.95 } }
248
+ whileHover = { { scale : 1.01 } }
249
+ whileTap = { { scale : 0.98 } }
250
250
onClick = { handleDirectChat }
251
251
disabled = { isLoading || isDirectChatLoading }
252
- className = { `flex items-center gap-1 px-3 py-1.5 rounded-3xl text-sm text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-800 border border-gray-200/70 dark:border-gray-700/30 shadow-sm hover:shadow transition-all duration-200 ${
253
- isLoading || isDirectChatLoading ? 'opacity-60 cursor-not-allowed' : ''
252
+ className = { `flex items-center gap-1.5 py-1 text-sm text-gray-500 dark:text-gray-400 relative group transition-colors duration-300 ${
253
+ isLoading || isDirectChatLoading
254
+ ? 'opacity-60 cursor-not-allowed'
255
+ : 'cursor-pointer group-hover:text-gray-900 dark:group-hover:text-gray-100'
254
256
} `}
255
257
type = "button"
256
258
>
259
+ < span className = "group-hover:text-gray-900 dark:group-hover:text-gray-100 transition-colors duration-300" >
260
+ Go to task history
261
+ </ span >
257
262
{ isDirectChatLoading ? (
258
263
< motion . div
259
264
animate = { { rotate : 360 } }
260
265
transition = { { duration : 1 , repeat : Infinity , ease : 'linear' } }
261
266
className = "w-4 h-4"
262
267
>
263
268
< svg
264
- className = "w-4 h-4 text-accent -500"
269
+ className = "w-4 h-4 text-gray -500 dark:text-gray-400 "
265
270
viewBox = "0 0 24 24"
266
271
fill = "none"
267
272
xmlns = "http://www.w3.org/2000/svg"
@@ -276,9 +281,13 @@ const WelcomePage: React.FC = () => {
276
281
</ svg >
277
282
</ motion . div >
278
283
) : (
279
- < FiMessageSquare className = "text-accent-500" size = { 14 } />
284
+ < FiArrowUpRight
285
+ className = "text-gray-500 dark:text-gray-400 group-hover:text-gray-900 dark:group-hover:text-gray-100 transition-colors duration-300"
286
+ size = { 14 }
287
+ />
280
288
) }
281
- < span > Go to task history</ span >
289
+ { /* 添加下划线动画效果 - 黑白风格 */ }
290
+ < span className = "absolute bottom-0 left-0 w-0 h-[1px] bg-gray-500 dark:bg-gray-400 group-hover:w-full group-hover:bg-gray-900 dark:group-hover:bg-gray-100 transition-all duration-300" > </ span >
282
291
</ motion . button >
283
292
</ motion . div >
284
293
0 commit comments