{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "team-section-4",
  "title": "Team Section 4",
  "description": "Solace UI team section block variation 4.",
  "dependencies": [
    "motion",
    "lucide-react"
  ],
  "files": [
    {
      "path": "src/registry/blocks/team-section/four/index.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport { motion, AnimatePresence } from \"motion/react\";\nimport Image from \"next/image\";\nimport { ArrowLeft, ArrowRight } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\n\ninterface TeamMember {\n  id: string;\n  name: string;\n  role: string;\n  image: string;\n}\n\nconst teamMembers: TeamMember[] = [\n  {\n    id: \"1\",\n    name: \"James Mitchell\",\n    role: \"Product Manager\",\n    image: \"https://assets.solaceui.com/solaceui-member-four.png\",\n  },\n  {\n    id: \"2\",\n    name: \"Sarah Jenkins\",\n    role: \"Lead Designer\",\n    image: \"https://assets.solaceui.com/solaceui-member-five.png\",\n  },\n  {\n    id: \"3\",\n    name: \"David Kim\",\n    role: \"Founder and CEO\",\n    image: \"https://assets.solaceui.com/solaceui-member-one.png\",\n  },\n  {\n    id: \"4\",\n    name: \"Alex Rivera\",\n    role: \"Software Engineer\",\n    image: \"https://assets.solaceui.com/solaceui-member-two.png\",\n  },\n  {\n    id: \"5\",\n    name: \"Dr. Helen Cho\",\n    role: \"Research Director\",\n    image: \"https://assets.solaceui.com/solaceui-member-three.png\",\n  },\n];\n\nexport default function Team4() {\n  const [activeIndex, setActiveIndex] = useState<number>(2);\n\n  const handlePrev = () => {\n    setActiveIndex((prev) => (prev - 1 + teamMembers.length) % teamMembers.length);\n  };\n\n  const handleNext = () => {\n    setActiveIndex((prev) => (prev + 1) % teamMembers.length);\n  };\n\n  return (\n    <section className=\"relative w-full py-24 bg-background overflow-hidden flex flex-col items-center justify-center\">\n      <div className=\"w-full max-w-6xl px-4 md:px-8\">\n\n        {/* Main Images & Floating text container */}\n        <div className=\"relative w-full h-[400px] md:h-[550px] lg:h-[600px] mt-12\">\n\n          {/* Top Fade Overlay */}\n          <div className=\"absolute top-0 left-0 right-0 h-28 bg-gradient-to-b from-background via-background/60 to-transparent pointer-events-none z-10\" />\n\n          {/* Bottom Fade Overlay */}\n          <div className=\"absolute bottom-0 left-0 right-0 h-28 bg-gradient-to-t from-background via-background/60 to-transparent pointer-events-none z-10\" />\n\n          {/* Cards Flex Row */}\n          <div className=\"flex w-full h-full gap-2 sm:gap-4 md:gap-1 items-stretch overflow-visible\">\n            {teamMembers.map((member, index) => {\n              const isActive = index === activeIndex;\n\n              return (\n                <div\n                  key={member.id}\n                  onClick={() => setActiveIndex(index)}\n                  className={cn(\n                    \"relative cursor-pointer transition-all duration-700 ease-out flex-1\",\n                    isActive ? \"flex-[2] md:flex-[2.5]\" : \"flex-[0.8] md:flex-[1]\"\n                  )}\n                >\n                  {/* Floating active member text positioned above upper fade */}\n                  <AnimatePresence mode=\"wait\">\n                    {isActive && (\n                      <motion.div\n                        layoutId=\"activeTeamText\"\n                        initial={{ opacity: 0, y: 10 }}\n                        animate={{ opacity: 1, y: 0 }}\n                        exit={{ opacity: 0, y: -10 }}\n                        transition={{ duration: 0.5, ease: \"easeOut\" }}\n                        className={cn(\n                          \"absolute bottom-[calc(100%+16px)] z-20 whitespace-nowrap pointer-events-none\",\n                          index >= 3 ? \"right-0 text-right\" : \"left-0 text-left\"\n                        )}\n                      >\n                        <span className=\"font-sans font-semibold text-foreground text-md md:text-xl\">\n                          {member.name},\n                        </span>\n                        <span className=\"font-sans text-muted-foreground/60 dark:text-zinc-500 text-md md:text-xl ml-1.5\">\n                          {member.role}\n                        </span>\n                      </motion.div>\n                    )}\n                  </AnimatePresence>\n\n                  {/* Individual member image card */}\n                  <div className=\"w-full h-full rounded-lg overflow-hidden relative shadow-sm\">\n                    <Image\n                      src={member.image}\n                      alt={member.name}\n                      fill\n                      className={cn(\n                        \"object-cover object-center transition-all duration-700 ease-out\",\n                        isActive\n                          ? \"grayscale-0 scale-100 contrast-[1.05]\"\n                          : \"grayscale contrast-[0.95] brightness-90 md:hover:brightness-95 md:hover:scale-[1.01]\"\n                      )}\n                      sizes=\"(max-width: 768px) 30vw, 25vw\"\n                      priority={index === 2}\n                      unoptimized\n                    />\n                  </div>\n                </div>\n              );\n            })}\n          </div>\n        </div>\n\n        {/* Navigation buttons at the bottom center */}\n        <div className=\"flex justify-center items-center gap-2.5 mt-10\">\n          <button\n            onClick={handlePrev}\n            className=\"w-7 h-7 bg-zinc-950 dark:bg-zinc-50 hover:bg-zinc-800 dark:hover:bg-zinc-200 text-zinc-50 dark:text-zinc-950 flex items-center justify-center transition-colors focus:outline-none cursor-pointer\"\n            aria-label=\"Previous team member\"\n          >\n            <ArrowLeft className=\"w-3.5 h-3.5\" />\n          </button>\n          <button\n            onClick={handleNext}\n            className=\"w-7 h-7 bg-zinc-950 dark:bg-zinc-50 hover:bg-zinc-800 dark:hover:bg-zinc-200 text-zinc-50 dark:text-zinc-950 flex items-center justify-center transition-colors focus:outline-none cursor-pointer\"\n            aria-label=\"Next team member\"\n          >\n            <ArrowRight className=\"w-3.5 h-3.5\" />\n          </button>\n        </div>\n\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/team-section-4.tsx"
    }
  ],
  "type": "registry:block"
}