# Large Visual Focus Case Study

> 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.

A shadcn/ui block from the [@shadcn-ui-blocks](https://www.shadcn-ui-blocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcn-ui-blocks/portfolio-portfolio-case-studies-large-visual-focus-case-study).

- Page, with a live preview: https://shadcn.exchange/r/shadcn-ui-blocks/portfolio-portfolio-case-studies-large-visual-focus-case-study
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcn-ui-blocks/portfolio-portfolio-case-studies-large-visual-focus-case-study-light-325cf68e4b0c2494.png
- Registry item: https://www.shadcn-ui-blocks.com/r/portfolio-portfolio-case-studies-large-visual-focus-case-study.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://www.shadcn-ui-blocks.com/r/portfolio-portfolio-case-studies-large-visual-focus-case-study.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `class-variance-authority`, `lucide-react`, `radix-ui`

## Files

### `components/blocks/portfolio/portfolio-case-studies/large-visual-focus-case-study.tsx`

```tsx
import { useState } from 'react';

import { ChevronDown, ChevronUp, ArrowLeft, ArrowRight } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Badge } from '@/components/ui/badge';
import { cn } from '@/lib/utils';

// Sample case study data
const caseStudy = {
  title: 'Brand Redesign for Modern Finance',
  client: 'FinanceFlow',
  summary:
    'Complete visual overhaul of a financial platform that enhanced user engagement by 47%',
  tags: ['Branding', 'UI Design', 'Visual Identity'],
  year: '2023',
  sections: [
    {
      id: 'hero',
      title: 'The Challenge',
      subtitle: 'From Dated to Dynamic',
      description:
        'FinanceFlow needed a complete brand overhaul to appeal to a younger audience while maintaining trust with existing customers.',
      fullBleedImage:
        'https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=2070&auto=format&fit=crop',
      textPosition: 'left', // left, right, center
      darkOverlay: true,
    },
    {
      id: 'research',
      title: 'User Research',
      subtitle: 'Understanding the audience',
      description:
        'We conducted extensive interviews with both current and potential customers to identify key opportunities for improvement.',
      fullBleedImage:
        'https://images.unsplash.com/photo-1553877522-43269d4ea984?q=80&w=2070&auto=format&fit=crop',
      textPosition: 'right',
      darkOverlay: false,
    },
    {
      id: 'concept',
      title: 'Design Concept',
      subtitle: 'Bold new direction',
      description:
        'We developed a vibrant, modern visual language that balanced professionalism with approachability.',
      fullBleedImage:
        'https://images.unsplash.com/photo-1586717791821-3f44a563fa4c?q=80&w=2070&auto=format&fit=crop',
      textPosition: 'center',
      darkOverlay: true,
    },
    {
      id: 'colors',
      title: 'Color System',
      subtitle: 'Vibrant yet trustworthy',
      description:
        'A carefully crafted palette that conveys both energy and stability, with accessibility at its core.',
      fullBleedImage:
        'https://images.unsplash.com/photo-1541701494587-cb58502866ab?q=80&w=2070&auto=format&fit=crop',
      textPosition: 'left',
      darkOverlay: true,
    },
    {
      id: 'typography',
      title: 'Typography',
      subtitle: 'Clarity and personality',
      description:
        'Custom typeface development that improved readability while establishing a distinct brand voice.',
      fullBleedImage:
        'https://images.unsplash.com/photo-1619632973808-4acf8041df42?q=80&w=2071&auto=format&fit=crop',
      textPosition: 'right',
      darkOverlay: true,
    },
    {
      id: 'mockups',
      title: 'Website Redesign',
      subtitle: 'Digital transformation',
      description:
        'The new brand identity applied to the digital platform, resulting in a 47% increase in engagement.',
      fullBleedImage:
        'https://images.unsplash.com/photo-1561070791-2526d30994b5?q=80&w=2000&auto=format&fit=crop',
      textPosition: 'center',
      darkOverlay: false,
    },
    {
      id: 'mobile',
      title: 'Mobile Experience',
      subtitle: 'On-the-go access',
      description:
        'Optimized for mobile with a focus on quick, essential actions for users on the move.',
      fullBleedImage:
        'https://images.unsplash.com/photo-1555421689-3f034debb7a6?q=80&w=2070&auto=format&fit=crop',
      textPosition: 'left',
      darkOverlay: true,
    },
    {
      id: 'results',
      title: 'The Results',
      subtitle: 'Measurable impact',
      description:
        '47% increase in user engagement, 32% increase in new customer acquisition, and 28% increase in mobile usage.',
      fullBleedImage:
        'https://images.unsplash.com/photo-1460925895917-afdab827c52f?q=80&w=2015&auto=format&fit=crop',
      textPosition: 'right',
      darkOverlay: true,
    },
  ],
  testimonial: {
    quote:
      "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.",
    author: 'Alexandra Chen',
    role: 'CMO, FinanceFlow',
  },
  link: '#',
};

export default function LargeVisualFocusCaseStudy() {
  const [activeSectionIndex, setActiveSectionIndex] = useState(0);
  const [isNavigationVisible, setIsNavigationVisible] = useState(false);

  const nextSection = () => {
    setActiveSectionIndex((prev) =>
      prev < caseStudy.sections.length - 1 ? prev + 1 : prev
    );
  };

  const prevSection = () => {
    setActiveSectionIndex((prev) => (prev > 0 ? prev - 1 : prev));
  };

  const toggleNavigation = () => {
    setIsNavigationVisible((prev) => !prev);
  };

  const goToSection = (index: number) => {
    setActiveSectionIndex(index);
    setIsNavigationVisible(false);
  };

  const activeSection = caseStudy.sections[activeSectionIndex]!;

  return (
    <section className="relative h-screen w-full overflow-hidden bg-black">
      {/* Current section */}
      <div className="relative h-full w-full">
        {/* Full-bleed image */}
        <div className="absolute inset-0 h-full w-full">
          <img
            src={activeSection.fullBleedImage}
            alt={activeSection.title}
            className="object-cover"
          />
          <div
            className={cn(
              'absolute inset-0',
              activeSection.darkOverlay
                ? 'bg-gradient-to-r from-black/80 via-black/50 to-black/30'
                : 'bg-gradient-to-r from-black/30 via-black/10 to-transparent'
            )}
          />
        </div>

        {/* Text overlay */}
        <div
          className={cn(
            'absolute inset-x-0 top-0 bottom-0 flex items-center p-8 md:p-16',
            activeSection.textPosition === 'left'
              ? 'justify-start text-left md:w-1/2'
              : activeSection.textPosition === 'right'
                ? 'justify-end text-right md:ml-auto md:w-1/2'
                : 'justify-center text-center'
          )}
        >
          <div className="max-w-lg">
            <div className="mb-2 flex flex-wrap gap-2">
              {caseStudy.tags.map((tag) => (
                <Badge key={tag} variant="secondary">
                  {tag}
                </Badge>
              ))}
            </div>

            <div className="relative space-y-2 rounded-xl p-6">
              <div
                className={cn(
                  'absolute inset-0 rounded-xl from-black/80 via-black/50 to-black/30 backdrop-blur-md',
                  activeSection.textPosition === 'right'
                    ? 'bg-gradient-to-l'
                    : 'bg-gradient-to-r'
                )}
              />
              <div className="relative z-10 space-y-2">
                <h2 className="text-4xl font-bold tracking-tight text-white md:text-5xl lg:text-6xl">
                  {activeSection.title}
                </h2>
                <p className="text-xl font-medium text-white/90 md:text-2xl">
                  {activeSection.subtitle}
                </p>
                <p className="text-white/70 md:text-lg">
                  {activeSection.description}
                </p>
              </div>
            </div>
          </div>
        </div>

        {/* Section progress indicators (bottom) */}
        <div className="absolute bottom-8 left-1/2 flex -translate-x-1/2 transform gap-1.5">
          {caseStudy.sections.map((_, index) => (
            <button
              key={index}
              onClick={() => goToSection(index)}
              className={cn(
                'h-1.5 rounded-full bg-white/50 transition-all',
                index === activeSectionIndex
                  ? 'w-8 bg-white'
                  : 'w-2 hover:bg-white/70'
              )}
              aria-label={`Go to section ${index + 1}`}
            />
          ))}
        </div>

        {/* Navigation toggle button */}
        <button
          onClick={toggleNavigation}
          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"
        >
          {isNavigationVisible ? (
            <ChevronUp className="h-6 w-6" />
          ) : (
            <ChevronDown className="h-6 w-6" />
          )}
        </button>

        {/* Navigation arrows */}
        <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">
          <Button
            variant="ghost"
            size="icon"
            onClick={prevSection}
            disabled={activeSectionIndex === 0}
            className={cn(
              'h-12 w-12 rounded-full bg-black/50 text-white hover:bg-black/70',
              activeSectionIndex === 0 && 'opacity-0'
            )}
          >
            <ArrowLeft className="h-6 w-6" />
          </Button>
          <Button
            variant="ghost"
            size="icon"
            onClick={nextSection}
            disabled={activeSectionIndex === caseStudy.sections.length - 1}
            className={cn(
              'h-12 w-12 rounded-full bg-black/50 text-white hover:bg-black/70',
              activeSectionIndex === caseStudy.sections.length - 1 &&
                'opacity-0'
            )}
          >
            <ArrowRight className="h-6 w-6" />
          </Button>
        </div>
      </div>

      {/* Expanded navigation overlay */}
      <div
        className={cn(
          'absolute inset-0 z-10 h-full w-full bg-black/90 transition-transform duration-500',
          isNavigationVisible ? 'translate-y-0' : 'translate-y-full'
        )}
      >
        <div className="container mx-auto h-full overflow-y-auto py-20">
          <div className="mb-8 space-y-2 text-center">
            <h2 className="text-3xl font-bold text-white md:text-4xl">
              {caseStudy.title}
            </h2>
            <p className="text-white/70 md:text-lg">{caseStudy.summary}</p>
          </div>

          <div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
            {caseStudy.sections.map((section, index) => (
              <button
                key={section.id}
                onClick={() => goToSection(index)}
                className={cn(
                  'group relative h-32 w-full overflow-hidden rounded-lg border-2 transition-all md:h-44',
                  index === activeSectionIndex
                    ? 'border-white'
                    : 'border-transparent hover:border-white/50'
                )}
              >
                <img
                  src={section.fullBleedImage}
                  alt={section.title}
                  className="object-cover"
                />
                <div className="absolute inset-0 bg-black/40" />
                <div className="absolute inset-0 flex flex-col items-center justify-center space-y-1 p-4 text-center">
                  <h3 className="text-sm font-bold text-white md:text-base">
                    {section.title}
                  </h3>
                  <p className="text-xs text-white/80 md:text-sm">
                    {section.subtitle}
                  </p>
                </div>
              </button>
            ))}
          </div>

          {/* Testimonial */}
          {caseStudy.testimonial && (
            <div className="mx-auto mt-12 max-w-2xl rounded-lg bg-white/10 p-6 text-center">
              <p className="mb-4 text-lg text-white italic md:text-xl">
                &quot;{caseStudy.testimonial.quote}&quot;
              </p>
              <p className="font-medium text-white">
                {caseStudy.testimonial.author}
              </p>
              <p className="text-sm text-white/70">
                {caseStudy.testimonial.role}
              </p>
            </div>
          )}

          <div className="mt-12 text-center">
            <Button asChild>
              <a href={caseStudy.link}>View Complete Case Study</a>
            </Button>
          </div>
        </div>
      </div>
    </section>
  );
}
```

### `components/ui/button.tsx`

```tsx
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { Slot } from "radix-ui"

import { cn } from "@/lib/utils"

const buttonVariants = cva(
  "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",
  {
    variants: {
      variant: {
        default: "bg-primary text-primary-foreground hover:bg-primary/80",
        outline:
          "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",
        secondary:
          "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
        ghost:
          "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
        destructive:
          "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",
        link: "text-primary underline-offset-4 hover:underline",
      },
      size: {
        default:
          "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",
        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",
        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",
        lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
        icon: "size-9",
        "icon-xs":
          "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
        "icon-sm":
          "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
        "icon-lg": "size-10",
      },
    },
    defaultVariants: {
      variant: "default",
      size: "default",
    },
  }
)

function Button({
  className,
  variant = "default",
  size = "default",
  asChild = false,
  ...props
}: React.ComponentProps<"button"> &
  VariantProps<typeof buttonVariants> & {
    asChild?: boolean
  }) {
  const Comp = asChild ? Slot.Root : "button"

  return (
    <Comp
      data-slot="button"
      data-variant={variant}
      data-size={size}
      className={cn(buttonVariants({ variant, size, className }))}
      {...props}
    />
  )
}

export { Button, buttonVariants }
```

### `components/ui/badge.tsx`

```tsx
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { Slot } from "radix-ui"

import { cn } from "@/lib/utils"

const badgeVariants = cva(
  "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!",
  {
    variants: {
      variant: {
        default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
        secondary:
          "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
        destructive:
          "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",
        outline:
          "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
        ghost:
          "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
        link: "text-primary underline-offset-4 hover:underline",
      },
    },
    defaultVariants: {
      variant: "default",
    },
  }
)

function Badge({
  className,
  variant = "default",
  asChild = false,
  ...props
}: React.ComponentProps<"span"> &
  VariantProps<typeof badgeVariants> & { asChild?: boolean }) {
  const Comp = asChild ? Slot.Root : "span"

  return (
    <Comp
      data-slot="badge"
      data-variant={variant}
      className={cn(badgeVariants({ variant }), className)}
      {...props}
    />
  )
}

export { Badge, badgeVariants }
```
