{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "intro-loader-wordmark-demo",
  "type": "registry:block",
  "title": "Intro Loader: Wordmark",
  "description": "Flipbook Preloader example, Wordmark: No images. The wordmark rises a letter at a time as the count runs, then shrinks and flies into the logo's spot in the header. The target can be anything. 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-wordmark-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/intro-loader.json"
  ],
  "files": [
    {
      "path": "components/intro-loader-wordmark-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 stats = [\n  { value: \"€420m\", label: \"Committed since 2019\" },\n  { value: \"38\", label: \"Companies backed\" },\n  { value: \"11 yrs\", label: \"Average hold\" },\n];\n\n// No photography: the wordmark rises letter by letter as the count runs, then\n// flies into the logo's spot in the header. The mark and the logo share their\n// type, so it lands as the logo.\nexport function IntroLoaderWordmarkDemo() {\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-zinc-200 bg-[#10291f] text-[#ece6d8] dark:border-zinc-800\">\n      <BrowserBar url=\"verso.capital\" run={run} onReload={() => setRun((r) => r + 1)} />\n      <IntroLoader\n        key={run}\n        contained\n        once={false}\n        mark=\"Verso\"\n        markClassName=\"font-serif text-[clamp(5rem,27cqw,17rem)] font-normal tracking-[-0.035em]\"\n        counter=\"bottom-right\"\n        counterClassName=\"text-[clamp(1.75rem,5cqw,3rem)] font-normal tracking-[-0.03em] text-[#ece6d8]/60\"\n        className=\"@container flex min-h-0 flex-1 flex-col\"\n      >\n        <header className=\"flex items-center justify-between gap-6 px-5 pt-5 sm:px-8 sm:pt-8\">\n          <IntroLoaderTarget>\n            <span className=\"font-serif text-2xl leading-none tracking-[-0.035em]\">Verso</span>\n          </IntroLoaderTarget>\n          <nav className=\"flex items-center gap-5 text-sm sm:gap-7\">\n            {[\"Portfolio\", \"Approach\"].map((item) => (\n              <IntroLoaderLine key={item} from=\"above\" className=\"hidden @lg:block\">\n                <a\n                  href={`#${item.toLowerCase()}`}\n                  className=\"text-[#ece6d8]/65 transition-colors duration-150 hover:text-[#ece6d8]\"\n                >\n                  {item}\n                </a>\n              </IntroLoaderLine>\n            ))}\n            <IntroLoaderLine from=\"above\">\n              <a\n                href=\"#pitch\"\n                className=\"inline-flex h-9 items-center rounded-full bg-[#ece6d8] px-4 font-medium text-[#10291f] transition-[background-color,scale] duration-150 hover:bg-white active:scale-[0.97]\"\n              >\n                Pitch us\n              </a>\n            </IntroLoaderLine>\n          </nav>\n        </header>\n\n        <div className=\"mt-auto px-5 pb-6 sm:px-8 sm:pb-8\">\n          <h1 className=\"font-serif text-[clamp(2.5rem,7.5cqw,6rem)] leading-[0.95] tracking-[-0.03em]\">\n            <IntroLoaderLine>Patient capital for</IntroLoaderLine>{\" \"}\n            <IntroLoaderLine>\n              companies that <span className=\"italic\">make</span>\n            </IntroLoaderLine>{\" \"}\n            <IntroLoaderLine>real things.</IntroLoaderLine>\n          </h1>\n          <ul className=\"mt-8 grid grid-cols-3 gap-4 border-t border-[#ece6d8]/15 pt-5 sm:mt-10 sm:gap-8\">\n            {stats.map((stat) => (\n              <li key={stat.label}>\n                <IntroLoaderLine className=\"font-serif text-[clamp(1.5rem,3.5cqw,2.25rem)] leading-none tabular-nums\">\n                  {stat.value}\n                </IntroLoaderLine>\n                <IntroLoaderLine className=\"mt-2 text-xs text-[#ece6d8]/55\">{stat.label}</IntroLoaderLine>\n              </li>\n            ))}\n          </ul>\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-white/10 bg-black/15 px-3\">\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-white/15\" />\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-[#ece6d8]/60 transition-[background-color,color,scale] duration-150 hover:bg-white/10 hover:text-[#ece6d8] active:scale-[0.94]\"\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-white/10 px-3 py-1 font-mono text-[11px] text-[#ece6d8]/60\">\n        {url}\n      </span>\n      <span aria-hidden className=\"w-[4.75rem]\" />\n    </div>\n  );\n}\n"
    }
  ]
}