Add lobster icon to CrabNode component and update styles

- Introduced a new lobster icon in place of the animated crab, enhancing visual representation.
- Updated styles for the lobster icon to improve interactivity and appearance.
- Adjusted the Handle component's z-index for better layering in the UI.
This commit is contained in:
Luciano Castillo
2026-01-26 13:37:09 -05:00
parent 0a195e4e73
commit 1b3b687600
5 changed files with 11 additions and 6 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 502 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 575 KiB

+9 -4
View File
@@ -1,6 +1,5 @@
import { Handle, Position } from '@xyflow/react'
import { motion } from 'framer-motion'
import { CrabIdleAnimation } from '~/components/ani'
interface CrabNodeProps {
data: { active: boolean }
@@ -30,15 +29,21 @@ export function CrabNode({ data }: CrabNodeProps) {
}}
/>
{/* Animated crab */}
{/* Lobster icon */}
<div className="relative z-10 crab-icon-glow">
<CrabIdleAnimation className="w-20 h-20" />
<img
src="/lobster-smoke.png"
alt=""
className="w-24 h-24 rounded-full opacity-80 hover:opacity-100 transition-opacity duration-300 animate-pulse"
style={{ imageRendering: 'pixelated' }}
draggable={false}
/>
</div>
<Handle
type="source"
position={Position.Bottom}
className="bg-crab-500! w-4! h-4! border-2! border-shell-900!"
className="bg-crab-500! w-4! h-4! border-2! border-shell-900! z-10"
style={{
boxShadow: '0 0 10px rgba(239, 68, 68, 0.5)',
}}
+1 -1
View File
@@ -84,7 +84,7 @@ export function SessionList({
<div className="relative p-3 border-b-2 border-shell-700 bg-shell-950/50">
<div className="flex items-center justify-between mb-3">
{!collapsed && (
<h2 className="font-mono uppercase text-md text-crab-400 glow-red tracking-wider ml-1">
<h2 className="font-mono uppercase text-sm text-crab-400 glow-red tracking-wider ml-1">
Sessions
</h2>
)}
+1 -1
View File
@@ -69,7 +69,7 @@ export function SettingsPanel({
{/* Header */}
<div className="relative flex items-center justify-between mb-3">
<h2 className="font-mono uppercase text-md text-crab-400 glow-red tracking-wider">
<h2 className="font-mono uppercase text-sm text-crab-400 glow-red tracking-wider">
SETTINGS
</h2>
<button