JSFiddle - React, Tailwind, and code Playground

by velo_ninja

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>OptionPanel Demo โ€” Carousel + Inline Panel</title>
  <style>
    :root {
      --op-bg: #0b0f19;
      --op-surface: #1e293b;
      --op-border: #334155;
      --op-text: #f1f5f9;
      --op-muted: #94a3b8;
      --op-accent: #38bdf8;
      --op-success: #22c55e;
      --op-warning: #f59e0b;
      --op-danger: #ef4444;
      --op-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: var(--op-font);
      background: linear-gradient(135deg, var(--op-bg) 0%, #111827 100%);
      color: var(--op-text);
      min-height: 100vh;
      padding: 24px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 24px;
    }
    .demo-header {
      text-align: center;
      padding: 16px 24px;
      background: rgba(30, 41, 59, 0.6);
      border: 1px solid var(--op-border);
      border-radius: 12px;
      max-width: 900px;
      width: 100%;
    }
    .demo-header h1 {
      font-size: 1.4rem;
      font-weight: 700;
      margin-bottom: 4px;
      color: var(--op-accent);
    }
    .demo-header p {
      font-size: 0.9rem;
      color: var(--op-muted);
    }
    #app-root {
      width: 100%;
      max-width: 900px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .op-container {
      background: var(--op-surface);
      border: 1px solid var(--op-border);
      border-radius: 16px;
      padding: 16px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    .op-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 12px;
      border-bottom: 1px solid var(--op-border);
      margin-bottom: 12px;
    }
    .op-header h3...