Developer API Hero
Developer API hero with terminal aesthetics: curl command, JSON headline, emerald code block, and monospace typography. Dark React section for API docs, SDK landing pages, and devtool startups. Copy TSX for Next.js or Vite documentation sites.
Dependencies
react
npm install react react-domexport function DeveloperApiHero() {
return (
<section className="border-b border-zinc-800 bg-zinc-950 px-6 py-20 text-zinc-100">
<div className="mx-auto max-w-5xl">
<p className="font-mono text-sm text-emerald-400">$ curl api.tetrakits.com/v1/components</p>
<h1 className="mt-4 font-mono text-3xl font-bold sm:text-5xl">
{'{ "status": "ready", "components": 250+ }'}
</h1>
<p className="mt-4 max-w-2xl text-zinc-400">
Copy-paste React blocks with typed props. Built for humans and AI agents alike.
</p>
<pre className="mt-8 overflow-x-auto rounded-xl border border-zinc-800 bg-black p-4 text-sm text-emerald-300">
{`import { HeroAurora } from "@/components/ui";
export default function Page() {
return <HeroAurora />;
}`}
</pre>
</div>
</section>
);
}
Please implement this code in the current project and add it to (Your Desired Section, e.g. homepage hero, pricing page, dashboard). Change the primary accent color to (YOUR HEX CODE COLOR, e.g. #6366F1).
Requirements:
- Use React + Tailwind CSS (match the project's existing setup)
- Install dependencies if needed: npm install react react-dom
- Keep the layout responsive on mobile and desktop
- Replace placeholder copy with content that fits the project
The UI code:
export function DeveloperApiHero() {
return (
<section className="border-b border-zinc-800 bg-zinc-950 px-6 py-20 text-zinc-100">
<div className="mx-auto max-w-5xl">
<p className="font-mono text-sm text-emerald-400">$ curl api.tetrakits.com/v1/components</p>
<h1 className="mt-4 font-mono text-3xl font-bold sm:text-5xl">
{'{ "status": "ready", "components": 250+ }'}
</h1>
<p className="mt-4 max-w-2xl text-zinc-400">
Copy-paste React blocks with typed props. Built for humans and AI agents alike.
</p>
<pre className="mt-8 overflow-x-auto rounded-xl border border-zinc-800 bg-black p-4 text-sm text-emerald-300">
{`import { HeroAurora } from "@/components/ui";
export default function Page() {
return <HeroAurora />;
}`}
</pre>
</div>
</section>
);
}
Replace (Your Desired Section) and (YOUR HEX CODE COLOR) before pasting into Cursor, Copilot, or ChatGPT.