themeocean

Split Developer Hero with Interactive Code Terminal

Heroes 2

About

A responsive two-column hero section tailored for developer tools and APIs. Pairs bold value-proposition copy with an interactive tabbed code snippet terminal featuring one-click copy feedback.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Split Developer Hero with Interactive Code Terminal to your project and fits it to your theme.

Code

How Split Developer Hero with Interactive Code Terminal is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

// This is a file with a demo for your component
// That's what users will see in the preview
// Create new files in this directory to add more demos

"use client";

import * as React from "react";
import { SplitDeveloperHero, type CodeTab } from "@/components/ui/split-developer-hero-with-interactive-code-terminal";



/* ------------------------------------------------------------------ */
/* Demo data                                                           */
/* ------------------------------------------------------------------ */

const CODE_TABS: CodeTab[] = [
  {
    label: "cURL",
    language: "bash",
    code: `curl https://api.nimbus.dev/v1/completions \\
  -H "Authorization: Bearer $NIMBUS_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "model": "nimbus-4",
    "prompt": "Summarize this release note",
    "stream": true
  }'`,
  },
  {
    label: "TypeScript",
    language: "typescript",
    code: `import { Nimbus } from "@nimbus/sdk";

const client = new Nimbus({ apiKey: process.env.NIMBUS_API_KEY });

// Stream a completion token by token
const stream = await client.completions.create({
  model: "nimbus-4",
  prompt: "Summarize this release note",
  stream: true,
});

for await (const chunk of stream) {
  process.stdout.write(chunk.text);
}`,
  },
  {
    label: "Python",
    language: "python",
    code: `import os
from nimbus import Nimbus

client = Nimbus(api_key=os.environ["NIMBUS_API_KEY"])

# Stream a completion token by token
stream = client.completions.create(
    model="nimbus-4",
    prompt="Summarize this release note",
    stream=True,
)

for chunk in stream:
    print(chunk.text, end="")`,
  },
];



/* ------------------------------------------------------------------ */
/* Demo                                                                */
/* ------------------------------------------------------------------ */

export default function DemoOne() {
  return (
    <SplitDeveloperHero
      badge="New: streaming responses are live"
      title="Ship AI features in minutes, not months."
      description="One API for text, vision and embeddings. Predictable pricing, sub-second latency and SDKs that feel like part of your codebase."
      primaryAction={{ label: "Get your API key", href: "#get-started" }}
      secondaryAction={{ label: "Read the docs", href: "#docs" }}
      codeTabs={CODE_TABS}
    />
  );
}

More by themeocean

View all
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    443
  • Mac-Style Floating Dock

    Mac-Style Floating Dock

    60
  • Nexus 3D Animated Login - Futuristic Authentication UI

    Nexus 3D Animated Login - Futuristic Authentication UI

    26
  • Sleek AI Command Menu (CMDK) with Fuzzy Search

    Sleek AI Command Menu (CMDK) with Fuzzy Search

    8
  • 3D Animated Tilt & Dynamic Glow Card

    3D Animated Tilt & Dynamic Glow Card

    5
  • Multi-State Action Button with Micro-Animations

    Multi-State Action Button with Micro-Animations

    2
  • Interactive AI Chat Input with Micro-Interactions

    Interactive AI Chat Input with Micro-Interactions

    2
  • Expandable Floating Action Button (FAB) AI Dock

    Expandable Floating Action Button (FAB) AI Dock

    2

More in Heroes

View all
  • Responsive Hero Banner

    Responsive Hero Banner

    2.1K
  • SaaS Template

    SaaS Template

    2.6K
  • Hero

    Hero

    1.3K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    1K
  • Hero 03

    Hero 03

    350
  • Hero Section

    Hero Section

    177
  • HeroSectionWithGradient

    HeroSectionWithGradient

    368
  • Glass Fold

    Glass Fold

    400