import LogoWall from "../../app/components/sections/LogoWall";

export default {
  title: "Components/Sections/LogoWall",
  component: LogoWall,
  parameters: {
    layout: "fullscreen",
    docs: {
      description: {
        component: `A responsive logo wall component that displays partner/sponsor logos in a grid layout. Features responsive breakpoints with different layouts and sizing for mobile, tablet, and desktop views.

## Responsive Behavior

- **Mobile**: 3 rows × 2 columns grid with 32px gaps
- **SM**: 2 rows × 3 columns grid with 48px row gap and 32px column gap
- **MD+**: Centered flex-wrap row of logos
- **LG**: Larger logo sizes and 64px horizontal padding
- **XL**: Largest logo sizes and 160px horizontal padding

## Animations & Transitions

- **Fade-in Effect**: Logos fade in from opacity 0 to 60% after component mounts (500ms transition)
- **Loading States**: Progressive loading with fallback timer for reliable display

## Props

- **logos** (optional): Array of logo objects with src, alt, and size properties. If not provided, uses default partner logos.

## Usage Examples

### Custom Logos
\`\`\`jsx
<LogoWall 
  logos={[
    { 
      src: "assets/logos/partners/cu-boulder.svg", 
      alt: "CU Boulder",
      size: "h-10 lg:h-12 xl:h-[60px]",
    },
    { 
      src: "assets/logos/partners/food-not-bombs.svg", 
      alt: "Food Not Bombs",
      size: "h-11 lg:h-14 xl:h-[70px]",
    }
  ]} 
/>
\`\`\`

### Empty State
\`\`\`jsx
<LogoWall logos={[]} />
\`\`\`
This will fall back to the default partner logos.`,
      },
    },
  },
  tags: ["autodocs"],
  argTypes: {
    logos: {
      control: "object",
      description:
        "Array of logo objects with src, alt, and size properties. If not provided, uses default partner logos.",
    },
  },
};

export const Default = {
  args: {},
  parameters: {
    docs: {
      description: {
        story:
          "Default LogoWall with all partner logos. Displays in a 3×2 grid on mobile, 2×3 grid on small screens, single row on medium screens, and larger sizes on large screens. Features a fade-in on mount.",
      },
    },
  },
};
