{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"portfolio-portfolio-case-studies-large-visual-focus-case-study","type":"registry:block","title":"Large Visual Focus Case Study","files":[{"path":"components/blocks/portfolio/portfolio-case-studies/large-visual-focus-case-study.tsx","content":"import { useState } from 'react';\n\nimport { ChevronDown, ChevronUp, ArrowLeft, ArrowRight } from 'lucide-react';\nimport { Button } from '@/components/ui/button';\nimport { Badge } from '@/components/ui/badge';\nimport { cn } from '@/lib/utils';\n\n// Sample case study data\nconst caseStudy = {\n  title: 'Brand Redesign for Modern Finance',\n  client: 'FinanceFlow',\n  summary:\n    'Complete visual overhaul of a financial platform that enhanced user engagement by 47%',\n  tags: ['Branding', 'UI Design', 'Visual Identity'],\n  year: '2023',\n  sections: [\n    {\n      id: 'hero',\n      title: 'The Challenge',\n      subtitle: 'From Dated to Dynamic',\n      description:\n        'FinanceFlow needed a complete brand overhaul to appeal to a younger audience while maintaining trust with existing customers.',\n      fullBleedImage:\n        'https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=2070&auto=format&fit=crop',\n      textPosition: 'left', // left, right, center\n      darkOverlay: true,\n    },\n    {\n      id: 'research',\n      title: 'User Research',\n      subtitle: 'Understanding the audience',\n      description:\n        'We conducted extensive interviews with both current and potential customers to identify key opportunities for improvement.',\n      fullBleedImage:\n        'https://images.unsplash.com/photo-1553877522-43269d4ea984?q=80&w=2070&auto=format&fit=crop',\n      textPosition: 'right',\n      darkOverlay: false,\n    },\n    {\n      id: 'concept',\n      title: 'Design Concept',\n      subtitle: 'Bold new direction',\n      description:\n        'We developed a vibrant, modern visual language that balanced professionalism with approachability.',\n      fullBleedImage:\n        'https://images.unsplash.com/photo-1586717791821-3f44a563fa4c?q=80&w=2070&auto=format&fit=crop',\n      textPosition: 'center',\n      darkOverlay: true,\n    },\n    {\n      id: 'colors',\n      title: 'Color System',\n      subtitle: 'Vibrant yet trustworthy',\n      description:\n        'A carefully crafted palette that conveys both energy and stability, with accessibility at its core.',\n      fullBleedImage:\n        'https://images.unsplash.com/photo-1541701494587-cb58502866ab?q=80&w=2070&auto=format&fit=crop',\n      textPosition: 'left',\n      darkOverlay: true,\n    },\n    {\n      id: 'typography',\n      title: 'Typography',\n      subtitle: 'Clarity and personality',\n      description:\n        'Custom typeface development that improved readability while establishing a distinct brand voice.',\n      fullBleedImage:\n        'https://images.unsplash.com/photo-1619632973808-4acf8041df42?q=80&w=2071&auto=format&fit=crop',\n      textPosition: 'right',\n      darkOverlay: true,\n    },\n    {\n      id: 'mockups',\n      title: 'Website Redesign',\n      subtitle: 'Digital transformation',\n      description:\n        'The new brand identity applied to the digital platform, resulting in a 47% increase in engagement.',\n      fullBleedImage:\n        'https://images.unsplash.com/photo-1561070791-2526d30994b5?q=80&w=2000&auto=format&fit=crop',\n      textPosition: 'center',\n      darkOverlay: false,\n    },\n    {\n      id: 'mobile',\n      title: 'Mobile Experience',\n      subtitle: 'On-the-go access',\n      description:\n        'Optimized for mobile with a focus on quick, essential actions for users on the move.',\n      fullBleedImage:\n        'https://images.unsplash.com/photo-1555421689-3f034debb7a6?q=80&w=2070&auto=format&fit=crop',\n      textPosition: 'left',\n      darkOverlay: true,\n    },\n    {\n      id: 'results',\n      title: 'The Results',\n      subtitle: 'Measurable impact',\n      description:\n        '47% increase in user engagement, 32% increase in new customer acquisition, and 28% increase in mobile usage.',\n      fullBleedImage:\n        'https://images.unsplash.com/photo-1460925895917-afdab827c52f?q=80&w=2015&auto=format&fit=crop',\n      textPosition: 'right',\n      darkOverlay: true,\n    },\n  ],\n  testimonial: {\n    quote:\n      \"The brand redesign has completely transformed how our customers perceive us. We're now seen as innovative and forward-thinking while maintaining our reputation for reliability.\",\n    author: 'Alexandra Chen',\n    role: 'CMO, FinanceFlow',\n  },\n  link: '#',\n};\n\nexport default function LargeVisualFocusCaseStudy() {\n  const [activeSectionIndex, setActiveSectionIndex] = useState(0);\n  const [isNavigationVisible, setIsNavigationVisible] = useState(false);\n\n  const nextSection = () => {\n    setActiveSectionIndex((prev) =>\n      prev < caseStudy.sections.length - 1 ? prev + 1 : prev\n    );\n  };\n\n  const prevSection = () => {\n    setActiveSectionIndex((prev) => (prev > 0 ? prev - 1 : prev));\n  };\n\n  const toggleNavigation = () => {\n    setIsNavigationVisible((prev) => !prev);\n  };\n\n  const goToSection = (index: number) => {\n    setActiveSectionIndex(index);\n    setIsNavigationVisible(false);\n  };\n\n  const activeSection = caseStudy.sections[activeSectionIndex]!;\n\n  return (\n    <section className=\"relative h-screen w-full overflow-hidden bg-black\">\n      {/* Current section */}\n      <div className=\"relative h-full w-full\">\n        {/* Full-bleed image */}\n        <div className=\"absolute inset-0 h-full w-full\">\n          <img\n            src={activeSection.fullBleedImage}\n            alt={activeSection.title}\n            className=\"object-cover\"\n          />\n          <div\n            className={cn(\n              'absolute inset-0',\n              activeSection.darkOverlay\n                ? 'bg-gradient-to-r from-black/80 via-black/50 to-black/30'\n                : 'bg-gradient-to-r from-black/30 via-black/10 to-transparent'\n            )}\n          />\n        </div>\n\n        {/* Text overlay */}\n        <div\n          className={cn(\n            'absolute inset-x-0 top-0 bottom-0 flex items-center p-8 md:p-16',\n            activeSection.textPosition === 'left'\n              ? 'justify-start text-left md:w-1/2'\n              : activeSection.textPosition === 'right'\n                ? 'justify-end text-right md:ml-auto md:w-1/2'\n                : 'justify-center text-center'\n          )}\n        >\n          <div className=\"max-w-lg\">\n            <div className=\"mb-2 flex flex-wrap gap-2\">\n              {caseStudy.tags.map((tag) => (\n                <Badge key={tag} variant=\"secondary\">\n                  {tag}\n                </Badge>\n              ))}\n            </div>\n\n            <div className=\"relative space-y-2 rounded-xl p-6\">\n              <div\n                className={cn(\n                  'absolute inset-0 rounded-xl from-black/80 via-black/50 to-black/30 backdrop-blur-md',\n                  activeSection.textPosition === 'right'\n                    ? 'bg-gradient-to-l'\n                    : 'bg-gradient-to-r'\n                )}\n              />\n              <div className=\"relative z-10 space-y-2\">\n                <h2 className=\"text-4xl font-bold tracking-tight text-white md:text-5xl lg:text-6xl\">\n                  {activeSection.title}\n                </h2>\n                <p className=\"text-xl font-medium text-white/90 md:text-2xl\">\n                  {activeSection.subtitle}\n                </p>\n                <p className=\"text-white/70 md:text-lg\">\n                  {activeSection.description}\n                </p>\n              </div>\n            </div>\n          </div>\n        </div>\n\n        {/* Section progress indicators (bottom) */}\n        <div className=\"absolute bottom-8 left-1/2 flex -translate-x-1/2 transform gap-1.5\">\n          {caseStudy.sections.map((_, index) => (\n            <button\n              key={index}\n              onClick={() => goToSection(index)}\n              className={cn(\n                'h-1.5 rounded-full bg-white/50 transition-all',\n                index === activeSectionIndex\n                  ? 'w-8 bg-white'\n                  : 'w-2 hover:bg-white/70'\n              )}\n              aria-label={`Go to section ${index + 1}`}\n            />\n          ))}\n        </div>\n\n        {/* Navigation toggle button */}\n        <button\n          onClick={toggleNavigation}\n          className=\"absolute top-8 right-8 z-20 flex h-12 w-12 items-center justify-center rounded-full bg-black/50 text-white transition-colors hover:bg-black/70\"\n        >\n          {isNavigationVisible ? (\n            <ChevronUp className=\"h-6 w-6\" />\n          ) : (\n            <ChevronDown className=\"h-6 w-6\" />\n          )}\n        </button>\n\n        {/* Navigation arrows */}\n        <div className=\"absolute right-4 bottom-1/2 left-4 flex translate-y-1/2 transform items-center justify-between md:right-8 md:left-8\">\n          <Button\n            variant=\"ghost\"\n            size=\"icon\"\n            onClick={prevSection}\n            disabled={activeSectionIndex === 0}\n            className={cn(\n              'h-12 w-12 rounded-full bg-black/50 text-white hover:bg-black/70',\n              activeSectionIndex === 0 && 'opacity-0'\n            )}\n          >\n            <ArrowLeft className=\"h-6 w-6\" />\n          </Button>\n          <Button\n            variant=\"ghost\"\n            size=\"icon\"\n            onClick={nextSection}\n            disabled={activeSectionIndex === caseStudy.sections.length - 1}\n            className={cn(\n              'h-12 w-12 rounded-full bg-black/50 text-white hover:bg-black/70',\n              activeSectionIndex === caseStudy.sections.length - 1 &&\n                'opacity-0'\n            )}\n          >\n            <ArrowRight className=\"h-6 w-6\" />\n          </Button>\n        </div>\n      </div>\n\n      {/* Expanded navigation overlay */}\n      <div\n        className={cn(\n          'absolute inset-0 z-10 h-full w-full bg-black/90 transition-transform duration-500',\n          isNavigationVisible ? 'translate-y-0' : 'translate-y-full'\n        )}\n      >\n        <div className=\"container mx-auto h-full overflow-y-auto py-20\">\n          <div className=\"mb-8 space-y-2 text-center\">\n            <h2 className=\"text-3xl font-bold text-white md:text-4xl\">\n              {caseStudy.title}\n            </h2>\n            <p className=\"text-white/70 md:text-lg\">{caseStudy.summary}</p>\n          </div>\n\n          <div className=\"grid gap-6 md:grid-cols-2 lg:grid-cols-3\">\n            {caseStudy.sections.map((section, index) => (\n              <button\n                key={section.id}\n                onClick={() => goToSection(index)}\n                className={cn(\n                  'group relative h-32 w-full overflow-hidden rounded-lg border-2 transition-all md:h-44',\n                  index === activeSectionIndex\n                    ? 'border-white'\n                    : 'border-transparent hover:border-white/50'\n                )}\n              >\n                <img\n                  src={section.fullBleedImage}\n                  alt={section.title}\n                  className=\"object-cover\"\n                />\n                <div className=\"absolute inset-0 bg-black/40\" />\n                <div className=\"absolute inset-0 flex flex-col items-center justify-center space-y-1 p-4 text-center\">\n                  <h3 className=\"text-sm font-bold text-white md:text-base\">\n                    {section.title}\n                  </h3>\n                  <p className=\"text-xs text-white/80 md:text-sm\">\n                    {section.subtitle}\n                  </p>\n                </div>\n              </button>\n            ))}\n          </div>\n\n          {/* Testimonial */}\n          {caseStudy.testimonial && (\n            <div className=\"mx-auto mt-12 max-w-2xl rounded-lg bg-white/10 p-6 text-center\">\n              <p className=\"mb-4 text-lg text-white italic md:text-xl\">\n                &quot;{caseStudy.testimonial.quote}&quot;\n              </p>\n              <p className=\"font-medium text-white\">\n                {caseStudy.testimonial.author}\n              </p>\n              <p className=\"text-sm text-white/70\">\n                {caseStudy.testimonial.role}\n              </p>\n            </div>\n          )}\n\n          <div className=\"mt-12 text-center\">\n            <Button asChild>\n              <a href={caseStudy.link}>View Complete Case Study</a>\n            </Button>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n","type":"registry:component","target":"components/blocks/portfolio/portfolio-case-studies/large-visual-focus-case-study.tsx"},{"path":"components/ui/button.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n  \"group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground hover:bg-primary/80\",\n        outline:\n          \"border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n        destructive:\n          \"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default:\n          \"h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        xs: \"h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3\",\n        sm: \"h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5\",\n        lg: \"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        icon: \"size-9\",\n        \"icon-xs\":\n          \"size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3\",\n        \"icon-sm\":\n          \"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md\",\n        \"icon-lg\": \"size-10\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nfunction Button({\n  className,\n  variant = \"default\",\n  size = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"button\"> &\n  VariantProps<typeof buttonVariants> & {\n    asChild?: boolean\n  }) {\n  const Comp = asChild ? Slot.Root : \"button\"\n\n  return (\n    <Comp\n      data-slot=\"button\"\n      data-variant={variant}\n      data-size={size}\n      className={cn(buttonVariants({ variant, size, className }))}\n      {...props}\n    />\n  )\n}\n\nexport { Button, buttonVariants }\n","type":"registry:ui","target":"components/ui/button.tsx"},{"path":"components/ui/badge.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst badgeVariants = cva(\n  \"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground [a]:hover:bg-primary/80\",\n        secondary:\n          \"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80\",\n        destructive:\n          \"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20\",\n        outline:\n          \"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n    },\n  }\n)\n\nfunction Badge({\n  className,\n  variant = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"span\"> &\n  VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n  const Comp = asChild ? Slot.Root : \"span\"\n\n  return (\n    <Comp\n      data-slot=\"badge\"\n      data-variant={variant}\n      className={cn(badgeVariants({ variant }), className)}\n      {...props}\n    />\n  )\n}\n\nexport { Badge, badgeVariants }\n","type":"registry:ui","target":"components/ui/badge.tsx"}],"description":"A case study block built around one large hero image with supporting copy. Use it when the visual result of the project tells the story best.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}