Isometric ranking stack
Interactive isometric 4-tier AI visibility cube stack with cumulative layer shading, floating prompt/answer cards, and spring-tracked step callouts.
- Dependencies (1)
Overview and background
The Isometric ranking stack illustrates a brand's progression through generative AI visibility tiers—from simple web indexing to direct conversational recommendation. Built upon classical 30-degree isometric axonometric projection principles (30° isometric plane coordinates with a 2:1 pixel aspect ratio where dx = 114px and dy = 66px), the component renders a stacked multi-layer volumetric cube directly inside SVG space. Each tier represents a discrete search-to-recommendation milestone (Indexed, Mentioned, Cited, Named first).
The visual architecture embraces Swiss-editorial design discipline: disciplined grid alignment, high-contrast monochrome and graphite elevations, subtle tactile specular gradients on active top surfaces, dashed hidden back-edge wireframes, and responsive floating pill cards that simulate live user prompt inputs and LLM answer citations. Smooth spring physics choreograph the dynamic horizontal indicator ray and callout text annotations whenever a user interacts with the layers.
Features
- True isometric axonometric projection: Geometry calculated in real-time SVG vector coordinates with back-face hidden geometry rendered as precise dashed registration marks.
- Cumulative multi-tier shading: Hovering or clicking any tier illuminates both the selected tier and all foundation levels below it, visualizing cumulative milestone achievement.
- Spring-tracked callout ray: Dynamic motion-driven connector line that snaps smoothly to the vertical height of the active tier with spring physics.
- Specular facet lighting: Active top faces feature multi-stop directional gradients simulating top-down editorial studio lighting.
- Contextual floating cards: Top-right user inquiry card and top-left OpenAI citation preview card establish concrete narrative context.
- Full responsive adaptations: Desktop layout transitions gracefully on mobile screens to compact tap pills and touch-friendly controls.
Use cases
- AI search and LLM optimization tools: SaaS landing pages explaining GEO (Generative Engine Optimization) or AI brand discovery ladders.
- Tiered verification and trust protocols: Visualizing stages of identity verification, security clearance levels, or compliance audits.
- Product feature hierarchy: Presenting subscription tiers or technical architecture stacks in high-end devtools and infrastructure products.
Installation
pnpm dlx shadcn@latest add @abushaidislam/isometric-ranking-stack
Usage
import IsometricRankingStack from "@/components/isometric-ranking-stack"<IsometricRankingStack
headline="Go from indexed to recommended"
subtitle="Search engines find your pages. AI decides if it trusts them enough to say your name."
primaryCtaText="Start for free"
secondaryCtaText="See how scoring works"
promptText="best invoicing app for a two-person studio?"
promptAuthor="Maya"
answerBrand="Ledgerly."
answerText="It shares clients between seats and chases late invoices for you."
initialStep={2}
/>Composition
IsometricRankingStack (section)
├── Editorial Headline & CTAs (div.col-span-5)
│ ├── Title (h2)
│ ├── Subtitle description (p)
│ └── Action button group (primary + secondary)
└── Interactive Isometric Stage (div.col-span-7)
├── Floating Prompt Card (user query badge)
├── Floating AI Answer Card (LLM citation badge)
├── Isometric Projection Canvas (svg)
│ ├── Radial Fade Floor Grid (line array + mask)
│ ├── Hidden Back Wireframes (dashed lines)
│ ├── Top Plane Internal 2x2 Registration Grid
│ ├── 4 Cumulative Tiers (SVG polygon groups)
│ │ ├── Top Face (specular gradient)
│ │ ├── Left Side Face (illuminated wall)
│ │ ├── Right Side Face (shadow wall)
│ │ └── Vertex Anchor Rings (circle markers)
│ ├── Center Brand Citation Ring (isometric transform)
│ └── Spring-Tracked Connector Ray (motion.g)
├── Spring Callout Annotation Pill (motion.div)
└── Mobile Step Selector Pills (sm:hidden)API reference
| Prop | Type | Default | Description |
|---|---|---|---|
theme | "auto" | "dark" | "light" | "auto" | Color theme mode. Follows system/Tailwind .dark by default or can force dark/light. |
headline | string | "Go from indexed to recommended" | Main hero marketing headline. |
subtitle | string | "Search engines find your pages..." | Supporting narrative paragraph below the headline. |
primaryCtaText | string | "Start for free" | Label for the specular gradient primary action button. |
secondaryCtaText | string | "See how scoring works" | Label for the secondary bordered button. |
promptText | string | "best invoicing app..." | Inquiry query text displayed in the top-right prompt card. |
promptAuthor | string | "Maya" | Author name badge on the floating prompt card. |
answerBrand | string | "Ledgerly." | Highlighted brand token cited in the LLM answer card. |
answerText | string | "It shares clients between..." | Reasoning snippet shown in the AI answer card. |
initialStep | number | -1 | Zero-indexed tier to highlight initially (0 = Indexed, 3 = Named first, -1 = idle wireframe). |
onPrimaryClick | () => void | undefined | Callback invoked when the primary CTA button is clicked. |
onSecondaryClick | () => void | undefined | Callback invoked when the secondary CTA button is clicked. |
Accessibility
- Keyboard navigation: Each isometric cube tier is exposed as an interactive role button with
tabIndex={0},aria-pressed, andaria-labeldescribing its title and function. Users can toggle or lock tiers usingEnterorSpace. - Reduced motion support: Respects the user's OS
prefers-reduced-motionsetting via Motion'sMotionConfig reducedMotion="user". When enabled, animations and spring movements snap instantaneously without disorienting transitions. - Semantic structure: The container uses
<section aria-labelledby>bound to the unique heading identifier for clear screen-reader landmark navigation.
Frequently asked questions
How is the isometric angle calculated?
The cube uses an exact isometric ratio where the 2D SVG canvas translates a 3D bounding box using horizontal displacement dx = 114 and vertical displacement dy = 66. The floor grid follows reciprocal vectors (+dx / 4, +dy / 4) and (-dx / 4, +dy / 4) masked by a soft radial gradient.
Can I customize the tiers and descriptions?
Yes, you can edit the internal DEFAULT_STEPS array or extend the component props to supply your own custom milestones, titles, and step descriptions without changing the geometric projection calculations.
How does light mode look compared to dark mode?
In dark mode, the cube utilizes rich obsidian and graphite tones with bright specular linear gradients. In light mode or when forced to "light", surfaces invert cleanly to off-white and zinc tones with subtle ambient contact drop-shadows.
License and usage
- Free to use and modify in both personal and commercial projects.
- Attribution is appreciated but not required.
- Released under the MIT License.