{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "timeline-block-shadcnui", "type": "registry:block", "title": "Timeline Block", "description": "Vertical timeline with alternating cards and animated progress line", "registryDependencies": [ "button" ], "dependencies": [ "framer-motion", "react" ], "files": [ { "path": "@uitripled/react-shadcn/src/components/sections/timeline-block.tsx", "content": "\"use client\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { Card } from \"@/components/ui/card\";\nimport { motion, useInView } from \"framer-motion\";\nimport { Calendar, CheckCircle2 } from \"lucide-react\";\nimport { useRef } from \"react\";\n\nconst timelineEvents = [\n {\n year: \"2020\",\n title: \"Company Founded\",\n description:\n \"Started with a vision to transform how businesses operate digitally.\",\n icon: CheckCircle2,\n },\n {\n year: \"2021\",\n title: \"First 1,000 Customers\",\n description:\n \"Reached our first major milestone with customers across 20 countries.\",\n icon: CheckCircle2,\n },\n {\n year: \"2022\",\n title: \"Series A Funding\",\n description:\n \"Raised $10M to accelerate product development and expand our team.\",\n icon: CheckCircle2,\n },\n {\n year: \"2023\",\n title: \"Global Expansion\",\n description:\n \"Opened offices in 5 new countries and launched multilingual support.\",\n icon: CheckCircle2,\n },\n {\n year: \"2024\",\n title: \"AI Integration\",\n description:\n \"Launched AI-powered features to help businesses scale faster.\",\n icon: CheckCircle2,\n },\n];\n\nexport function TimelineBlock() {\n const ref = useRef(null);\n const isInView = useInView(ref, { once: true, amount: 0.3 });\n\n return (\n
\n
\n {/* Header */}\n \n \n \n Our Journey\n \n

\n The Story of Our Growth\n

\n

\n From a small startup to a global platform trusted by thousands\n

\n \n\n {/* Timeline */}\n
\n {/* Vertical line */}\n \n\n
\n {timelineEvents.map((event, index) => {\n const Icon = event.icon;\n const isEven = index % 2 === 0;\n\n return (\n \n {/* Timeline node */}\n
\n \n \n \n \n
\n\n {/* Content card */}\n \n \n \n \n\n
\n \n {event.year}\n \n

\n {event.title}\n

\n

\n {event.description}\n

\n
\n
\n \n
\n\n {/* Spacer for alternating layout */}\n
\n \n );\n })}\n
\n
\n\n {/* Future indicator */}\n \n
\n \n \n And the journey continues...\n \n
\n \n
\n
\n );\n}\n", "type": "registry:block", "target": "components/uitripled/timeline-block-shadcnui.tsx" } ] }