I'll start by exploring the project structure to understand the setup.
Let me read the remaining config files to understand the setup.
I now understand the setup: React 19, Vite 7 with single-file output, Tailwind CSS v4, strict TypeScript, and a cn utility. Let me plan the build.
I'll create a single-viewport "reasoning wheel" app — an orbiting ring of idea nodes with the active node riding to the top, a glass detail card in the center, and add/edit/delete with infinite items. Let me start with the foundation files (config, types, data, helpers) and install an icon library.
Foundation is set. Now let me build the AddItemModal (with image upload + URL, validation, edit support).
Now the core Wheel component — the orbiting ring of nodes with the active node riding to the top, SVG progress arc, center detail card, and pointer.
Now the main App that orchestrates state, navigation/spin math, persistence, keyboard shortcuts, and the single-viewport layout.
I referenced animate-spin-slow, which I never defined (Tailwind v4 ships animate-spin). Let me fix those two occurrences to use the built-in spinner with a duration override.
Before building, I spotted a centering issue: the sized wheel div uses margin: 0 auto inside a non-flex stage, so it won't center vertically. Let me make the stage a flex container that centers the wheel both ways.
Now let me build to confirm everything compiles correctly.
The build succeeded. Let me do a final review of the Wheel component to verify the structure and transform logic are correct.
Pronto! Construí o Raciocínio · Roleta de Ideias, um single-page app de roleta circular infinita, tudo em uma única tela (sem scroll).
O que foi feito
A roleta circular (hero único, ocupa a viewport inteira)
- Um anel orbital onde cada ideia vira um nó circular com sua imagem/thumbnail.
- O nó ativo sobe sempre para o topo (sob um ponteiro), com glow e numeração — o arco de progresso colorido cresce conforme você avança, reforçando a "linha de raciocínio".
- No centro, um card de vidro mostra a imagem, título e descritivo da ideia atual, com transição suave.
Cadastro e exibição (imagem + título + descritivo)
- Botão "Adicionar ideia" abre um modal com: upload de imagem (redimensionada automaticamente), link de URL, título (obrigatório) e descritivo.
- Cada ideia pode ser editada ou excluída direto do card central.
Infinita
- Adicione quantas ideias quiser — o tamanho dos nós se adapta à quantidade para caberem no anel.
Para conduzir o raciocínio
- Navegação ordenada: ← → ou os botões anterior/próximo.
- Girar (barra de espaço) faz a roleta girar várias voltas e pousar numa ideia.
- Clique em qualquer nó para girar até ele. Indicador "Ideia X de N" + barra de progresso.
Extras
- Tudo persiste no
localStorage (recarregar mantém suas ideias).
- Tema escuro com gradientes/glow, atalhos de teclado, estado vazio com exemplo pronto ("Como aprender qualquer coisa mais rápido") e layout responsivo.
Arquitetura
src/App.tsx — estado, matemática de rotação/spin, atalhos, persistência e layout.
src/components/Wheel.tsx — o anel orbital (SVG + transforms com contra-rotação para manter os nós sempre direitos).
src/components/AddItemModal.tsx — formulário de criar/editar.
src/components/Avatar.tsx, src/lib/idea.ts, src/lib/storage.ts, src/data/seed.ts — utilidades.
O npm run build passou com sucesso. É só adicionar suas ideias na ordem do argumento que quer construir e ir girando para conduzir quem está ouvindo.
Files built: index.html, src/index.css, src/types.ts, src/lib/idea.ts, src/data/seed.ts, src/lib/storage.ts, src/components/Avatar.tsx, src/components/AddItemModal.tsx, src/components/Wheel.tsx, src/App.tsx