{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "intro-loader-lookbook-demo",
  "type": "registry:block",
  "title": "Intro Loader: Lookbook",
  "description": "Flipbook Preloader example, Lookbook: A season label instead of a number, and a tall frame for the looks. The last look lands as the half of the page beside the headline. A take on the preloader (loading screen). Fits preloader, hero and portfolio sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "preloader",
    "hero",
    "portfolio",
    "carousel",
    "number-counter",
    "image"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/intro-loader#intro-loader-lookbook-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/intro-loader.json"
  ],
  "files": [
    {
      "path": "components/intro-loader-lookbook-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { IntroLoader, IntroLoaderLine, IntroLoaderTarget } from \"@/components/ui/intro-loader\";\n\nconst look = (id: string, w: number, h: number) =>\n  `https://images.unsplash.com/photo-${id}?auto=format&fit=crop&w=${w}&h=${h}&q=80`;\n\nconst hero = look(\"1581044777550-4cfa60707c03\", 1100, 1400);\nconst looks = [\n  look(\"1515886657613-9f3515b0c78f\", 500, 750),\n  look(\"1509631179647-0177331693ae\", 500, 750),\n  look(\"1529139574466-a303027c1d8b\", 500, 750),\n  look(\"1496747611176-843222e1e57c\", 500, 750),\n  hero,\n];\n\n// A season label in place of the number, a tall frame, and the last look\n// landing as the half of the page beside the headline.\nexport function IntroLoaderLookbookDemo() {\n  const [run, setRun] = React.useState(0);\n\n  return (\n    <div className=\"flex h-[var(--demo-height,36rem)] w-full flex-col overflow-hidden rounded-xl border border-stone-200 bg-[#efebe4] text-stone-900 dark:border-stone-800 dark:bg-stone-950 dark:text-stone-100\">\n      <BrowserBar url=\"maisonlune.com/ss27\" run={run} onReload={() => setRun((r) => r + 1)} />\n      <IntroLoader\n        key={run}\n        contained\n        once={false}\n        images={looks}\n        brand={<span className=\"font-serif text-lg leading-6 italic\">Maison Lune</span>}\n        label=\"SS27\"\n        counterClassName=\"font-serif text-[clamp(3.5rem,13cqw,8rem)] font-normal tracking-[-0.02em] italic\"\n        frameClassName=\"aspect-[2/3] w-[clamp(7.5rem,17cqw,11rem)] rounded-none\"\n        className=\"@container min-h-0 flex-1\"\n      >\n        {/* Stacked on narrow screens; the look beside the headline on wide ones. */}\n        <div className=\"grid h-full grid-rows-[auto_minmax(0,1fr)_auto] @2xl:grid-cols-[minmax(0,1.1fr)_minmax(0,1fr)] @2xl:grid-rows-[auto_minmax(0,1fr)]\">\n          <header className=\"flex items-start justify-between gap-4 px-5 pt-5 sm:px-8 sm:pt-8\">\n            <span className=\"font-serif text-lg leading-6 italic\">Maison Lune</span>\n            <nav className=\"flex gap-5 text-[11px] leading-6 tracking-[0.16em] uppercase\">\n              {[\"Shop\", \"Lookbook\", \"Stores\"].map((item) => (\n                <IntroLoaderLine key={item} from=\"above\" className={item === \"Stores\" ? \"hidden @sm:block\" : undefined}>\n                  <a\n                    href={`#${item.toLowerCase()}`}\n                    className=\"text-stone-600 transition-colors duration-150 hover:text-stone-900 dark:text-stone-400 dark:hover:text-stone-100\"\n                  >\n                    {item}\n                  </a>\n                </IntroLoaderLine>\n              ))}\n            </nav>\n          </header>\n\n          <div className=\"relative mt-5 min-h-0 @2xl:col-start-2 @2xl:row-span-2 @2xl:row-start-1 @2xl:mt-0\">\n            <IntroLoaderTarget>\n              <img\n                src={hero}\n                alt=\"A woman in a pink ruffled dress standing in a dry summer field\"\n                className=\"absolute inset-0 size-full object-cover\"\n              />\n            </IntroLoaderTarget>\n          </div>\n\n          <div className=\"min-w-0 px-5 pt-5 pb-6 sm:px-8 sm:pb-8 @2xl:col-start-1 @2xl:row-start-2 @2xl:self-end\">\n            <IntroLoaderLine className=\"text-[11px] tracking-[0.2em] text-stone-500 uppercase\">\n              Spring / Summer 2027\n            </IntroLoaderLine>\n            <h1 className=\"mt-3 font-serif text-[clamp(2.5rem,9.5cqw,7.5rem)] leading-[0.9] tracking-[-0.035em] @2xl:mt-4\">\n              <IntroLoaderLine>Summer,</IntroLoaderLine>\n              <IntroLoaderLine className=\"italic\">undone.</IntroLoaderLine>\n            </h1>\n            <IntroLoaderLine className=\"mt-5 hidden max-w-[17rem] text-sm leading-relaxed text-pretty text-stone-600 @2xl:block dark:text-stone-400\">\n              Washed linen, raw silk and cotton voile, cut loose for long days by the water.\n            </IntroLoaderLine>\n            <IntroLoaderLine className=\"mt-4 @2xl:mt-6\">\n              <a\n                href=\"#shop\"\n                className=\"group inline-flex items-center gap-2 text-sm font-medium underline decoration-stone-400 underline-offset-4 transition-colors duration-150 hover:decoration-current\"\n              >\n                Shop the collection\n                <span aria-hidden className=\"transition-transform duration-200 group-hover:translate-x-0.5\">\n                  →\n                </span>\n              </a>\n            </IntroLoaderLine>\n          </div>\n        </div>\n      </IntroLoader>\n    </div>\n  );\n}\n\nfunction BrowserBar({ url, run, onReload }: { url: string; run: number; onReload: () => void }) {\n  return (\n    <div className=\"flex h-10 shrink-0 items-center gap-3 border-b border-stone-200 bg-white/60 px-3 dark:border-stone-800 dark:bg-stone-900/60\">\n      <div aria-hidden className=\"flex gap-1.5\">\n        {[0, 1, 2].map((dot) => (\n          <span key={dot} className=\"size-2.5 rounded-full bg-stone-300 dark:bg-stone-700\" />\n        ))}\n      </div>\n      <button\n        type=\"button\"\n        onClick={onReload}\n        aria-label=\"Reload to play it again\"\n        title=\"Play again\"\n        className=\"grid size-7 place-items-center rounded-md text-stone-500 transition-[background-color,color,scale] duration-150 hover:bg-stone-200/70 hover:text-stone-900 active:scale-[0.94] dark:hover:bg-stone-800 dark:hover:text-stone-100\"\n      >\n        <svg\n          viewBox=\"0 0 16 16\"\n          fill=\"none\"\n          stroke=\"currentColor\"\n          strokeWidth=\"1.5\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          className=\"size-3.5 transition-[rotate] duration-500 ease-[cubic-bezier(0.22,1,0.36,1)]\"\n          style={{ rotate: `${run * 360}deg` }}\n        >\n          <path d=\"M13.5 8a5.5 5.5 0 1 1-1.6-3.9\" />\n          <path d=\"M13.5 2.5v3h-3\" />\n        </svg>\n      </button>\n      <span className=\"mx-auto truncate rounded-md bg-stone-100 px-3 py-1 font-mono text-[11px] text-stone-500 dark:bg-stone-800/80 dark:text-stone-400\">\n        {url}\n      </span>\n      <span aria-hidden className=\"w-[4.75rem]\" />\n    </div>\n  );\n}\n"
    }
  ]
}