{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"machined-aluminium-prompt-block-with-a-slot-that-swallows-a-typed-card-and-hands-back-a-printed-homepage","type":"registry:block","title":"Machined Aluminium Prompt Block with a Slot That Swallows a Typed Card and Hands Back a Printed Homepage","description":"Prompt box drawn as an aluminium block: type on a card, the slot swallows it, a light pipe fills blue and a homepage rises out. Free React and HTML code.","dependencies":["framer-motion"],"files":[{"path":"components/we-inc/machined-aluminium-prompt-block-with-a-slot-that-swallows-a-typed-card-and-hands-back-a-printed-homepage.tsx","type":"registry:component","content":"import { useEffect, useRef, useState } from \"react\";\nimport type { CSSProperties, KeyboardEvent as ReactKeyboardEvent } from \"react\";\nimport { motion, useReducedMotion } from \"framer-motion\";\n\n// The cards the block feeds itself while nobody is typing. Each sentence comes back as the page beside it.\nconst briefs = [\n  { sentence: \"A sourdough bakery in Leith with a weekly bread subscription\", brand: \"Crumb & Tide\", links: [\"Loaves\", \"Subscribe\", \"Find us\"], headline: \"Bread worth setting an alarm for.\", cta: \"Start a bread box\", note: \"Baked from four each morning\", focus: \"50% 62%\", src: \"https://images.pexels.com/photos/30350350/pexels-photo-30350350.jpeg?auto=compress&cs=tinysrgb&w=640\", alt: \"Round sourdough loaves cooling on a wire rack in a bakery kitchen\" },\n  { sentence: \"A surf school in Ericeira where families book lessons online\", brand: \"Saltline Surf\", links: [\"Lessons\", \"Kids\", \"Book\"], headline: \"Stand up on your first morning.\", cta: \"Book a lesson\", note: \"Boards and wetsuits included\", focus: \"50% 45%\", src: \"https://images.pexels.com/photos/5689762/pexels-photo-5689762.jpeg?auto=compress&cs=tinysrgb&w=640\", alt: \"A surfer in a wetsuit carrying a board through shallow water under a clear sky\" },\n  { sentence: \"A florist in Bath that delivers peony bunches every Friday\", brand: \"Halloway Stems\", links: [\"Bunches\", \"Weddings\", \"Deliver\"], headline: \"Fridays should smell like peonies.\", cta: \"Send a bunch\", note: \"Cut to order, wrapped in paper\", focus: \"50% 55%\", src: \"https://images.pexels.com/photos/32375838/pexels-photo-32375838.jpeg?auto=compress&cs=tinysrgb&w=640\", alt: \"Pink peonies standing in glass vases\" },\n];\nconst BLUE = \"#4F98FB\";\nconst INK = \"#0B0D12\";\nconst PAPER = \"#F6F4EF\";\nconst HOLD = 4400; // how long the self-running demo leaves a finished page standing\nconst MAX = 78; // characters that fit on the card\n\nconst W = 560, H = 640; // the scene is drawn at this size and scaled to fit\nconst SLOT_Y = 404; // where the card meets the block\nconst BRIEF_H = 232, PAGE_H = 376;\nconst FONT = '\"Inter Tight\", \"Inter\", ui-sans-serif, system-ui, sans-serif';\nconst BRUSH = \"repeating-linear-gradient(0deg,rgba(255,255,255,0.07) 0 1px,rgba(0,0,0,0.05) 1px 2px,rgba(255,255,255,0) 2px 3px), repeating-linear-gradient(0deg,rgba(0,0,0,0) 0 11px,rgba(0,0,0,0.035) 11px 12px,rgba(255,255,255,0.05) 12px 13px)\";\n\ntype Phase = \"type\" | \"down\" | \"read\" | \"show\";\ntype Page = { brand: string; links: string[]; headline: string; cta: string; note: string; src?: string; alt?: string; focus?: string };\n\nconst pageFrom = (words: string): Page => {\n  const clean = words.trim().replace(/\\s+/g, \" \").replace(/[.!?]+$/, \"\");\n  const head = clean.length > 52 ? `${clean.slice(0, 50).replace(/\\s+\\S*$/, \"\")}...` : clean;\n  return { brand: \"Your page\", links: [\"About\", \"Work\", \"Contact\"], headline: `${head.charAt(0).toUpperCase()}${head.slice(1)}.`, cta: \"Get in touch\", note: \"Set from the sentence on your card\" };\n};\n\nfunction Screw({ style }: { style: CSSProperties }) {\n  return (\n    <span aria-hidden=\"true\" className=\"absolute h-[13px] w-[13px] rounded-full\" style={{ background: \"radial-gradient(circle at 36% 30%,#eef1f5,#9aa1ac 48%,#4a4f58 78%,#22252a)\", boxShadow: \"0 1px 0 rgba(255,255,255,0.55), inset 0 0 0 1px rgba(0,0,0,0.35), 0 0 0 2px rgba(0,0,0,0.16)\", ...style }}>\n      <span className=\"absolute left-[3.5px] top-[3.5px] h-[6px] w-[6px] bg-[#15171b]\" style={{ clipPath: \"polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)\" }} />\n    </span>\n  );\n}\n\nexport default function MachinedPromptBlock() {\n  const reduce = !!useReducedMotion();\n  const root = useRef<HTMLDivElement>(null);\n  const field = useRef<HTMLTextAreaElement>(null);\n  const [k, setK] = useState(1);\n  const [text, setText] = useState(() => briefs[0].sentence.slice(0, briefs[0].sentence.length - 4));\n  const [phase, setPhase] = useState<Phase>(\"type\");\n  const [page, setPage] = useState<Page>(briefs[0]);\n  const [said, setSaid] = useState(\"\");\n  const mine = useRef(false); // a visitor has taken the card\n  const timers = useRef<number[]>([]);\n  const later = (fn: () => void, ms: number) => { timers.current.push(window.setTimeout(fn, ms)); };\n  const stop = () => { timers.current.forEach((t) => window.clearTimeout(t)); timers.current = []; };\n\n  // Card down, light across, page up.\n  const feed = (result: Page, after?: () => void) => {\n    setPage(result);\n    setSaid(\"\");\n    if (reduce) { setPhase(\"show\"); setSaid(`Printed: ${result.headline}`); return; }\n    setPhase(\"down\");\n    later(() => setPhase(\"read\"), 380);\n    later(() => { setPhase(\"show\"); setSaid(`Printed: ${result.headline}`); if (after) after(); }, 900);\n  };\n\n  useEffect(() => {\n    const el = root.current;\n    if (!el) return;\n    const fit = () => setK(Math.max(0.5, Math.min(1.14, (el.clientWidth - 16) / W)));\n    fit();\n    const ro = new ResizeObserver(fit);\n    ro.observe(el);\n    // The light on the metal follows the pointer.\n    const move = (e: PointerEvent) => { const r = el.getBoundingClientRect(); el.style.setProperty(\"--mx\", `${(((e.clientX - r.left) / r.width) * 100).toFixed(1)}%`); };\n    el.addEventListener(\"pointermove\", move);\n    return () => { ro.disconnect(); el.removeEventListener(\"pointermove\", move); };\n  }, []);\n\n  useEffect(() => {\n    if (reduce) { setText(briefs[0].sentence); setPage(briefs[0]); setPhase(\"show\"); return; }\n    const play = (i: number, from: number) => {\n      const s = briefs[i].sentence;\n      let n = from;\n      setPhase(\"type\"); setText(s.slice(0, n));\n      const key = () => {\n        if (mine.current) return;\n        n += 1; setText(s.slice(0, n));\n        if (n < s.length) later(key, 34 + ((n * 37) % 46));\n        else later(() => feed(briefs[i], () => later(() => { setPhase(\"down\"); later(() => play((i + 1) % briefs.length, 0), 520); }, HOLD)), from ? 140 : 300);\n      };\n      later(key, from ? 90 : 620);\n    };\n    play(0, briefs[0].sentence.length - 4);\n    return stop;\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [reduce]);\n\n  const take = () => {\n    if (mine.current && phase === \"type\") return;\n    mine.current = true; stop();\n    setText(\"\"); setPhase(\"type\"); setSaid(\"\");\n  };\n  const submit = () => {\n    if (phase === \"show\" || phase === \"read\" || phase === \"down\") { take(); field.current?.focus(); return; }\n    if (!text.trim()) { field.current?.focus(); return; }\n    const demo = briefs.find((b) => b.sentence === text);\n    mine.current = true; stop();\n    feed(demo ?? pageFrom(text));\n  };\n  const onKey = (e: ReactKeyboardEvent<HTMLTextAreaElement>) => { if (e.key === \"Enter\") { e.preventDefault(); submit(); } };\n\n  const lit = phase === \"read\" || phase === \"show\";\n  const up = { type: \"spring\" as const, stiffness: 150, damping: 15, mass: 0.9 };\n  const down = { duration: 0.36, ease: [0.5, 0, 0.9, 0.4] as [number, number, number, number] };\n\n  return (\n    <div ref={root} className=\"relative flex min-h-[460px] sm:min-h-[720px] w-full items-center justify-center overflow-hidden bg-[#0B0D12] py-6\" style={{ fontFamily: FONT, backgroundImage: \"radial-gradient(60% 46% at 50% 30%,rgba(120,140,180,0.16),rgba(11,13,18,0) 70%), radial-gradient(70% 30% at 50% 84%,rgba(255,255,255,0.05),rgba(11,13,18,0) 70%)\" }}>\n      <style>{`\n        @keyframes machined-prompt-block-caret { 0%,49% { opacity: 1 } 50%,100% { opacity: 0 } }\n        @keyframes machined-prompt-block-breathe { 0%,100% { opacity: 0.72 } 50% { opacity: 1 } }\n        .machined-prompt-block-field::placeholder { color: rgba(11,13,18,0.34); }\n        .machined-prompt-block-field::selection { background: rgba(79,152,251,0.3); }\n        @media (prefers-reduced-motion: reduce) { .machined-prompt-block-anim { animation: none !important; } }\n      `}</style>\n      <div style={{ width: W * k, height: H * k }}>\n        <div className=\"relative\" style={{ width: W, height: H, transform: `scale(${k})`, transformOrigin: \"0 0\" }}>\n\n          {/* What the table sees: a soft shadow, and blue spilling out while the block reads. */}\n          <div aria-hidden=\"true\" className=\"absolute left-[10px] top-[556px] h-[70px] w-[540px] rounded-[50%]\" style={{ background: \"radial-gradient(closest-side,rgba(0,0,0,0.85),rgba(0,0,0,0))\" }} />\n          <div aria-hidden=\"true\" className=\"absolute left-[40px] top-[548px] h-[80px] w-[480px] rounded-[50%] transition-opacity duration-500\" style={{ background: \"radial-gradient(closest-side,rgba(79,152,251,0.5),rgba(79,152,251,0))\", opacity: lit ? 0.9 : 0.12 }} />\n\n          <div aria-hidden=\"true\" className=\"absolute left-[30px] top-[584px] h-[44px] w-[500px] opacity-40\" style={{ background: \"linear-gradient(180deg,rgba(150,160,180,0.5),rgba(150,160,180,0) 80%)\", filter: \"blur(3px)\", borderRadius: \"0 0 40px 40px\" }} />\n          <div aria-hidden=\"true\" className=\"absolute left-[64px] top-[578px] h-[9px] w-[64px] rounded-b-[5px] bg-[#050608]\" />\n          <div aria-hidden=\"true\" className=\"absolute left-[432px] top-[578px] h-[9px] w-[64px] rounded-b-[5px] bg-[#050608]\" />\n\n          {/* Top face of the block, with the slot milled into it. */}\n          <div aria-hidden=\"true\" className=\"absolute left-[30px] top-[386px] h-[36px] w-[500px]\" style={{ clipPath: \"polygon(22px 0,478px 0,500px 100%,0 100%)\", background: `${BRUSH}, linear-gradient(180deg,#70777f 0%,#a9afb9 26%,#d9dde3 70%,#f4f6f9 100%)` }} />\n          <div aria-hidden=\"true\" className=\"absolute left-[88px] top-[398px] h-[11px] w-[384px] rounded-[6px]\" style={{ background: \"linear-gradient(180deg,#000 0%,#07090d 60%,#1b1f27 100%)\", boxShadow: \"0 1px 0 rgba(255,255,255,0.9), 0 -1px 0 rgba(0,0,0,0.35), inset 0 2px 3px #000\" }} />\n          <div aria-hidden=\"true\" className=\"absolute left-[96px] top-[400px] h-[7px] w-[368px] rounded-full transition-opacity duration-300\" style={{ background: BLUE, boxShadow: `0 0 12px 3px ${BLUE}, 0 -10px 34px 12px rgba(79,152,251,0.5)`, opacity: lit ? 1 : 0.1 }} />\n\n          {/* The two cards ride in a window that ends at the slot, so they vanish into the metal. */}\n          <div className=\"absolute left-0 top-0\" style={{ width: W, height: SLOT_Y, clipPath: \"inset(-300px -200px 0 -200px)\" }}>\n            {/* The page that comes back. */}\n            <motion.div aria-hidden={phase !== \"show\"} className=\"absolute left-[102px] w-[356px] cursor-pointer\" style={{ height: PAGE_H, top: SLOT_Y - PAGE_H + 22 }} initial={false} animate={{ y: phase === \"show\" ? 0 : PAGE_H + 8 }} transition={reduce ? { duration: 0 } : phase === \"show\" ? up : down} onClick={() => { take(); field.current?.focus(); }}>\n              <div className=\"relative h-full w-full overflow-hidden rounded-[12px]\" style={{ background: `linear-gradient(180deg,#fdfcf9 0%,${PAPER} 70%,#e9e6de 100%)`, boxShadow: \"0 0 0 1px rgba(0,0,0,0.25), 0 30px 60px -10px rgba(0,0,0,0.8), 0 0 44px -6px rgba(79,152,251,0.45)\" }}>\n                <div className=\"flex items-center justify-between px-[18px] pt-[15px]\">\n                  <span className=\"flex items-center gap-[6px] text-[12px] font-extrabold tracking-[-0.02em] text-[#0B0D12]\"><span className=\"h-[8px] w-[8px] rounded-full\" style={{ background: BLUE }} />{page.brand}</span>\n                  <span className=\"flex gap-[11px] text-[9.5px] font-semibold text-[#0B0D12]/60\">{page.links.map((l) => <span key={l}>{l}</span>)}</span>\n                </div>\n                <p className=\"px-[18px] pt-[13px] text-[31px] font-black leading-[0.94] tracking-[-0.045em] text-[#0B0D12]\">{page.headline}</p>\n                <div className=\"relative mx-[18px] mt-[13px] h-[128px] overflow-hidden rounded-[9px]\" style={{ background: page.src ? \"#93a4bd\" : `linear-gradient(135deg,#2f74dc,${BLUE} 55%,#b9d8ff)` }}>\n                  {page.src ? (\n                    <img src={page.src} alt={page.alt} width={640} height={427} className=\"h-full w-full object-cover\" style={{ objectPosition: page.focus }} />\n                  ) : (\n                    <span aria-hidden=\"true\" className=\"absolute inset-0\" style={{ backgroundImage: \"linear-gradient(rgba(255,255,255,0.22) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.22) 1px,transparent 1px)\", backgroundSize: \"20px 20px\" }}>\n                      <span className=\"absolute left-[16px] top-[18px] h-[52px] w-[104px] rounded-[6px] border-[1.5px] border-white/80\" />\n                      <span className=\"absolute left-[134px] top-[18px] h-[8px] w-[120px] rounded-full bg-white/85\" />\n                      <span className=\"absolute left-[134px] top-[34px] h-[8px] w-[84px] rounded-full bg-white/55\" />\n                      <span className=\"absolute left-[16px] top-[86px] h-[24px] w-[290px] rounded-[6px] border-[1.5px] border-dashed border-white/70\" />\n                    </span>\n                  )}\n                </div>\n                <div className=\"flex items-center gap-[11px] px-[18px] pt-[13px]\">\n                  <span className=\"rounded-full px-[14px] py-[8px] text-[11.5px] font-extrabold tracking-[-0.01em] text-[#0B0D12]\" style={{ background: BLUE, boxShadow: \"inset 0 1px 0 rgba(255,255,255,0.5), 0 3px 8px -2px rgba(79,152,251,0.8)\" }}>{page.cta}</span>\n                  <span className=\"text-[10px] font-semibold leading-tight text-[#0B0D12]/60\">{page.note}</span>\n                </div>\n                <span aria-hidden=\"true\" className=\"pointer-events-none absolute inset-0\" style={{ background: \"linear-gradient(0deg,rgba(79,152,251,0.38) 0%,rgba(79,152,251,0) 17%)\" }} />\n              </div>\n            </motion.div>\n\n            {/* The card you type on. */}\n            <motion.div className=\"absolute left-[102px] w-[356px]\" style={{ height: BRIEF_H, top: SLOT_Y - BRIEF_H + 26 }} initial={false} animate={{ y: phase === \"type\" ? 0 : BRIEF_H + 8, rotate: phase === \"type\" ? -0.6 : 0 }} transition={reduce ? { duration: 0 } : phase === \"type\" ? up : down}>\n              <div className=\"relative h-full w-full\" style={{ filter: \"drop-shadow(0 26px 30px rgba(0,0,0,0.7))\" }}>\n                <div className=\"absolute inset-0\" style={{ clipPath: \"polygon(0 12px,12px 0,calc(100% - 30px) 0,100% 30px,100% 100%,0 100%)\", background: `linear-gradient(180deg,#fefdfb 0%,${PAPER} 62%,#e4e0d7 100%)` }}>\n                  <span aria-hidden=\"true\" className=\"absolute inset-0\" style={{ background: \"linear-gradient(102deg,rgba(255,255,255,0.7) 0%,rgba(255,255,255,0) 30%)\" }} />\n                  <span aria-hidden=\"true\" className=\"absolute left-0 top-0 h-full w-[7px]\" style={{ background: BLUE }} />\n                  <div aria-hidden=\"true\" className=\"absolute left-[24px] right-[40px] top-[16px] flex items-center justify-between font-mono text-[9px] font-bold uppercase tracking-[0.2em] text-[#0B0D12]/55\">\n                    <span style={{ color: \"#2f74dc\" }}>Brief card</span>\n                    <span>{String(text.length).padStart(2, \"0\")} / {MAX}</span>\n                  </div>\n                  <div aria-hidden=\"true\" className=\"absolute left-[24px] right-[24px] top-[36px] h-px bg-[#0B0D12]/15\" />\n                  <label htmlFor=\"machined-prompt-block-field\" className=\"sr-only\">Describe the website you want in one sentence</label>\n                  <textarea\n                    id=\"machined-prompt-block-field\"\n                    ref={field}\n                    value={text}\n                    maxLength={MAX}\n                    rows={3}\n                    spellCheck={false}\n                    placeholder=\"Describe your business in one sentence\"\n                    onFocus={() => { if (!mine.current) take(); }}\n                    onChange={(e) => { mine.current = true; stop(); setPhase(\"type\"); setText(e.target.value.replace(/\\n/g, \"\")); }}\n                    onKeyDown={onKey}\n                    className=\"machined-prompt-block-field absolute left-[24px] top-[46px] h-[100px] w-[310px] resize-none overflow-hidden border-0 bg-transparent p-0 text-[26px] font-extrabold leading-[1.14] tracking-[-0.035em] text-[#0B0D12] outline-none\"\n                    style={{ caretColor: BLUE, fontFamily: FONT }}\n                  />\n                  {/* A printed caret for the self-typing demo, where the field is not focused. */}\n                  {!mine.current && phase === \"type\" && (\n                    <span aria-hidden=\"true\" className=\"machined-prompt-block-anim absolute left-[24px] top-[150px] flex items-center gap-[6px] font-mono text-[9px] font-bold uppercase tracking-[0.2em] text-[#2f74dc]\"><span className=\"machined-prompt-block-anim h-[9px] w-[5px]\" style={{ background: BLUE, animation: \"machined-prompt-block-caret 1s steps(1) infinite\" }} />Typing</span>\n                  )}\n                  <div aria-hidden=\"true\" className=\"absolute bottom-[38px] left-[24px] right-[24px] flex items-center justify-between\">\n                    <span className=\"flex gap-[5px]\">{[0, 1, 2, 3, 4, 5, 6].map((i) => <span key={i} className=\"h-[9px] w-[5px] rounded-[1px] bg-[#0B0D12]\" style={{ opacity: i % 3 === 1 ? 0.2 : 0.75 }} />)}</span>\n                    <span className=\"flex items-center gap-[6px] font-mono text-[9px] font-bold uppercase tracking-[0.2em] text-[#0B0D12]/55\">This end in\n                      <svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" aria-hidden=\"true\"><path d=\"M1 3l4 4 4-4\" fill=\"none\" stroke=\"#2f74dc\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" /></svg>\n                    </span>\n                  </div>\n                </div>\n              </div>\n            </motion.div>\n          </div>\n\n          {/* Front lip of the slot and the face of the block. */}\n          <div aria-hidden=\"true\" className=\"absolute left-[30px] top-[420px] h-[3px] w-[500px] rounded-full\" style={{ background: \"linear-gradient(90deg,rgba(255,255,255,0.5),#fff 30%,#fff 70%,rgba(255,255,255,0.5))\" }} />\n          <div className=\"absolute left-[30px] top-[422px] h-[160px] w-[500px] overflow-hidden rounded-b-[16px] rounded-t-[3px]\" style={{ background: `${BRUSH}, linear-gradient(180deg,#dfe3e9 0%,#b4bac4 7%,#9aa1ac 40%,#7b828d 78%,#555a63 100%)`, boxShadow: \"inset 0 -2px 0 rgba(0,0,0,0.45), inset 2px 0 0 rgba(255,255,255,0.25), inset -2px 0 0 rgba(0,0,0,0.25), 0 26px 40px -12px rgba(0,0,0,0.9)\" }}>\n            <span aria-hidden=\"true\" className=\"pointer-events-none absolute inset-y-0 w-[300px] -translate-x-1/2\" style={{ left: \"var(--mx, 34%)\", background: \"linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,0.42) 50%,rgba(255,255,255,0))\" }} />\n            <span aria-hidden=\"true\" className=\"pointer-events-none absolute inset-x-0 top-0 h-[60px] transition-opacity duration-500\" style={{ background: \"linear-gradient(180deg,rgba(79,152,251,0.55),rgba(79,152,251,0))\", opacity: lit ? 1 : 0 }} />\n            <Screw style={{ left: 14, top: 14 }} /><Screw style={{ right: 14, top: 14 }} /><Screw style={{ left: 14, bottom: 16 }} /><Screw style={{ right: 14, bottom: 16 }} />\n\n            {/* Light pipe: fills as the card is read and stays lit while the page stands. */}\n            <div aria-hidden=\"true\" className=\"absolute left-[46px] top-[30px] h-[10px] w-[408px] overflow-hidden rounded-full\" style={{ background: \"#05070a\", boxShadow: \"inset 0 2px 3px #000, 0 1px 0 rgba(255,255,255,0.6)\" }}>\n              <motion.span className=\"machined-prompt-block-anim absolute inset-y-[2px] left-[2px] right-[2px] origin-left rounded-full\" style={{ background: `linear-gradient(180deg,#d6e8ff,${BLUE} 55%,#2f74dc)`, boxShadow: `0 0 10px ${BLUE}`, animation: phase === \"show\" ? \"machined-prompt-block-breathe 2.4s ease-in-out infinite\" : undefined }} initial={false} animate={{ scaleX: lit ? 1 : 0, opacity: lit ? 1 : 0 }} transition={reduce ? { duration: 0 } : { scaleX: { duration: lit ? 0.5 : 0.01, ease: \"easeInOut\" }, opacity: { duration: 0.2 } }} />\n              <span className=\"absolute inset-x-[6px] top-[1.5px] h-[2px] rounded-full bg-white/25\" />\n            </div>\n\n            <div aria-hidden=\"true\" className=\"absolute left-[46px] top-[58px] font-mono text-[9.5px] font-bold uppercase leading-[1.9] tracking-[0.24em] text-[#1c1f25]/80\" style={{ textShadow: \"0 1px 0 rgba(255,255,255,0.5)\" }}>\n              <div>Sentence in</div>\n              <div>Page out</div>\n              <div className=\"mt-[5px] flex items-center gap-[7px] tracking-[0.2em]\"><span className=\"h-[6px] w-[6px] rounded-full transition-colors duration-300\" style={{ background: lit ? BLUE : \"#3a3e46\", boxShadow: lit ? `0 0 8px 2px ${BLUE}` : \"inset 0 1px 1px #000\" }} />{phase === \"show\" ? \"Printed\" : phase === \"type\" ? \"Ready\" : \"Reading\"}</div>\n            </div>\n\n            <span aria-hidden=\"true\" className=\"absolute inset-x-0 bottom-[11px] h-[2px]\" style={{ background: \"rgba(0,0,0,0.3)\", boxShadow: \"0 1px 0 rgba(255,255,255,0.35)\" }} />\n            <span aria-hidden=\"true\" className=\"absolute bottom-[20px] left-[46px] font-mono text-[7.5px] font-bold uppercase tracking-[0.3em] text-[#1c1f25]/55\" style={{ textShadow: \"0 1px 0 rgba(255,255,255,0.4)\" }}>Milled from one billet / No. 0417</span>\n            <button type=\"button\" onClick={submit} className=\"absolute right-[44px] top-[70px] flex h-[58px] w-[170px] items-center justify-center gap-[10px] rounded-full text-[16px] font-extrabold tracking-[-0.02em] text-white outline-none transition-transform duration-100 focus-visible:ring-2 focus-visible:ring-[#4F98FB] focus-visible:ring-offset-2 focus-visible:ring-offset-[#9aa1ac] active:translate-y-[2px]\" style={{ background: \"linear-gradient(180deg,#2a2e37 0%,#12141a 46%,#07080b 100%)\", boxShadow: \"0 0 0 3px #5b616b, 0 0 0 4px rgba(255,255,255,0.5), 0 5px 0 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -2px 3px rgba(0,0,0,0.8)\", fontFamily: FONT }}>\n              <span aria-hidden=\"true\" className=\"h-[8px] w-[8px] rounded-full\" style={{ background: BLUE, boxShadow: `0 0 8px 1px ${BLUE}` }} />\n              {phase === \"type\" ? \"Feed card\" : \"New card\"}\n            </button>\n          </div>\n          <p className=\"absolute left-0 top-[602px] w-full text-center text-[12px] font-semibold tracking-[-0.005em] text-[#9aa3b5]\">Type a sentence on the card, then press Enter</p>\n          <p className=\"sr-only\" role=\"status\">{said}</p>\n        </div>\n      </div>\n    </div>\n  );\n}\n"}]}
