Globe Routes Hero
A split hero with a globe of glowing routes, a glowing button and three stats.
Installation
npx shadcn@latest add @venusui/hero-10Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Files added to your project
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/hooks/use-scene-state.tsfrom use-scene-state@/components/ui/arc-globe.tsxfrom arc-globe@/lib/land-mask.tsfrom arc-globe@/components/ui/glow-border-button.tsxfrom glow-border-button@/components/hero-10.tsx
Also adds the shadcn button component if your project doesn't have it yet.
Usage
The code behind the preview above.
hero-10-demo.tsx
import { Hero10 } from "@/components/hero-10"
export default function Hero10Demo() {
return <Hero10 />
}
API reference
No props. Edit the content directly in the file.
Requirements
- shadcn
button, VenusUIarc-globe(three.js) andglow-border-button. The CLI installs them. - It renders inside a
.darkwrapper so it stays dark in both themes; this relies on shadcn’s class-based dark mode (the default). - A browser with WebGL for the globe.
Customization
- The stats are placeholders. Show only figures you can back up.
- Pass your own
routesto the globe.
Accessibility
- The globe can be focused and turned with the arrow keys. Stats are a description list.
Troubleshooting
- Something looks different from the preview.
- Blocks use your project’s theme and your own shadcn components, so they follow your styles.
Unknown registry "@venusui"- Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (
npx shadcn@latest), install by URL, or register it with its address:npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json. No components.json found- Run
npx shadcn@latest initin your project first.