+ {/* Create New Card - First */}
+
handleKeyDown(e, handleCreateNew)}
+ className={cn(
+ "group relative px-4 py-8 rounded-md border-2 border-dashed border-sidebar-border bg-sidebar/20 backdrop-blur-sm aspect-[3.5/1]",
+ "hover:border-primary/50 hover:bg-primary/5 hover:shadow-md",
+ "transition-all duration-300 cursor-pointer",
+ "focus:outline-none focus:ring-2 focus:ring-primary/50 focus:ring-offset-2 focus:ring-offset-background",
+ "flex flex-col items-center justify-start"
+ )}
+ >
+ {/* Icon and Title */}
+
+
+
+
+
+
+ Create new workspace
+
+
+
+
+
+ {/* Existing Workspaces */}
+ {workspaces.map((workspace) => (
+
switchWorkspace(workspace.slug || workspace.id)}
+ onKeyDown={(e) => handleKeyDown(e, () => switchWorkspace(workspace.slug || workspace.id))}
+ className={cn(
+ "group relative px-4 py-8 rounded-md border border-sidebar-border/50 backdrop-blur-sm aspect-[3.5/1]",
+ "hover:border-primary/40 hover:shadow-lg hover:shadow-primary/5",
+ "transition-all duration-300 text-left cursor-pointer",
+ "focus:outline-none focus:ring-2 focus:ring-primary/50 focus:ring-offset-2 focus:ring-offset-background",
+ "flex flex-col items-start justify-between"
+ )}
+ >
+ {/* Dynamic Background Tint */}
+
+
+ {/* Icon and Title */}
+
+
+
+
+
+
+ {workspace.name}
+
+
+
+
+ {/* Settings Toggle */}
+
+
+ ))}
+