aboutsummaryrefslogtreecommitdiff
path: root/apps/web/app/(canvas)/canvas/thinkPads.tsx
blob: 3e8d755070674dccbeb581ac832824686350db66 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"use client";
import { motion } from "framer-motion";
import ThinkPad from "./thinkPad";

const containerVariants = {
  hidden: { opacity: 0 },
  visible: {
    opacity: 1,
    transition: {
      staggerChildren: 0.1,
    },
  },
};

export default function ThinkPads({
  data,
}: {
  data: { image: string; title: string; description: string; id: string }[];
}) {
  return (
    <motion.div
      variants={containerVariants}
      initial="hidden"
      animate="visible"
      className="w-[90%] max-w-2xl space-y-6"
    >
      {data.map((item) => {
        return <ThinkPad {...item} />;
      })}
    </motion.div>
  );
}