import * as React from "react"; import Link from "next/link"; import { cn } from "@/lib/utils"; import { motion } from "motion/react"; import { Button } from "@/components/ui/button"; import { Book, Check, Copy, Key, Terminal } from "lucide-react"; export interface DeveloperSectionProps { className?: string; } /** * Developer Section - 开发者体验展示 */ export const DeveloperSection = React.memo(function DeveloperSection({ className }: DeveloperSectionProps) { const [copied, setCopied] = React.useState(false); const codeContent = `curl https://credit.linux.do/epay/submit.php \\ -u sk_live_...: \\ -d amount=1000 \\ -d currency="cny" \\ -d description="Pro Plan"`; const onCopy = async () => { try { await navigator.clipboard.writeText(codeContent); setCopied(true); setTimeout(() => setCopied(false), 2000); } catch { // Fallback for older browsers const textArea = document.createElement("textarea"); textArea.value = codeContent; textArea.style.position = "fixed"; textArea.style.left = "-9999px"; document.body.appendChild(textArea); textArea.select(); document.execCommand("copy"); document.body.removeChild(textArea); setCopied(true); setTimeout(() => setCopied(false), 2000); } }; return (
bash
                
                  curl https://credit.linux.do/epay/submit.php \{'\n'}
                  {'  '}-u sk_live_...: \{'\n'}
                  {'  '}-d amount=1000 \{'\n'}
                  {'  '}-d currency="cny" \{'\n'}
                  {'  '}-d description="Pro Plan"
                
              

简单直接,
开发者快速集成

标准化的 RESTful API 接口,清晰的错误提示,完善的调试工具。无论您使用什么编程语言,只需几行代码,即可完成积分服务功能接入。

    {[ "RESTful API 接口,语义清晰", "完善的 Webhook 回调通知", "简单调试,开发测试零成本", "完善的文档和示例代码" ].map((item, i) => (
  • {item}
  • ))}
); });