/** * Quick Start Code Block * Code snippet showing quick start commands with copy functionality */ 'use client'; import { useState } from 'react'; import { motion } from 'framer-motion'; import { Check, Copy } from 'lucide-react'; import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'; import { vscDarkPlus } from 'react-syntax-highlighter/dist/esm/styles/prism'; import { Button } from '@/components/ui/button'; const codeString = `# Clone and start with Docker git clone https://gitea.pragmazest.com/cardosofelipe/syndarix.git cd syndarix docker-compose up # Or set up locally cd backend && python -m venv .venv && source .venv/bin/activate pip install -r requirements.txt cd ../frontend && npm install`; export function QuickStartCode() { const [copied, setCopied] = useState(false); const copyToClipboard = async () => { try { await navigator.clipboard.writeText(codeString); setCopied(true); setTimeout(() => setCopied(false), 2000); } catch (err) { console.error('Failed to copy:', err); } }; return (

5-Minute Setup

Clone, run, and start building. It's that simple.

{/* Header with Copy Button */}
{/* Code Block */}
{codeString}
); }