|
| 1 | +"use client"; |
| 2 | + |
| 3 | +import { motion } from "framer-motion"; |
| 4 | +import { Container } from "@/components/layout/Container"; |
| 5 | +import { FileText, Image as ImageIcon, Table, ChevronDown } from "lucide-react"; |
| 6 | + |
| 7 | +export function ArchitectureSection() { |
| 8 | + return ( |
| 9 | + <section id="architecture" className="py-20"> |
| 10 | + <Container> |
| 11 | + <div className="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center"> |
| 12 | + <motion.div |
| 13 | + initial={{ opacity: 0, y: 24 }} |
| 14 | + whileInView={{ opacity: 1, y: 0 }} |
| 15 | + transition={{ duration: 0.6, ease: [0.22, 1, 0.36, 1] }} |
| 16 | + viewport={{ once: true, amount: 0.3 }} |
| 17 | + className="space-y-6" |
| 18 | + > |
| 19 | + <h2 className="text-3xl font-bold tracking-tight sm:text-4xl"> |
| 20 | + Component-Correlation Tree |
| 21 | + </h2> |
| 22 | + <p className="text-lg text-muted-foreground"> |
| 23 | + Unlike traditional RAG that chunks text blindly, MoDora parses documents into a structured tree. |
| 24 | + </p> |
| 25 | + <ul className="space-y-4"> |
| 26 | + <li className="flex gap-3"> |
| 27 | + <div className="h-6 w-6 rounded-full bg-primary/20 flex items-center justify-center text-primary shrink-0"> |
| 28 | + 1 |
| 29 | + </div> |
| 30 | + <span className="text-muted-foreground"> |
| 31 | + <strong className="text-foreground">Hierarchical Organization:</strong> Sections, subsections, and paragraphs are nodes in a tree. |
| 32 | + </span> |
| 33 | + </li> |
| 34 | + <li className="flex gap-3"> |
| 35 | + <div className="h-6 w-6 rounded-full bg-primary/20 flex items-center justify-center text-primary shrink-0"> |
| 36 | + 2 |
| 37 | + </div> |
| 38 | + <span className="text-muted-foreground"> |
| 39 | + <strong className="text-foreground">Multimodal Nodes:</strong> Images and tables are treated as first-class citizens, linked to their context. |
| 40 | + </span> |
| 41 | + </li> |
| 42 | + <li className="flex gap-3"> |
| 43 | + <div className="h-6 w-6 rounded-full bg-primary/20 flex items-center justify-center text-primary shrink-0"> |
| 44 | + 3 |
| 45 | + </div> |
| 46 | + <span className="text-muted-foreground"> |
| 47 | + <strong className="text-foreground">Contextual Retrieval:</strong> Retrieving a node can automatically pull in parent context or child details. |
| 48 | + </span> |
| 49 | + </li> |
| 50 | + </ul> |
| 51 | + </motion.div> |
| 52 | + |
| 53 | + <motion.div |
| 54 | + initial={{ opacity: 0, y: 24 }} |
| 55 | + whileInView={{ opacity: 1, y: 0 }} |
| 56 | + transition={{ duration: 0.6, ease: [0.22, 1, 0.36, 1], delay: 0.05 }} |
| 57 | + viewport={{ once: true, amount: 0.3 }} |
| 58 | + className="relative bg-secondary/20 rounded-xl p-8 border border-secondary" |
| 59 | + > |
| 60 | + {/* Tree Visualization */} |
| 61 | + <div className="flex flex-col items-center space-y-4"> |
| 62 | + {/* Root */} |
| 63 | + <div className="bg-background border shadow-sm px-4 py-2 rounded-md flex items-center gap-2 font-medium"> |
| 64 | + <FileText className="h-4 w-4 text-primary" /> Document Root |
| 65 | + </div> |
| 66 | + <ChevronDown className="h-6 w-6 text-muted-foreground/50" /> |
| 67 | + |
| 68 | + {/* Level 1 */} |
| 69 | + <div className="flex gap-8"> |
| 70 | + <div className="flex flex-col items-center"> |
| 71 | + <div className="bg-background border shadow-sm px-4 py-2 rounded-md flex items-center gap-2 text-sm"> |
| 72 | + Section 1: Intro |
| 73 | + </div> |
| 74 | + <ChevronDown className="h-6 w-6 text-muted-foreground/50" /> |
| 75 | + <div className="mt-2 bg-background border shadow-sm px-3 py-1.5 rounded-md flex items-center gap-2 text-xs text-muted-foreground"> |
| 76 | + Text Paragraphs |
| 77 | + </div> |
| 78 | + </div> |
| 79 | + |
| 80 | + <div className="flex flex-col items-center"> |
| 81 | + <div className="bg-background border shadow-sm px-4 py-2 rounded-md flex items-center gap-2 text-sm"> |
| 82 | + Section 2: Results |
| 83 | + </div> |
| 84 | + <ChevronDown className="h-6 w-6 text-muted-foreground/50" /> |
| 85 | + <div className="mt-2 flex gap-2"> |
| 86 | + <div className="bg-blue-50 dark:bg-blue-900/20 border border-blue-100 dark:border-blue-900 px-3 py-1.5 rounded-md flex items-center gap-2 text-xs text-blue-700 dark:text-blue-300"> |
| 87 | + <Table className="h-3 w-3" /> Table 1 |
| 88 | + </div> |
| 89 | + <div className="bg-purple-50 dark:bg-purple-900/20 border border-purple-100 dark:border-purple-900 px-3 py-1.5 rounded-md flex items-center gap-2 text-xs text-purple-700 dark:text-purple-300"> |
| 90 | + <ImageIcon className="h-3 w-3" /> Figure 2 |
| 91 | + </div> |
| 92 | + </div> |
| 93 | + </div> |
| 94 | + </div> |
| 95 | + </div> |
| 96 | + </motion.div> |
| 97 | + </div> |
| 98 | + </Container> |
| 99 | + </section> |
| 100 | + ); |
| 101 | +} |
0 commit comments