{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"broken-signal-word-glitching-every-few-seconds","type":"registry:block","title":"Broken Signal Word Glitch","description":"","dependencies":[],"files":[{"path":"components/we-inc/broken-signal-word-glitching-every-few-seconds.tsx","type":"registry:component","content":"import { useEffect, useRef, useState } from \"react\";\n\nconst before = \"Your website is\";\nconst word = \"broken\";\nconst after = \"We will mend it by Friday.\";\n\nexport default function BrokenSignalWordGlitch() {\n  const root = useRef<HTMLElement>(null);\n  const [visible, setVisible] = useState(true);\n\n  useEffect(() => {\n    const el = root.current;\n    if (!el) return;\n    const io = new IntersectionObserver(([entry]) => setVisible(entry.isIntersecting));\n    io.observe(el);\n    return () => io.disconnect();\n  }, []);\n\n  return (\n    <section ref={root} data-paused={visible ? \"false\" : \"true\"} className=\"w10sig bg-[#f3efe6] px-5 py-20 sm:px-10 sm:py-28\">\n      <style>{`\n        .w10sig { --w10sig-ink: #1d1b18; --w10sig-rose: #d1495b; --w10sig-teal: #1f8a82; --w10sig-every: 5s; }\n        .w10sig-word { position: relative; display: inline-block; color: var(--w10sig-ink); animation: w10sig-jolt var(--w10sig-every) steps(1, end) infinite; }\n        .w10sig-word::before, .w10sig-word::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: 0; }\n        .w10sig-word::before { color: var(--w10sig-rose); animation: w10sig-a var(--w10sig-every) steps(1, end) infinite; }\n        .w10sig-word::after { color: var(--w10sig-teal); animation: w10sig-b var(--w10sig-every) steps(1, end) infinite; }\n        .w10sig-mark { background: linear-gradient(transparent 62%, rgba(209,73,91,0.22) 62% 92%, transparent 92%); }\n        @keyframes w10sig-jolt { 0% { transform: none; } 30% { transform: translateX(-3px) skewX(6deg); } 32% { transform: translateX(4px); } 34% { transform: translateX(-1px) skewX(-3deg); } 36% { transform: none; } }\n        @keyframes w10sig-a {\n          0% { opacity: 0; clip-path: inset(0 0 0 0); transform: none; }\n          30% { opacity: 1; clip-path: inset(10% 0 58% 0); transform: translateX(-12px); }\n          32% { opacity: 1; clip-path: inset(55% 0 20% 0); transform: translateX(9px); }\n          34% { opacity: 1; clip-path: inset(30% 0 42% 0); transform: translateX(-5px); }\n          36% { opacity: 0; clip-path: inset(0 0 0 0); transform: none; }\n        }\n        @keyframes w10sig-b {\n          0% { opacity: 0; clip-path: inset(0 0 0 0); transform: none; }\n          30% { opacity: 1; clip-path: inset(60% 0 12% 0); transform: translateX(10px); }\n          32% { opacity: 1; clip-path: inset(18% 0 60% 0); transform: translateX(-8px); }\n          34% { opacity: 1; clip-path: inset(70% 0 4% 0); transform: translateX(6px); }\n          36% { opacity: 0; clip-path: inset(0 0 0 0); transform: none; }\n        }\n        .w10sig[data-paused=\"true\"] .w10sig-word, .w10sig[data-paused=\"true\"] .w10sig-word::before, .w10sig[data-paused=\"true\"] .w10sig-word::after { animation-play-state: paused; }\n        @media (prefers-reduced-motion: reduce) {\n          .w10sig-word, .w10sig-word::before, .w10sig-word::after { animation: none; }\n        }\n      `}</style>\n      <div className=\"mx-auto max-w-4xl\">\n        <p className=\"text-sm font-semibold uppercase tracking-[0.2em] text-[#6b5f52]\">Patchwork Web Repair</p>\n        <h1 className=\"mt-5 font-serif text-[clamp(40px,7.4vw,92px)] font-medium leading-[1.02] tracking-tight text-[#1d1b18]\">\n          {before}{\" \"}\n          <span className=\"w10sig-mark whitespace-nowrap\">\n            <span className=\"sr-only\">{word}.</span>\n            <span aria-hidden=\"true\" className=\"w10sig-word\" data-text={word}>{word}</span>\n            <span aria-hidden=\"true\">.</span>\n          </span>{\" \"}\n          <span className=\"text-[#5b5248]\">{after}</span>\n        </h1>\n        <p className=\"mt-8 max-w-xl text-lg leading-relaxed text-[#4a433b]\">\n          Dead links, a contact form that stopped sending, a checkout that hangs on phones. Send us the address and we will send back a fixed site and a plain list of what was wrong.\n        </p>\n        <div className=\"mt-10 flex flex-wrap items-center gap-4\">\n          <a\n            href=\"#\"\n            className=\"inline-flex h-12 items-center rounded-lg bg-[#1d1b18] px-6 text-sm font-semibold text-[#f3efe6] transition hover:bg-[#33302b] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#d1495b] focus-visible:ring-offset-2 focus-visible:ring-offset-[#f3efe6]\"\n          >\n            Get a repair quote\n          </a>\n          <span className=\"text-sm text-[#5b5248]\">Fixed price, quoted within a day</span>\n        </div>\n      </div>\n    </section>\n  );\n}\n"}]}
